Style theme switching button
This commit is contained in:
+18
-2
@@ -5,10 +5,10 @@
|
|||||||
<router-link to="/posts">Posts</router-link> |
|
<router-link to="/posts">Posts</router-link> |
|
||||||
<router-link to="/qa">QA</router-link>
|
<router-link to="/qa">QA</router-link>
|
||||||
</div>
|
</div>
|
||||||
<router-view />
|
|
||||||
<div>
|
<div>
|
||||||
<button @click="toggleTheme">{{ themeToggleVerb }} my eyes</button>
|
<button id="toggleThemeButton" @click="toggleTheme">{{ themeToggleVerb }} my eyes</button>
|
||||||
</div>
|
</div>
|
||||||
|
<router-view />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -67,5 +67,21 @@ body {
|
|||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#toggleThemeButton {
|
||||||
|
background: var(--primary-color);
|
||||||
|
border: 0px;
|
||||||
|
color: var(--text-color);
|
||||||
|
margin: 0 auto;
|
||||||
|
|
||||||
|
margin-right: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width:420px) {
|
||||||
|
#toggleThemeButton {
|
||||||
|
float:right;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user