Ghost/ghost/admin/app/styles/patterns/global.css

693 lines
14 KiB
CSS
Raw Normal View History

2015-05-14 16:45:37 +03:00
/* Global styles
/* ---------------------------------------------------------- */
/* Variables
/* ---------------------------------------------------------- */
:root {
/* Primary colours */
--black: #15171A;
--white: #fff;
--lime: #B5FF18;
/* Secondary colours */
2021-02-03 22:35:11 +03:00
--blue: #23AAF4;
2021-02-04 19:25:42 +03:00
--green: #45C32E;
--purple: #F71D81;
--yellow: #FFC701;
2016-11-14 12:55:08 +03:00
--red: #f05230;
--pink: #fa3a57;
/* Greys */
--blackgrey: #15171A;
--darkgrey: #394047;
--middarkgrey: #626D79;
--midgrey: #7C8B9A;
--midlightgrey: #ABB4BE;
--lightgrey: #CED4D9;
--whitegrey: #EBEEF0;
--white: #ffffff;
/* Tones */
--white-10: rgba(255, 255, 255, 0.1);
--white-20: rgba(255, 255, 255, 0.2);
--white-30: rgba(255, 255, 255, 0.3);
--white-40: rgba(255, 255, 255, 0.4);
--white-50: rgba(255, 255, 255, 0.5);
--white-60: rgba(255, 255, 255, 0.6);
--white-70: rgba(255, 255, 255, 0.7);
--white-80: rgba(255, 255, 255, 0.8);
--white-90: rgba(255, 255, 255, 0.9);
--black-10: rgba(21, 23, 26, 0.1);
--black-20: rgba(21, 23, 26, 0.2);
--black-30: rgba(21, 23, 26, 0.3);
--black-40: rgba(21, 23, 26, 0.4);
--black-50: rgba(21, 23, 26, 0.5);
--black-60: rgba(21, 23, 26, 0.6);
--black-70: rgba(21, 23, 26, 0.7);
--black-80: rgba(21, 23, 26, 0.8);
--black-90: rgba(21, 23, 26, 0.9);
--blue-l3: color-mod(var(--blue) l(+15%));
--blue-l2: color-mod(var(--blue) l(+10%));
--blue-l1: color-mod(var(--blue) l(+5%));
--blue-d1: color-mod(var(--blue) l(-5%));
--blue-d2: color-mod(var(--blue) l(-10%));
--blue-d3: color-mod(var(--blue) l(-15%));
--green-l3: color-mod(var(--green) l(+15%));
--green-l2: color-mod(var(--green) l(+10%));
--green-l1: color-mod(var(--green) l(+5%));
--green-d1: color-mod(var(--green) l(-5%));
--green-d2: color-mod(var(--green) l(-10%));
--green-d3: color-mod(var(--green) l(-15%));
--purple-l3: color-mod(var(--purple) l(+15%));
--purple-l2: color-mod(var(--purple) l(+10%));
--purple-l1: color-mod(var(--purple) l(+5%));
--purple-d1: color-mod(var(--purple) l(-5%));
--purple-d2: color-mod(var(--purple) l(-10%));
--purple-d3: color-mod(var(--purple) l(-15%));
--yellow-l3: color-mod(var(--yellow) l(+15%));
--yellow-l2: color-mod(var(--yellow) l(+10%));
--yellow-l1: color-mod(var(--yellow) l(+5%));
--yellow-d1: color-mod(var(--yellow) l(-5%));
--yellow-d2: color-mod(var(--yellow) l(-10%));
--yellow-d3: color-mod(var(--yellow) l(-13%));
--red-l3: color-mod(var(--red) l(+15%));
--red-l2: color-mod(var(--red) l(+10%));
--red-l1: color-mod(var(--red) l(+5%));
--red-d1: color-mod(var(--red) l(-5%));
--red-d2: color-mod(var(--red) l(-10%));
--red-d3: color-mod(var(--red) l(-15%));
--pink-l3: color-mod(var(--pink) l(+15%));
--pink-l2: color-mod(var(--pink) l(+10%));
--pink-l1: color-mod(var(--pink) l(+5%));
--pink-d1: color-mod(var(--pink) l(-5%));
--pink-d2: color-mod(var(--pink) l(-10%));
--pink-d3: color-mod(var(--pink) l(-15%));
--black-l2: color-mod(var(--black) h(-1) l(+7%));
--black-l1: color-mod(var(--black) h(+1) l(+3%));
--black-d1: color-mod(var(--black) l(-3%));
--black-d2: color-mod(var(--black) l(-6%));
--darkgrey-l2: color-mod(var(--darkgrey) h(-1) l(+7%));
--darkgrey-l1: color-mod(var(--darkgrey) h(+1) l(+3%));
--darkgrey-d1: color-mod(var(--darkgrey) l(-3%));
--darkgrey-d2: color-mod(var(--darkgrey) l(-6%));
--middarkgrey-l2: color-mod(var(--middarkgrey) h(+1) l(+7%));
--middarkgrey-l1: color-mod(var(--middarkgrey) h(+2) l(+4%));
--middarkgrey-d1: color-mod(var(--middarkgrey) h(+2) l(-3%));
--middarkgrey-d2: color-mod(var(--middarkgrey) h(+1) l(-7%));
--midgrey-l2: color-mod(var(--midgrey) h(+2) s(+2%) l(+7%));
--midgrey-l1: color-mod(var(--midgrey) h(+1) s(+1%) l(+4%));
--midgrey-d1: color-mod(var(--midgrey) h(+1) l(-3%));
--midgrey-d2: color-mod(var(--midgrey) l(-7%));
--midlightgrey-l2: color-mod(var(--midlightgrey) h(-3) s(+2%) l(+8%));
--midlightgrey-l1: color-mod(var(--midlightgrey) h(-1) s(+1%) l(+4%));
--midlightgrey-d1: color-mod(var(--midlightgrey) h(+1) s(-1%) l(-3%));
--midlightgrey-d2: color-mod(var(--midlightgrey) h(-3) s(-2%) l(-7%));
--lightgrey-l2: color-mod(var(--lightgrey) h(+1) s(+14%) l(+8%));
--lightgrey-l1: color-mod(var(--lightgrey) h(+1) s(+12%) l(+6%));
--lightgrey-d1: color-mod(var(--lightgrey) s(-1%) l(-4%));
--lightgrey-d2: color-mod(var(--lightgrey) h(-2) s(-2%) l(-7%));
--whitegrey-l2: color-mod(var(--whitegrey) h(+7) s(-4%) l(+5%));
--whitegrey-l1: color-mod(var(--whitegrey) h(+1) s(-2%) l(+3%));
--whitegrey-d1: color-mod(var(--whitegrey) h(-1) s(-7%) l(-3%));
--whitegrey-d2: color-mod(var(--whitegrey) h(-1) s(-11%) l(-6%));
/* Global, high-level UI colors */
--main-bg-color: rgb(255, 255, 255);
2021-02-05 14:04:36 +03:00
--main-color-area-divider: var(--whitegrey-d1);
--main-color-content-greybg: color-mod(var(--whitegrey-l2) l(-1%));
2021-02-05 20:27:40 +03:00
--list-color-divider: var(--whitegrey-d1);
/* Special colours */
--transparent:transparent;
--errorbg-lightred: rgba(240, 82, 48, 0.05);
2021-02-05 14:04:36 +03:00
/* Global layout values */
--main-layout-content-sidepadding: 48px;
--main-layout-content-maxwidth: 1320px;
--main-layout-area-padding: 32px;
--main-layout-vpanel-height: 96px;
2021-02-05 20:27:40 +03:00
--main-layout-section-vpadding: 3vw;
2015-05-14 16:45:37 +03:00
/* Style values */
2015-05-15 23:18:24 +03:00
--border-radius: 4px;
--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Droid Sans", "Helvetica Neue", sans-serif;
2015-05-14 16:45:37 +03:00
--font-family-mono: Consolas, "Liberation Mono", Menlo, Courier, monospace;
/* Shadows */
--shadow-1: 0 0 1px rgba(0,0,0,.12), 0 1px 6px rgba(0,0,0,0.03), 0 6px 10px -8px rgba(0,0,0,.1);
--shadow-2: 0 0 1px rgba(0,0,0,.05), 0 5px 18px rgba(0,0,0,.08);
--shadow-3: 0 0 1px rgba(0,0,0,.05), 0 8px 28px rgba(0,0,0,.12);
/* Inputs */
--input-bg-color: var(--white);
--input-border: color-mod(var(--lightgrey) l(-5%) s(-10%)) 1px solid;
2015-05-14 16:45:37 +03:00
}
/* Colour classes
/* ---------------------------------------------------------- */
.darkgrey {
color: var(--darkgrey);
}
.midgrey {
color: var(--midgrey);
}
.lightgrey {
color: var(--lightgrey);
}
.blue {
color: var(--blue);
}
.red {
color: var(--red);
}
.green {
color: var(--green);
}
2015-05-14 16:45:37 +03:00
/* Colour classes (hover)
/* ---------------------------------------------------------- */
.darkgrey-hover:hover {
color: var(--darkgrey);
}
.midgrey-hover:hover {
color: var(--midgrey);
}
.lightgrey-hover:hover {
color: var(--lightgrey);
}
.blue-hover:hover {
color: var(--blue);
}
.red-hover:hover {
color: var(--red);
}
.green-hover:hover {
color: var(--green-d1);
}
.darkgrey-bg-hover:hover {
background: color-mod(var(--darkgrey) a(20%));
}
.midgrey-bg-hover:hover {
background: color-mod(var(--midgrey) a(30%));
}
.lightgrey-bg-hover:hover {
background: color-mod(var(--lightgrey) a(30%));
}
.blue-bg-hover:hover {
background: color-mod(var(--blue) a(30%));
}
.red-bg-hover:hover {
background-color: color-mod(var(--red) a(20%));
}
.green-bg-hover:hover {
background: color-mod(var(--green) a(20%));
}
2015-05-14 16:45:37 +03:00
/* Layout
/* ---------------------------------------------------------- */
/*Exclude the editor*/
*:not(.__mobiledoc-editor),
*:not(.__mobiledoc-editor):before,
*:not(.__mobiledoc-editor):after {
2015-05-14 16:45:37 +03:00
box-sizing: border-box;
}
html {
2015-05-16 14:43:12 +03:00
overflow: hidden;
width: 100%;
2015-05-14 16:45:37 +03:00
/* Prevent elastic scrolling on the whole page */
height: 100%;
2016-08-24 17:44:02 +03:00
font-family: var(--font-family);
font-size: 62.5%;
line-height: 1.65;
2017-03-11 14:23:44 +03:00
letter-spacing: 0.2px;
2015-05-16 14:43:12 +03:00
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
2015-05-14 16:45:37 +03:00
}
body {
2015-05-16 14:43:12 +03:00
overflow: auto;
overflow-x: hidden;
width: 100%;
/* Prevent elastic scrolling on the whole page */
height: 100%;
color: var(--darkgrey);
2015-05-14 16:45:37 +03:00
font-size: 1.4rem;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
2015-05-14 16:45:37 +03:00
}
::selection {
background: color-mod(var(--blue) lightness(+20%));
2015-05-14 16:45:37 +03:00
}
/* Text
/* ---------------------------------------------------------- */
2015-05-16 00:28:30 +03:00
h1,
h2,
h3,
h4,
h5,
h6 {
2015-05-14 16:45:37 +03:00
margin: 0 0 0.3em 0;
color: var(--black);
2015-05-16 14:43:12 +03:00
line-height: 1.15em;
2015-05-14 16:45:37 +03:00
text-rendering: optimizeLegibility;
}
h1 {
text-indent: -1px;
2016-11-14 12:55:08 +03:00
font-size: 2.9rem;
}
@media (max-width: 500px) {
h1 {
font-size: 2.4rem;
}
2015-05-14 16:45:37 +03:00
}
h2 {
2016-11-14 12:55:08 +03:00
font-size: 2.2rem;
}
@media (max-width: 500px) {
h2 {
font-size: 1.9rem;
}
2015-05-14 16:45:37 +03:00
}
h3 {
2016-11-14 12:55:08 +03:00
font-size: 1.9rem;
}
@media (max-width: 500px) {
h3 {
font-size: 1.7rem;
}
2015-05-14 16:45:37 +03:00
}
h4 {
2016-11-14 12:55:08 +03:00
font-size: 1.7rem;
2015-05-14 16:45:37 +03:00
}
h5 {
2016-11-14 12:55:08 +03:00
font-size: 1.5rem;
2015-05-14 16:45:37 +03:00
}
h6 {
2016-11-14 12:55:08 +03:00
font-size: 1.5rem;
2015-05-14 16:45:37 +03:00
}
2015-05-16 00:28:30 +03:00
p,
ul,
ol,
dl {
2015-05-14 16:45:37 +03:00
margin: 0 0 1.7em 0;
}
2015-05-16 00:28:30 +03:00
ol,
ul {
2016-11-14 12:55:08 +03:00
padding-left: 1.2em;
}
li {
margin-bottom: 10px;
line-height: 1.4em;
2015-05-14 16:45:37 +03:00
}
2015-05-16 00:28:30 +03:00
ol ol,
ul ul,
ul ol,
ol ul {
margin: 10px 0 0.4em 0;
2015-05-14 16:45:37 +03:00
padding-left: 2em;
font-size: 0.9em;
}
mark {
background-color: #fdffb6;
}
a {
color: var(--blue);
text-decoration: none;
transition: background 0.3s, color 0.3s;
}
a:hover {
text-decoration: none;
transition: background 0.1s, color 0.1s;
}
a.highlight {
color: var(--yellow);
2015-05-14 16:45:37 +03:00
font-weight: bold;
}
hr {
display: block;
2015-05-16 14:43:12 +03:00
margin: 3.2em 0;
padding: 0;
2015-05-14 16:45:37 +03:00
height: 1px;
border: 0;
border-top: 1px solid #dfe1e3;
2015-05-14 16:45:37 +03:00
}
dl {
margin: 1.6em 0;
}
dl dt {
float: left;
clear: left;
2015-05-16 14:43:12 +03:00
overflow: hidden;
margin-bottom: 1em;
width: 180px;
2015-05-14 16:45:37 +03:00
text-align: right;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: bold;
}
dl dd {
margin-bottom: 1em;
2015-05-16 14:43:12 +03:00
margin-left: 200px;
2015-05-14 16:45:37 +03:00
}
blockquote {
2015-05-16 14:43:12 +03:00
margin: 1.6em 0;
2015-05-14 16:45:37 +03:00
padding: 0 1.6em 0 1.6em;
border-left: #dfe1e3 0.6em solid;;
2015-05-14 16:45:37 +03:00
}
blockquote p {
2015-05-16 00:28:30 +03:00
margin: 0.8em 0;
font-size: 1.2em;
2015-05-14 16:45:37 +03:00
font-weight: 300;
}
blockquote small {
display: inline-block;
margin: 0.8em 0 0.8em 1.5em;
color: var(--midgrey);
2015-05-16 14:43:12 +03:00
font-size: 0.9em;
2015-05-14 16:45:37 +03:00
}
/* Quotation marks */
2015-05-16 00:28:30 +03:00
blockquote small:before {
content: "\2014 \00A0";
}
2015-05-14 16:45:37 +03:00
2015-05-16 00:28:30 +03:00
blockquote cite {
font-weight: bold;
}
blockquote cite a {
font-weight: normal;
}
2015-05-14 16:45:37 +03:00
.markdown,
pre,
code,
tt {
font-family: var(--font-family-mono);
}
2015-05-16 00:28:30 +03:00
code,
tt {
2015-09-02 13:03:14 +03:00
padding: 0.2rem 0.3rem 0.1rem;
border: color-mod(#f5f7f8 lightness(-10%)) 1px solid;
2015-09-02 13:03:14 +03:00
background: #f5f7f8;
2015-05-14 16:45:37 +03:00
border-radius: 2px;
2015-09-02 13:03:14 +03:00
color: #c25;
vertical-align: middle;
2015-05-16 14:43:12 +03:00
white-space: pre-wrap;
2015-09-02 13:03:14 +03:00
font-size: 0.8em;
line-height: 1em;
2015-05-14 16:45:37 +03:00
}
pre {
overflow: auto;
2015-05-16 14:43:12 +03:00
margin: 1.6em 0;
padding: 10px;
width: 100%;
border: color-mod(#f5f7f8 lightness(-10%)) 1px solid;
2015-09-02 13:03:14 +03:00
background: #f5f7f8;
2015-05-14 16:45:37 +03:00
border-radius: 3px;
2015-05-16 14:43:12 +03:00
white-space: pre;
font-family: var(--font-family-mono);
font-size: 0.9em;;
2015-05-14 16:45:37 +03:00
}
pre code,
pre tt {
padding: 0;
2015-05-16 14:43:12 +03:00
border: none;
background: transparent;
2015-09-02 13:03:14 +03:00
color: inherit;
2015-05-16 14:43:12 +03:00
white-space: pre-wrap;
font-size: inherit;
2015-05-14 16:45:37 +03:00
}
.CodeMirror pre {
font-family: var(--font-family-mono);
font-size: 0.9em;
}
2015-05-14 16:45:37 +03:00
kbd {
display: inline-block;
margin-bottom: 0.4em;
padding: 1px 8px;
border: #ccc 1px solid;
background: #f4f4f4;
border-radius: 4px;
2015-05-16 00:28:30 +03:00
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2),
0 1px 0 0 #fff inset;
2015-05-16 14:43:12 +03:00
color: var(--darkgrey);
text-shadow: #fff 0 1px 0;
font-size: 0.9em;
font-weight: bold;
2015-05-14 16:45:37 +03:00
}
button {
2015-05-16 14:43:12 +03:00
padding: 0;
2015-05-14 16:45:37 +03:00
outline: none;
2015-05-16 14:43:12 +03:00
border: none;
background: transparent;
2015-05-14 16:45:37 +03:00
box-shadow: none;
line-height: inherit;
2015-05-14 16:45:37 +03:00
}
2015-06-03 17:44:12 +03:00
i {
display: block;
}
2015-05-14 16:45:37 +03:00
img {
max-width: 100%;
}
/* Utilities
/* ---------------------------------------------------------- */
.clearfix,
.clearfix:after {
content: "";
display: table;
clear: both;
}
.wrapper {
position: relative;
}
.show {
display: block !important;
}
.hidden {
visibility: hidden !important;
2015-05-16 14:43:12 +03:00
display: none !important;
2015-05-14 16:45:37 +03:00
}
.invisible {
visibility: hidden;
}
.sr-only {
position: absolute;
overflow: hidden;
clip: rect(0, 0, 0, 0);
2015-05-16 14:43:12 +03:00
margin: -1px;
padding: 0;
width: 1px;
height: 1px;
2015-05-14 16:45:37 +03:00
border: 0;
}
.sr-only-focusable:focus {
z-index: 900;
2015-05-14 16:45:37 +03:00
overflow: visible;
clip: auto;
2015-05-16 14:43:12 +03:00
margin: 0;
padding: 0 10px;
2015-05-16 14:43:12 +03:00
width: auto;
height: auto;
background-color: #f5f5f5;
color: #333;
text-decoration: none;
line-height: 49px;
font-weight: bold;
2015-05-14 16:45:37 +03:00
}
.right {
float: right;
}
.left {
float: left;
}
.vertical {
2015-05-16 00:28:30 +03:00
display: table-cell;
vertical-align: middle;
2015-05-14 16:45:37 +03:00
}
2017-02-17 17:10:02 +03:00
.flex {
display: flex;
}
.avoid-break-out {
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-all;
word-break: break-word;
hyphens: auto;
}
2015-05-14 16:45:37 +03:00
/* Animations
/* ---------------------------------------------------------- */
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fade-in-snap {
to {
opacity: 1;
}
}
@keyframes fade-in-scale {
from {
opacity: 0;
2015-05-16 14:43:12 +03:00
transform: scale(0.95);
2015-05-14 16:45:37 +03:00
}
to {
opacity: 1;
2015-05-16 14:43:12 +03:00
transform: scale(1);
2015-05-14 16:45:37 +03:00
}
}
@keyframes fade-out {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
@keyframes keyboard-focus-style-fade-out {
from {
box-shadow: inset 0 0 30px 1px color-mod(var(--midgrey) lightness(+20%));
2015-05-14 16:45:37 +03:00
}
to {
box-shadow: none;
}
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
2015-05-14 16:45:37 +03:00
.fade-in {
animation: fade-in 0.2s;
animation-fill-mode: forwards;
}
.fade-in-scale {
animation: fade-in-scale 0.2s;
animation-fill-mode: forwards;
}
.fade-out {
animation: fade-out 0.5s;
animation-fill-mode: forwards;
}
/*
* liquid-fire normally hides overflow so that the container size can grow to
* reveal it's contents but that hidden overflow will cut off tooltips or other
* floating elements. Adding class="show-overflow" adjusts behaviour to only
* hide overflow whilst animation is in progress
*/
.liquid-container.show-overflow,
.liquid-container.show-overflow .liquid-child {
overflow: visible;
}
.liquid-container.show-overflow.liquid-animating,
.liquid-container.show-overflow.liquid-animating .liquid-child {
overflow: hidden;
}