Use prettier to format style code

This commit is contained in:
redhoodsu
2018-06-18 17:56:12 +08:00
parent 29d9d75d39
commit c05b4403fb
20 changed files with 1444 additions and 1306 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,57 +1,57 @@
@import "./variable";
@import './variable';
@mixin absolute($width: 100%, $height: 100%) {
position: absolute;
width: $width;
height: $height;
left: 0;
top: 0;
position: absolute;
width: $width;
height: $height;
left: 0;
top: 0;
}
@mixin overflow-auto($direction: 'both') {
@if $direction == 'both' {
overflow: auto;
} @else {
overflow-#{$direction}: auto;
}
-webkit-overflow-scrolling: touch;
@if $direction == 'both' {
overflow: auto;
} @else {
overflow-#{$direction}: auto;
}
-webkit-overflow-scrolling: touch;
}
@mixin breadcrumb {
background: #fff;
user-select: text;
margin-bottom: 10px;
word-break: break-all;
padding: $padding;
font-size: $font-size-l;
min-height: 40px;
border-bottom: 1px solid $gray-light;
background: #fff;
user-select: text;
margin-bottom: 10px;
word-break: break-all;
padding: $padding;
font-size: $font-size-l;
min-height: 40px;
border-bottom: 1px solid $gray-light;
}
@mixin clear-float {
&:after {
content: '';
display: block;
clear: both;
}
&:after {
content: '';
display: block;
clear: both;
}
}
@mixin right-circle-btn {
.btn {
margin-left: 10px;
float: right;
background: #fff;
color: $gray;
text-align: center;
width: 18px;
height: 18px;
line-height: 18px;
border-radius: 50%;
font-size: 12px;
cursor: pointer;
transition: color $anim-duration;
&:active {
color: $gray-dark;
}
.btn {
margin-left: 10px;
float: right;
background: #fff;
color: $gray;
text-align: center;
width: 18px;
height: 18px;
line-height: 18px;
border-radius: 50%;
font-size: 12px;
cursor: pointer;
transition: color $anim-duration;
&:active {
color: $gray-dark;
}
}
}
}

View File

@@ -1,44 +1,125 @@
.container {
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
display: block;
}
body {
line-height: 1;
}
ol,
ul {
list-style: none;
}
blockquote,
q {
quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
}

View File

@@ -1,50 +1,52 @@
@import "variable";
@import "mixin";
@import 'variable';
@import 'mixin';
.container {
pointer-events: none;
will-change: transform;
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 100000;
color: $gray-dark;
transform: translateZ(0);
font-family: $font-family;
font-size: $font-size;
direction: ltr;
* {
box-sizing: border-box;
pointer-events: all;
user-select: none;
-webkit-tap-highlight-color: transparent;
-webkit-text-size-adjust: none;
}
ul {
list-style: none;
padding: 0;
margin: 0;
}
h1, h2, h3, h4 {
margin: 0;
}
pointer-events: none;
will-change: transform;
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 100000;
color: $gray-dark;
transform: translateZ(0);
font-family: $font-family;
font-size: $font-size;
direction: ltr;
* {
box-sizing: border-box;
pointer-events: all;
user-select: none;
-webkit-tap-highlight-color: transparent;
-webkit-text-size-adjust: none;
}
ul {
list-style: none;
padding: 0;
margin: 0;
}
h1,
h2,
h3,
h4 {
margin: 0;
}
}
.hidden {
display: none;
display: none;
}
.blue {
color: $blue;
color: $blue;
}
.red {
color: $red;
color: $red;
}
.green {
color: $green;
color: $green;
}

View File

@@ -1,4 +1,5 @@
$box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .05), 0 1px 4px 0 rgba(0, 0, 0, .08), 0 3px 1px -2px rgba(0, 0, 0, .2);
$box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.05), 0 1px 4px 0 rgba(0, 0, 0, 0.08),
0 3px 1px -2px rgba(0, 0, 0, 0.2);
$border-radius: 4px;
$padding: 10px;
@@ -10,7 +11,7 @@ $font-size-l: 16px;
$font-family: 'Helvetica Neue', Helvetica, Arial, sans-seri;
$font-family-code: Consolas, Lucida Console, Monaco, MonoSpace;
$anim-duration: .3s;
$anim-duration: 0.3s;
// https://www.google.com/design/spec/style/color.html#color-color-palette
$blue: #2196f3;
@@ -25,4 +26,4 @@ $red-dark: #b71c1c;
$green: #009688;
$yellow: #ffc107;
$yellow-light: #ffecb3;
$yellow-dark: #ff6f00;
$yellow-dark: #ff6f00;