Style theme switching button

master
Raymonzut 5 years ago
parent aab9885242
commit dd4e2ca9fb
No known key found for this signature in database
GPG Key ID: 1E9BCC39EDD1DD53
  1. 20
      client/src/App.vue

@ -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>

Loading…
Cancel
Save