Readlebee/app/styles/picnic-customizations/_custom.scss

247 lines
3.4 KiB
SCSS
Raw Normal View History

// Picnic Overrides
body {
font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}
a {
color: $picnic-info;
&:not(.button) {
&:hover,
&:active,
&:focus {
color: darken($picnic-info, 10);
}
}
}
nav {
position: relative;
}
// For some reason, hidden is not important by default!
[hidden] {
display: none !important;
}
.pseudo[data-tooltip]::after {
background-color: $picnic-black;
color: $picnic-white;
}
.modal {
position: absolute; // Prevent modal partial from interrupting content flow.
}
// External links
2019-09-11 01:36:49 +02:00
a[href^="http://"]:after,
a[href^="https://"]:after{
font-family: "icons";
font-size: 70%;
vertical-align: top;
margin-left: 3px;
content: "\f08e";
}
// New components
.menu ul li {
display: inline-block;
list-style: none;
}
footer nav {
.links {
@extend .brand;
font-weight: unset;
}
}
.container {
display: block;
width: 75%;
max-width: 900px;
min-width: 560px;
margin: 0 auto;
padding: $picnic-separation 0;
&.wide {
width: 100%;
padding: $picnic-separation;
}
}
.title + .subtitle {
margin-top: -2 * $picnic-separation;
padding-top: 0;
font-size: 0.8em;
line-height: 1.2em;
font-weight: normal;
}
.content {
padding: $picnic-separation;
font-size: 90%;
p {
margin: 0 0 $picnic-separation;
}
h1, h2, h3, h4, h5, h6 {
padding: 0.4em 0 0.1em;
}
h1 {
font-size: 1.6em;
}
h2 {
font-size: 1.45em;
}
h3 {
font-size: 1.3em;
}
h4 {
font-size: 1.15em;
}
h5 {
font-size: 1.05em;
}
h6 {
font-size: 0.95em;
}
}
.sub-stack {
@extend .stack;
width: 90%;
min-width: unset;
margin: 0 0 0 auto;
}
.card {
&.info {
background: $picnic-info;
color: $picnic-white;
* {
color: $picnic-white;
}
}
&.success {
background: $picnic-success;
color: $picnic-white;
* {
color: $picnic-white;
}
}
&.warning {
background: $picnic-warning;
color: $picnic-white;
* {
color: $picnic-white;
}
}
&.error {
background: $picnic-error;
color: $picnic-white;
* {
color: $picnic-white;
}
}
}
.background-dull {
background: $picnic-dull;
}
.background-light {
background: $picnic-light;
}
th {
background: $picnic-dull;
* {
color: $picnic-white;
}
}
.light th {
background: $picnic-light;
color: $picnic-black;
* {
color: $picnic-black;
}
}
// Handy Utilities
.marginless {
margin: 0 !important;
}
.paddingless {
padding: 0 !important;
}
.inline {
display: inline !important;
}
.italic {
font-style: italic !important;
}
.large {
font-size: 1.5em;
}
.small {
font-size: 0.8em;
}
.left-align {
text-align: left !important;
}
.right-align {
text-align: right !important;
}
.center-align {
text-align: center !important;
}
.clear {
clear: both;
}
.pull-left {
float: left;
}
.pull-right {
float: right;
}
@media (max-width: 960px) {
.menu ul li {
display: block;
}
}
@media (max-width: 599px) {
.container {
width: 98%;
min-width: unset;
}
.brand {
font-size: 75%;
}
}
@media (min-width: 599px) {
.left-align-desktop {
text-align: left;
}
.right-align-desktop {
text-align: right;
}
.center-align-desktop {
text-align: center;
}
.pull-left-desktop {
float: left;
}
.pull-right-desktop {
float: right;
}
}