mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-02 08:09:47 -04:00
Clean and refactor styles.
This commit is contained in:
parent
f89010bd98
commit
dabc9e3c93
9 changed files with 31 additions and 30 deletions
|
@ -21,8 +21,8 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.crumb {
|
.crumb {
|
||||||
|
.eased-transition;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
transition: all 0.2s ease-in-out;
|
|
||||||
}
|
}
|
||||||
.sep {
|
.sep {
|
||||||
width: 24px;
|
width: 24px;
|
||||||
|
|
|
@ -45,13 +45,13 @@
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
|
.eased-transition;
|
||||||
display: block;
|
display: block;
|
||||||
width: 48px;
|
width: 48px;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
margin: -36px 0;
|
margin: -36px 0;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
transition: all 0.2s ease-in-out;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
@ -93,21 +93,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.bar-label {
|
.bar-label {
|
||||||
|
.eased-transition;
|
||||||
display: block;
|
display: block;
|
||||||
color: @col-text-primary-white;
|
color: @col-text-primary-white;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
line-height: 48px;
|
line-height: 48px;
|
||||||
padding: 0 12px;
|
padding: 0 12px;
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
transition: all 0.2s ease-in-out;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.bar-button {
|
.bar-button {
|
||||||
|
.eased-transition;
|
||||||
display: block;
|
display: block;
|
||||||
line-height: 48px;
|
line-height: 48px;
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s ease-in-out;
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
opacity: 1.0;
|
opacity: 1.0;
|
||||||
|
|
|
@ -37,9 +37,9 @@
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
|
.eased-transition;
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
transition: all 0.2s ease-in-out;
|
|
||||||
}
|
}
|
||||||
&.open {
|
&.open {
|
||||||
img {
|
img {
|
||||||
|
|
|
@ -19,12 +19,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#header a {
|
#header a {
|
||||||
|
.eased-transition;
|
||||||
font-size: 4em;
|
font-size: 4em;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
margin: 0.8em 0 0 0;
|
margin: 0.8em 0 0 0;
|
||||||
color: @col-text-primary-black;
|
color: @col-text-primary-black;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
transition: all 0.2s ease-in-out;
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: @col-text-hover;
|
color: @col-text-hover;
|
||||||
|
|
|
@ -14,13 +14,22 @@
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.clear-appearance {
|
||||||
|
-moz-appearance: none;
|
||||||
|
-ms-appearance: none;
|
||||||
|
-webkit-appearance: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.eased-transition {
|
||||||
|
transition: all 0.2s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
.el-button {
|
.el-button {
|
||||||
.card;
|
.card;
|
||||||
.rounded;
|
.rounded;
|
||||||
transition: all 0.2s ease-in-out;
|
.eased-transition;
|
||||||
color: @col-text-primary-white;
|
color: @col-text-primary-white;
|
||||||
background: @col-blue-400;
|
background: @col-blue-400;
|
||||||
border-radius: 2px;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
||||||
|
@ -32,9 +41,7 @@
|
||||||
.el-input {
|
.el-input {
|
||||||
.card;
|
.card;
|
||||||
.rounded;
|
.rounded;
|
||||||
-moz-appearance: none;
|
.clear-appearance;
|
||||||
-ms-appearance: none;
|
|
||||||
-webkit-appearance: none;
|
|
||||||
font-family: @font-family;
|
font-family: @font-family;
|
||||||
font-weight: @font-weight;
|
font-weight: @font-weight;
|
||||||
color: @col-text-primary-black;
|
color: @col-text-primary-black;
|
||||||
|
|
|
@ -71,11 +71,11 @@
|
||||||
box-shadow: 0 0 8px 0 rgba(0,0,0,0.2);
|
box-shadow: 0 0 8px 0 rgba(0,0,0,0.2);
|
||||||
|
|
||||||
a, a:active, a:visited {
|
a, a:active, a:visited {
|
||||||
|
.eased-transition;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
line-height: 48px;
|
line-height: 48px;
|
||||||
color: @col-text-secondary-black;
|
color: @col-text-secondary-black;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
transition: all 0.2s ease-in-out;
|
|
||||||
outline: 0;
|
outline: 0;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|
|
@ -19,12 +19,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
|
.rounded;
|
||||||
|
.eased-transition;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin: 4px;
|
margin: 4px;
|
||||||
border-radius: 2px;
|
|
||||||
color: @col-text;
|
color: @col-text;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s ease-in-out;
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: @col-back-hover;
|
background: @col-back-hover;
|
||||||
|
@ -43,9 +43,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.select {
|
.select {
|
||||||
|
.rounded;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border-radius: 2px;
|
|
||||||
outline: 0;
|
outline: 0;
|
||||||
width: 160px;
|
width: 160px;
|
||||||
margin: 4px;
|
margin: 4px;
|
||||||
|
@ -53,9 +53,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
input, select {
|
input, select {
|
||||||
-moz-appearance: none;
|
.clear-appearance;
|
||||||
-ms-appearance: none;
|
|
||||||
-webkit-appearance: none;
|
|
||||||
font-family: @font-family;
|
font-family: @font-family;
|
||||||
font-size: @font-size;
|
font-size: @font-size;
|
||||||
font-weight: @font-weight;
|
font-weight: @font-weight;
|
||||||
|
@ -79,7 +77,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type='range'] {
|
input[type='range'] {
|
||||||
border-radius: 2px;
|
.rounded;
|
||||||
width: 144px;
|
width: 144px;
|
||||||
margin: 4px;
|
margin: 4px;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
|
@ -88,20 +86,16 @@
|
||||||
line-height: 32px;
|
line-height: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.range-track() {
|
.range-track {
|
||||||
-moz-appearance: none;
|
.clear-appearance;
|
||||||
-ms-appearance: none;
|
|
||||||
-webkit-appearance: none;
|
|
||||||
border-width: 0;
|
border-width: 0;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
background: @col-range-back;
|
background: @col-range-back;
|
||||||
height: 6px;
|
height: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.range-thumb() {
|
.range-thumb {
|
||||||
-moz-appearance: none;
|
.clear-appearance;
|
||||||
-ms-appearance: none;
|
|
||||||
-webkit-appearance: none;
|
|
||||||
border-width: 0;
|
border-width: 0;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
background: @col-range-thumb;
|
background: @col-range-thumb;
|
||||||
|
|
|
@ -22,9 +22,9 @@
|
||||||
height: 48px;
|
height: 48px;
|
||||||
|
|
||||||
.tool {
|
.tool {
|
||||||
|
.eased-transition;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s ease-in-out;
|
|
||||||
|
|
||||||
img {
|
img {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
@ -47,6 +47,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#backlink {
|
#backlink {
|
||||||
|
.eased-transition;
|
||||||
display: block;
|
display: block;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
|
@ -55,7 +56,6 @@
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
transition: all 0.2s ease-in-out;
|
|
||||||
|
|
||||||
&, &:active, &:visited {
|
&, &:active, &:visited {
|
||||||
color: @col-text-disabled-black;
|
color: @col-text-disabled-black;
|
||||||
|
|
|
@ -39,10 +39,10 @@
|
||||||
border-radius: 2px 2px 0 0;
|
border-radius: 2px 2px 0 0;
|
||||||
|
|
||||||
.label, .date, .size {
|
.label, .date, .size {
|
||||||
|
.eased-transition;
|
||||||
line-height: 46px;
|
line-height: 46px;
|
||||||
opacity: 0.4;
|
opacity: 0.4;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
transition: all 0.2s ease-in-out;
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue