koel/resources/assets/sass/partials/_shared.scss

149 lines
2.5 KiB
SCSS
Raw Normal View History

2015-12-13 04:42:28 +00:00
*, *:before, *:after {
box-sizing: border-box;
outline: none;
}
2016-01-17 05:14:12 +00:00
2015-12-13 04:42:28 +00:00
input, select, button {
-webkit-appearance: none;
2016-01-17 05:14:12 +00:00
-moz-appearance: none;
2015-12-13 04:42:28 +00:00
border: 0;
outline: 0;
font-family: $fontFamily;
font-size: $fontSize;
font-weight: $fontWeight_Thin;
padding: 4px 8px;
border-radius: 3px;
&:required, &:invalid {
box-shadow: none;
}
&.dirty {
background: $colorDirtyInputBgr;
}
&[type="search"] {
border-radius: 12px;
height: 24px;
padding: 0 6px;
}
&[type="text"] {
display: block;
}
2016-01-17 05:14:12 +00:00
&:focus { outline: none !important; }
&::-moz-focus-inner { border: 0 !important; }
2015-12-13 04:42:28 +00:00
}
input[type="checkbox"] {
2016-01-06 16:41:59 +00:00
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);
&:checked{
background: #fff;
&:before {
font-family: FontAwesome;
content: "\f00c";
color: $colorHighlight;
display: inline-block;
vertical-align: middle;
width: 14px;
height: 14px;
line-height: 14px;
text-align: center;
}
}
2015-12-13 04:42:28 +00:00
}
a, a:link, a:visited {
color: $colorLink;
text-decoration: none;
cursor: pointer;
}
.clear, .clearfix {
&::after {
2015-12-13 04:42:28 +00:00
content: " ";
clear: both;
display: block;
2015-12-13 04:42:28 +00:00
}
}
.side {
width: 256px;
}
.ir {
color: transparent;
font: 0/0 serif;
}
.control {
cursor: pointer;
color: $colorLink;
&:hover {
color: $colorLinkHovered;
}
}
p {
line-height: 20px;
}
.help {
opacity: .7;
font-size: 90%;
line-height: 16px;
}
label {
font-size: 110%;
margin-bottom: 8px;
display: block;
}
button, input[type="submit"], input[type="reset"], input[type="button"] {
background: $colorBtnBgr;
color: $colorBtnText;
font-size: 14px;
padding: 8px 12px;
cursor: pointer;
@include inset-when-pressed();
}
body, html {
overflow: hidden;
}
[draggable] {
user-select: none;
/* Required to make elements draggable in old WebKit */
-khtml-user-drag: element;
-webkit-user-drag: element;
}
.form-row {
margin-top: 16px;
}