mirror of
https://github.com/koel/koel
synced 2024-12-01 08:19:18 +00:00
324 lines
5 KiB
SCSS
324 lines
5 KiB
SCSS
*, *:before, *:after {
|
|
box-sizing: border-box;
|
|
outline: none;
|
|
}
|
|
|
|
body, html {
|
|
background: $colorMainBgr;
|
|
color: $colorMainText;
|
|
font-family: $fontFamily;
|
|
font-size: $fontSize;
|
|
line-height: 1.5rem;
|
|
font-weight: $fontWeight_Thin;
|
|
overflow: hidden;
|
|
}
|
|
|
|
input, select, button, textarea, .btn {
|
|
appearance: none;
|
|
border: 0;
|
|
outline: 0;
|
|
font-family: $fontFamily;
|
|
font-size: 1rem;
|
|
font-weight: $fontWeight_Thin;
|
|
padding: .5rem .6rem;
|
|
border-radius: .2rem;
|
|
|
|
&:required, &:invalid {
|
|
box-shadow: none;
|
|
}
|
|
|
|
&.dirty {
|
|
background: $colorDirtyInputBgr;
|
|
}
|
|
|
|
&[type="search"] {
|
|
border-radius: 12px;
|
|
height: 24px;
|
|
padding: 0 .5rem;
|
|
}
|
|
|
|
&[type="text"] {
|
|
display: block;
|
|
}
|
|
|
|
&:focus { outline: none !important; }
|
|
&::-moz-focus-inner { border: 0 !important; }
|
|
}
|
|
|
|
input[type="checkbox"] {
|
|
border: 1px solid rgba(255, 255, 255, .3);
|
|
border-radius: 0;
|
|
background: transparent;
|
|
color: #555;
|
|
clear: none;
|
|
cursor: pointer;
|
|
display: inline-block;
|
|
line-height: 0;
|
|
height: 16px;
|
|
margin: -4px 4px 0 0;
|
|
outline: 0;
|
|
padding: 0!important;
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
width: 16px;
|
|
min-width: 16px;
|
|
box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
|
|
background: #fff;
|
|
|
|
&:before {
|
|
font-family: FontAwesome;
|
|
color: $colorHighlight;
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
width: 14px;
|
|
height: 14px;
|
|
line-height: 1.3rem;
|
|
text-align: center;
|
|
}
|
|
|
|
&:checked {
|
|
&:before {
|
|
content: "\f00c";
|
|
}
|
|
}
|
|
|
|
&:indeterminate {
|
|
&:before {
|
|
content: "\f068";
|
|
}
|
|
}
|
|
}
|
|
|
|
a, a:link, a:visited {
|
|
color: $colorLink;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.clear, .clearfix {
|
|
&::after {
|
|
content: " ";
|
|
clear: both;
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.side {
|
|
width: 256px;
|
|
}
|
|
|
|
.ir {
|
|
color: transparent;
|
|
font: 0/0 serif;
|
|
}
|
|
|
|
.control {
|
|
cursor: pointer;
|
|
color: $colorLink;
|
|
|
|
&:hover {
|
|
color: $colorLinkHovered;
|
|
}
|
|
}
|
|
|
|
p {
|
|
line-height: 1.5rem;
|
|
}
|
|
|
|
em {
|
|
font-style: italic;
|
|
}
|
|
|
|
.help {
|
|
opacity: .7;
|
|
font-size: .9rem;
|
|
line-height: 1.3rem;
|
|
}
|
|
|
|
label {
|
|
font-size: 1.1rem;
|
|
margin-bottom: 8px;
|
|
display: block;
|
|
|
|
&.small {
|
|
font-size: 1rem;
|
|
}
|
|
}
|
|
|
|
button, input[type="submit"], input[type="reset"], input[type="button"], .btn {
|
|
background: $colorBtnBgr;
|
|
color: $colorBtnText;
|
|
font-size: 1rem;
|
|
padding: .6rem 1rem;
|
|
cursor: pointer;
|
|
|
|
@include inset-when-pressed();
|
|
|
|
&.btn-green {
|
|
background-color: $colorGreen;
|
|
|
|
&:hover {
|
|
background-color: darken($colorGreen, 10%);
|
|
}
|
|
}
|
|
|
|
&.btn-white {
|
|
background-color: #fff;
|
|
color: #333;
|
|
|
|
&:hover {
|
|
background-color: darken(#fff, 10%);
|
|
}
|
|
}
|
|
|
|
&.btn-red {
|
|
background-color: $colorRed;
|
|
|
|
&:hover {
|
|
background-color: darken($colorRed, 10%);
|
|
}
|
|
}
|
|
|
|
&.btn-blue {
|
|
background-color: $colorBlue;
|
|
|
|
&:hover {
|
|
background-color: darken($colorBlue, 10%);
|
|
}
|
|
}
|
|
|
|
&.btn-grey {
|
|
background-color: $colorGrey;
|
|
|
|
&:hover {
|
|
background-color: darken($colorGrey, 10%);
|
|
}
|
|
}
|
|
|
|
&.btn-orange {
|
|
background-color: $colorOrange;
|
|
|
|
&:hover {
|
|
background-color: darken($colorOrange, 10%);
|
|
}
|
|
}
|
|
}
|
|
|
|
.tabs {
|
|
.header {
|
|
$tabColor: #5c5c5c;
|
|
border-bottom: 1px solid $tabColor;
|
|
|
|
a {
|
|
padding: .6rem 1rem;
|
|
margin-left: 4px;
|
|
border-radius: 4px 4px 0 0;
|
|
text-transform: uppercase;
|
|
color: lighten($tabColor, 50%);
|
|
opacity: .4;
|
|
border: 1px solid $tabColor;
|
|
margin-bottom: -1px;
|
|
float: left;
|
|
|
|
&.active {
|
|
border-bottom: 1px solid $colorExtraBgr;
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.panes {
|
|
padding: 16px 0;
|
|
}
|
|
|
|
&.tabs-white {
|
|
.header {
|
|
border-bottom-color: #aaa;
|
|
|
|
a {
|
|
color: #333;
|
|
border-color: #aaa;
|
|
|
|
&.active {
|
|
border-bottom-color: #fff;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.form-row {
|
|
margin-top: 16px;
|
|
position: relative;
|
|
}
|
|
|
|
.overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 9999;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: auto;
|
|
background-color: rgba(0, 0, 0, .7);
|
|
|
|
@include vertical-center();
|
|
|
|
form {
|
|
$borderRadius: 5px;
|
|
|
|
position: relative;
|
|
width: 100%;
|
|
max-width: 460px;
|
|
background: #fff;
|
|
border-radius: $borderRadius;
|
|
color: #333;
|
|
|
|
input[type="checkbox"] {
|
|
border: 1px solid #ccc;
|
|
}
|
|
|
|
.form-row:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
> header, > div, > footer {
|
|
padding: 16px;
|
|
}
|
|
|
|
> div {
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
input[type="text"], input[type="number"], input[type="email"], input[type="password"],
|
|
input[type="url"], textarea {
|
|
border: 1px solid #ccc;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
|
|
&:focus {
|
|
border-color: $colorOrange;
|
|
}
|
|
}
|
|
|
|
.warning {
|
|
color: #f00;
|
|
}
|
|
|
|
textarea {
|
|
min-height: 192px;
|
|
}
|
|
|
|
> header {
|
|
display: flex;
|
|
background: #eee;
|
|
border-radius: $borderRadius $borderRadius 0 0;
|
|
|
|
h1 {
|
|
font-size: 1.8rem;
|
|
line-height: 2.2rem;
|
|
margin-bottom: .3rem;
|
|
}
|
|
}
|
|
}
|
|
}
|