整合样式
This commit is contained in:
26
src/App.vue
26
src/App.vue
@@ -68,7 +68,6 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import '~uview-ui/index.scss';
|
|
||||||
@import 'styles/common';
|
@import 'styles/common';
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@@ -113,31 +112,6 @@ div[bottom] {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
div[flex] {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
|
|
||||||
&.spb {
|
|
||||||
justify-content: space-between;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.wrap {
|
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.column {
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.start {
|
|
||||||
align-items: flex-start;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
div[shrink] {
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
uni-button {
|
uni-button {
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,42 @@
|
|||||||
|
@import '~uview-ui/index.scss';
|
||||||
@import "styles/ckeditor";
|
@import "styles/ckeditor";
|
||||||
@import "styles/party";
|
@import "styles/party";
|
||||||
@import "styles/iconfont.css";
|
@import "styles/iconfont.css";
|
||||||
|
|
||||||
|
/**
|
||||||
|
常用内外边距样式
|
||||||
|
*/
|
||||||
|
@each $padMar, $pm in (mar:margin, pad:padding) {
|
||||||
|
@each $pos, $p in (l:left, r:right, t:top, b:bottom) {
|
||||||
|
@each $v in (8, 10, 16, 32) {
|
||||||
|
.#{$padMar}-#{$pos+$v} {
|
||||||
|
#{$pm}-#{$p}: #{$v}px
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
div[flex] {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
&.spb {
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.wrap {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.column {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.start {
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
div[shrink] {
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user