Skip to content

Commit ba440e0

Browse files
author
Julia Bakerink
committed
adjusted styling for navbar
1 parent dbdfd4f commit ba440e0

File tree

5 files changed

+38
-37
lines changed

5 files changed

+38
-37
lines changed

src/components/file_system_interface/ExportProject.vue

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Description:
1414
<q-menu class="dropdown">
1515
<div class="settings-dropdown column items-center">
1616
<p class="center">Export:</p>
17-
<q-btn class="menu-btn" no-caps color="secondary" label="Current Project" @click="exportProject"/>
17+
<q-btn class="menu-btn" no-caps color="secondary" label="Project" @click="exportProject"/>
1818
<q-btn class="menu-btn" no-caps color="secondary" label="Active Component" @click="handleExportComponent" :disabled="!activeComponent.trim()"/>
1919
</div>
2020
</q-menu>
@@ -523,19 +523,16 @@ export default {
523523
</script>
524524
525525
<style>
526-
/* .nav-btn {
527-
min-height: 10px !important;
528-
width: auto;
529-
font-size: 11px;
526+
.nav-btn {
527+
min-height: 30px !important;
530528
text-transform: capitalize;
531-
padding: 3px 8px;
532-
} */
529+
}
533530
.center{
534531
display:inline-block;
535532
text-align: center;
536-
margin-top: 5px;
533+
margin-top: 10px;
534+
margin-bottom: 5px;
537535
font-weight: bold;
538-
background-color: rgb(100, 99, 99);
539536
color: white;
540537
box-sizing: border-box;
541538
}

src/components/file_system_interface/OpenProjectComponent.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Description:
1010
<div class="settings-dropdown column items-center">
1111
<p class="center">Import:</p>
1212
<q-btn class="menu-btn" no-caps color="secondary" label="Project" @click="openProjectJSON"/>
13-
<!-- <ImportComponent title="Component"/> -->
13+
<ImportComponent no-caps title="Component"/>
1414
<!-- <q-btn class="menu-btn" no-caps color="secondary" label="Component" @click="exportProject"/> -->
1515
</div>
1616
</q-menu>
@@ -70,7 +70,7 @@ export default {
7070
margin-right: 0.2rem;
7171
}
7272
.menu-btn{
73-
width: 85%;
73+
width: 80%;
7474
margin: 10px 0px;
7575
box-shadow:inset 0 -0.6em 0 -0.35em rgba(0,0,0,0.17);
7676
}

src/components/slack_login/SlackLoginWindow.vue

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
<!--<template v-if="show">-->
22
<template>
3-
<div>
4-
<!-- <div>
5-
<q-btn class="glossy bg-black openModalBtn" size="5px" @click="openLogin">
6-
</q-btn>
7-
</div> -->
8-
9-
<!--
10-
Slack Login Button:
11-
-->
12-
13-
<!--
14-
Skip button:
15-
-->
163
<q-btn
174
class="menu-btn"
185
color= "purple"
@@ -43,6 +30,20 @@
4330
</svg>
4431
Slack Login
4532
</q-btn>
33+
<div>
34+
<!-- <div>
35+
<q-btn class="glossy bg-black openModalBtn" size="5px" @click="openLogin">
36+
</q-btn>
37+
</div> -->
38+
39+
<!--
40+
Slack Login Button:
41+
-->
42+
43+
<!--
44+
Skip button:
45+
-->
46+
4647

4748
<q-dialog
4849
v-model="showLogin"
@@ -211,8 +212,8 @@ export default {
211212
border: 1px solid #289ead;
212213
}
213214
.menu-btn{
214-
width: 100%;
215-
margin-bottom:20px;
215+
width: 80%;
216+
margin: 10px 0px;
216217
}
217218
218219

src/css/app.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ main {
2525
}
2626
.q-btn {
2727
align-items: center;
28-
height: 42px;
28+
height: 20px;
29+
width: 65px;
2930
}
3031
.q-item {
3132
background: $subsecondary;

src/layouts/MyLayout.vue

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Description:
5959

6060
<SlackLoginWindow />
6161
<div class="typescript">
62-
<p> <b>TypeScript: </b> </p>
62+
<p class="typescript-text"> <b>TypeScript: </b> </p>
6363
<label for="typescript" class="switch" >
6464
<input v-if="this.exportAsTypescript === 'on'" class="switch-input" type="checkbox" name="typescript" id="typescript" :value="this.exportAsTypescript" @change="syncTypescriptFlag" checked/>
6565
<input v-else class="switch-input" type="checkbox" name="typescript" id="typescript" :value="this.exportAsTypescript" @change="syncTypescriptFlag"/>
@@ -428,7 +428,7 @@ q-btn > i {
428428
// overflow: hidden;
429429
}
430430
.menu-btn{
431-
width: 85%;
431+
width: 80%;
432432
margin: 10px 0px;
433433
box-shadow:inset 0 -0.6em 0 -0.35em rgba(0,0,0,0.17);
434434
}
@@ -446,7 +446,7 @@ background: #5c5e61;
446446
position: relative;
447447
display: block;
448448
vertical-align: top;
449-
width: 100%;
449+
width: 65px;
450450
height: 30px;
451451
padding: 3px;
452452
margin: 0 10px 10px 0;
@@ -477,8 +477,8 @@ background: #5c5e61;
477477
}
478478
.switch-label:before, .switch-label:after {
479479
position: absolute;
480-
top: 50%;
481-
margin-top: -.5em;
480+
top: 20px;
481+
margin-top: -.8em;
482482
line-height: 1;
483483
-webkit-transition: inherit;
484484
-moz-transition: inherit;
@@ -523,8 +523,8 @@ background: #5c5e61;
523523
.switch-handle:before {
524524
content: "";
525525
position: absolute;
526-
top: 50%;
527-
left: 50%;
526+
top: 20px;
527+
left: 20px;
528528
margin: -6px 0 0 -6px;
529529
width: 12px;
530530
height: 12px ;
@@ -534,7 +534,7 @@ background: #5c5e61;
534534
box-shadow: inset 0 1px rgba(0, 0, 0, 0.02);
535535
}
536536
.switch-input:checked ~ .switch-handle {
537-
left: 56%;
537+
left: 40px;
538538
box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.2);
539539
}
540540
@@ -548,9 +548,11 @@ background: #5c5e61;
548548
}
549549
.typescript{
550550
display: flex;
551-
justify-content: space-around;
552551
align-items: flex-end;
553-
width: 90%;
552+
margin: 10px;
554553
flex-direction: row;
555554
}
555+
.typescript-text{
556+
margin-right: 10px;
557+
}
556558
</style>

0 commit comments

Comments
 (0)