[O] Move basic page styles to css class
This commit is contained in:
@@ -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
|
||||||
@@ -14,7 +14,6 @@ import Collapse from "@/components/Collapse.vue";
|
|||||||
export default class Others extends Vue
|
export default class Others extends Vue
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="Friends">
|
<div id="Friends" class="general-page">
|
||||||
Meow
|
<div class="title">
|
||||||
|
<h2>朋友们</h2>
|
||||||
|
<div class="subtitle">和他们的博客链接</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -14,4 +17,6 @@ export default class Friends extends Vue
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="sass" scoped>
|
<style lang="sass" scoped>
|
||||||
|
@import "src/css/colors"
|
||||||
|
@import "src/css/responsive"
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="Menu">
|
<div id="Menu" class="general-page">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<h2>小桂桂的私房菜 菜单</h2>
|
<h2>小桂桂的私房菜 菜单</h2>
|
||||||
<div class="subtitle">在桂桂家里可以吃到这些哦</div>
|
<div class="subtitle">在桂桂家里可以吃到这些哦</div>
|
||||||
@@ -177,23 +177,7 @@ export default class Menu extends Vue
|
|||||||
|
|
||||||
<style lang="sass" scoped>
|
<style lang="sass" scoped>
|
||||||
@import "src/css/colors"
|
@import "src/css/colors"
|
||||||
|
@import "src/css/responsive"
|
||||||
$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
|
|
||||||
|
|
||||||
|
|
||||||
.columns
|
.columns
|
||||||
display: flex
|
display: flex
|
||||||
@@ -233,14 +217,4 @@ $width: 600px
|
|||||||
border-radius: 5px
|
border-radius: 5px
|
||||||
padding: 0 5px
|
padding: 0 5px
|
||||||
margin-left: 10px
|
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>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user