[O] Move basic page styles to css class

This commit is contained in:
Hykilpikonna
2022-05-11 13:21:10 -04:00
parent 6d55215533
commit ce3907eb69
4 changed files with 33 additions and 31 deletions
+24
View File
@@ -0,0 +1,24 @@
@import "src/css/colors"
$width: 600px
.general-page
text-align: left
width: $width
margin: 2em auto 0
.title
margin-bottom: 2em
h2
margin-bottom: 0
.subtitle
color: $color-text-light
// Phone layout
@media screen and (max-width: $width + 40px)
.general-page
margin: 2em 20px 0
width: unset
-1
View File
@@ -14,7 +14,6 @@ import Collapse from "@/components/Collapse.vue";
export default class Others extends Vue
{
}
</script>
+7 -2
View File
@@ -1,6 +1,9 @@
<template>
<div id="Friends">
Meow
<div id="Friends" class="general-page">
<div class="title">
<h2>朋友们</h2>
<div class="subtitle">和他们的博客链接</div>
</div>
</div>
</template>
@@ -14,4 +17,6 @@ export default class Friends extends Vue
</script>
<style lang="sass" scoped>
@import "src/css/colors"
@import "src/css/responsive"
</style>
+2 -28
View File
@@ -1,5 +1,5 @@
<template>
<div id="Menu">
<div id="Menu" class="general-page">
<div class="title">
<h2>小桂桂的私房菜 菜单</h2>
<div class="subtitle">在桂桂家里可以吃到这些哦</div>
@@ -177,23 +177,7 @@ export default class Menu extends Vue
<style lang="sass" scoped>
@import "src/css/colors"
$width: 600px
#Menu
text-align: left
width: $width
margin: 2em auto 0
.title
margin-bottom: 2em
h2
margin-bottom: 0
.subtitle
color: $color-text-light
@import "src/css/responsive"
.columns
display: flex
@@ -233,14 +217,4 @@ $width: 600px
border-radius: 5px
padding: 0 5px
margin-left: 10px
// Phone layout
@media screen and (max-width: $width + 40px)
#Menu
margin: 2em 20px 0
width: unset
.columns
//justify-content: space-around
</style>