Skip to content

Commit 85b3419

Browse files
author
Julia Bakerink
committed
Completed Typescript toggle button and functionality in navbar -- Kerolos/Julia
1 parent 1171473 commit 85b3419

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/layouts/MyLayout.vue

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,13 @@ Description:
9898
</svg>
9999
Connect to Slack
100100
</q-btn>
101-
<div>
102-
<label for="typescript" style="margin-right: 10px" class="switch">
101+
<div>
102+
<label for="typescript" class="switch">
103103
<input class="switch-input" type="checkbox" name="typescript" id="typescript" :value="exportAsTypescript" @change="syncTypescriptFlag" />
104-
Use Typescript
105104
<span class="switch-label" data-on="TypeScript" data-off="JavaScript"></span>
106105
<span class="switch-handle"></span>
107106
</label>
108-
</div>
107+
</div>
109108
</div>
110109
<i id="btn"></i>
111110
</q-menu >
@@ -472,7 +471,7 @@ background: #5c5e61;
472471
.switch-label:before {
473472
content: attr(data-off);
474473
right: 11px;
475-
color: #aaaaaa;
474+
color: #000000;
476475
text-shadow: 0 1px rgba(255, 255, 255, 0.5);
477476
}
478477
.switch-label:after {
@@ -483,7 +482,7 @@ background: #5c5e61;
483482
opacity: 0;
484483
}
485484
.switch-input:checked ~ .switch-label {
486-
background: #26e23f;
485+
background: #289ead;
487486
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15), inset 0 0 3px rgba(0, 0, 0, 0.2);
488487
}
489488
.switch-input:checked ~ .switch-label:before {
@@ -529,5 +528,4 @@ background: #5c5e61;
529528
-moz-transition: All 0.3s ease;
530529
-o-transition: All 0.3s ease;
531530
}
532-
533531
</style>

0 commit comments

Comments
 (0)