docs: 优化文档 css (#653)

This commit is contained in:
yansongda 2022-08-23 15:36:36 +08:00 committed by GitHub
parent 4e83ab9149
commit 93a0305144
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 73 additions and 81 deletions

View File

@ -1,5 +1,5 @@
<template>
<div class="authorize">
<div class="home">
<div class="container">
<h2>授权</h2>
<h3>类库</h3>
@ -21,26 +21,12 @@ export default {
</script>
<style lang="scss" scoped>
@media (min-width: 640px) {
.authorize {
padding: 0 48px;
}
}
@media (min-width: 960px) {
.authorize {
padding: 0 64px;
}
}
@import '../css/home';
.authorize {
.home {
margin-top: 50px;
padding: 0 24px;
}
.container {
max-width: 1152px;
margin: 0 auto;
p {
display: block;
margin-block-start: 1em;
@ -76,4 +62,5 @@ export default {
margin-inline-end: 0;
}
}
}
</style>

View File

@ -16,26 +16,12 @@ export default {
</script>
<style lang="scss" scoped>
@media (min-width: 640px) {
.home {
padding: 0 48px;
}
}
@media (min-width: 960px) {
.home {
padding: 0 64px;
}
}
@import '../css/home';
.home {
margin-bottom: 50px;
padding: 0 24px;
}
.container {
max-width: 1152px;
margin-bottom: 50px;
text-align: center;
margin: 0 auto;
img {
display: inline-block;
@ -48,7 +34,6 @@ export default {
border-width: 2px;
border-style: solid;
border-radius: 4px;
transition: background-color var(--t-color);
box-sizing: border-box;
&.primary {
@ -58,4 +43,5 @@ export default {
}
}
}
}
</style>

View File

@ -0,0 +1,19 @@
@media (min-width: 640px) {
.home {
padding: 0 48px;
}
}
@media (min-width: 960px) {
.home {
padding: 0 64px;
}
}
.home {
padding: 0 24px;
.container {
max-width: 1152px;
margin: 0 auto;
}
}