Files
mixtape/zero.Web/Sass/Core/_core.scss
T
2020-04-07 00:33:09 +02:00

223 lines
2.4 KiB
SCSS

*, *:before, *:after
{
box-sizing: border-box;
// remove tap highlighting to fix nasty android behaviour ...
-webkit-tap-highlight-color: rgba(0,0,0,0);
-webkit-tap-highlight-color: transparent;
}
// media
img
{
display: inline-block;
vertical-align: middle;
}
img, object, embed
{
max-width: 100%;
height: auto;
}
object, embed
{
height: 100%;
}
// links
a, a:visited, a:link
{
/*color: var(--color-fg);*/
text-decoration: none;
transition: color .2s, transform .2s, background .2s;
}
a:focus
{
/*outline: 1px dotted #c3184e;*/
outline: none;
}
button
{
-webkit-appearance: none;
border: none;
outline: none;
background: transparent;
cursor: pointer;
padding: 0;
margin: 0;
text-align: left;
}
// headlines
h1
{
@extend %font-headline;
font-size: calc(1.4rem + 0.1vmin);
font-weight: 400;
margin: -0.3rem 0 3rem;
}
h2
{
@extend %font-headline;
font-size: calc(1.4rem + 0.1vmin);
font-weight: 400;
margin: 0 0 2rem;
}
h3
{
@extend %font-headline;
}
// lists
ul
{
margin: 0;
padding: 0;
}
ul li
{
list-style: none inside;
font-size: 16px;
margin-bottom: 0;
padding-left: 16px;
position: relative;
}
ul li:last-child
{
margin-bottom: 0;
}
ul li:before
{
content: ' ';
display: inline-block;
width: 4px;
height: 4px;
border-radius: 12px;
background: var(--color-fg);
position: absolute;
left: 1px;
top: 9px;
}
ol
{
margin: 0;
padding: 0;
}
ol li
{
list-style-position: outside;
margin-left: 1em;
font-size: 16px;
margin-bottom: 20px;
position: relative;
}
ol li:last-child
{
margin-bottom: 0;
}
li
{
line-height: 1.8;
}
li > *
{
margin: 0 !important;
padding: 0 !important;
display: inline;
}
// tables
table
{
border-collapse: collapse;
}
// misc
hr
{
margin: 20px 0;
border: none;
border-bottom: 1px solid var(--color-line);
}
sup
{
margin-left: 5px;
font-size: 0.7em;
}
// media
iframe, video
{
margin-top: 20px;
}
// screenreader
.sr-only
{
height: 1px;
width: 1px;
clip: rect(1px, 1px, 1px, 1px);
overflow: hidden;
position: absolute;
opacity: 0.01;
}
/// scrollbar
*
{
scrollbar-color: var(--color-bg-light) transparent;
scrollbar-width: thin;
}
::-webkit-scrollbar
{
width: 7px;
height: 7px;
background-color: transparent;
}
::-webkit-scrollbar-thumb
{
background: var(--color-bg-light);
}
/// ui resizable
.ui-resizing
{
user-select: none;
}