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

View File

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