lbry.tech/app/sass/init/_base.scss

191 lines
2.7 KiB
SCSS
Raw Normal View History

2018-10-06 00:46:08 +02:00
// sass-lint:disable no-important
2018-05-02 00:45:31 +02:00
html {
box-sizing: border-box;
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
}
*,
*::before,
*::after {
margin: 0; padding: 0;
box-sizing: inherit;
outline: 0 !important;
}
a,
area,
2018-10-06 00:46:08 +02:00
button,
[role="button"],
2018-05-02 00:45:31 +02:00
input,
label,
select,
summary,
2018-08-07 00:51:32 +02:00
textarea {
touch-action: manipulation; // Remove touch delay on supported devices
2018-05-02 00:45:31 +02:00
}
a {
color: currentColor;
text-decoration: none;
}
*[readonly] {
cursor: not-allowed;
}
textarea {
2018-10-06 00:46:08 +02:00
&:not([disabled]) {
resize: vertical;
2018-05-02 00:45:31 +02:00
}
2018-10-06 00:46:08 +02:00
&[disabled] {
resize: none;
2018-05-02 00:45:31 +02:00
}
}
button {
&:not(:disabled) {
cursor: pointer;
}
}
button,
input,
select,
textarea {
border: none;
border-radius: 0;
font-family: inherit;
font-size: inherit;
-moz-appearance: none;
-webkit-appearance: none;
&:focus {
outline: none;
}
}
input,
select,
textarea {
background-color: transparent;
}
2018-10-06 00:46:08 +02:00
[type="button"],
[type="submit"] {
2018-05-02 00:45:31 +02:00
cursor: pointer;
}
iframe {
2018-10-06 00:46:08 +02:00
border: none;
2018-05-02 00:45:31 +02:00
}
img {
2018-05-09 21:13:03 +02:00
max-width: 100%;
2018-10-06 00:46:08 +02:00
font-size: 0;
2018-05-11 20:01:39 +02:00
2018-05-02 00:45:31 +02:00
&::after {
width: 100%; height: 100%;
2018-10-13 00:29:53 +02:00
background-color: $lbry-white;
2018-07-23 23:46:58 +02:00
background-image: url("/assets/media/images/missing.png");
2018-05-02 00:45:31 +02:00
background-size: cover;
2018-10-13 00:29:53 +02:00
box-shadow: 0 0 1px 0 rgba($lbry-black, 0.3);
2018-05-02 00:45:31 +02:00
content: "";
display: block;
}
}
@media print {
// Intelligent print styles
2018-10-06 00:46:08 +02:00
pre,
blockquote {
border: 1px solid #999 !important;
page-break-inside: avoid !important;
}
2018-05-02 00:45:31 +02:00
2018-10-06 00:46:08 +02:00
tr,
img {
page-break-inside: avoid !important;
}
2018-05-02 00:45:31 +02:00
2018-10-06 00:46:08 +02:00
img {
max-width: 100% !important;
}
@page {
margin: 0.5cm !important;
}
p,
h2,
h3 {
orphans: 3 !important;
widows: 3 !important;
}
2018-05-02 00:45:31 +02:00
2018-10-06 00:46:08 +02:00
h2,
h3 {
page-break-after: avoid !important;
}
2018-05-02 00:45:31 +02:00
2018-10-06 00:46:08 +02:00
thead {
display: table-header-group !important;
}
// Faster, more stable printing
* {
background: transparent !important;
color: #000 !important;
filter: none !important;
text-shadow: none !important;
}
p {
a {
&[href]::after { // Show hypertext data for links and abbreviations
content: " (" attr(href) ")" !important;
}
&[href^="javascript:"],
&[href^="#"] {
&::after {
content: "" !important;
}
}
}
abbr {
&[title]::after {
content: " (" attr(title) ")" !important;
}
}
a,
abbr {
text-decoration: underline !important;
word-wrap: break-word !important;
}
}
}
2018-05-02 00:45:31 +02:00
input::-moz-focus-inner,
button::-moz-focus-inner {
display: none;
}
// Get rid of yellow autofill background
input:-webkit-autofill {
2018-10-13 00:29:53 +02:00
-webkit-box-shadow: 0 0 0 1000px $lbry-white inset !important;
2018-05-02 00:45:31 +02:00
&:focus {
outline: none;
}
}