mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
382 lines
6.0 KiB
CSS
382 lines
6.0 KiB
CSS
/* Global styles
|
|
/* ---------------------------------------------------------- */
|
|
|
|
|
|
/* Variables
|
|
/* ---------------------------------------------------------- */
|
|
|
|
:root {
|
|
|
|
/* Colours */
|
|
--darkgrey: #242628;
|
|
--grey: #242628;
|
|
--midgrey: #7d878a;
|
|
--lightgrey: #e2edf2;
|
|
--lightestgrey: #FCFCFC;
|
|
--brown: #aaa9a2;
|
|
--midbrown: #c0bfb6;
|
|
--blue: #5BA4E5;
|
|
--red: #e25440;
|
|
--orange: #F2A925;
|
|
--green: #9FBB58;
|
|
|
|
/* Style values */
|
|
--border-radius: 4px;
|
|
--box-shadow: rgba(0,0,0,0.05) 0 1px 5px; /* TODO: not used? */
|
|
--font-family: 'Open Sans', sans-serif;
|
|
--font-family-mono: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
}
|
|
|
|
|
|
/* Layout
|
|
/* ---------------------------------------------------------- */
|
|
|
|
*, *:before, *:after {
|
|
box-sizing: border-box;
|
|
user-select: none;
|
|
}
|
|
|
|
html {
|
|
font: 62.5%/1.65 "Open Sans", sans-serif;
|
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
|
|
/* Prevent elastic scrolling on the whole page */
|
|
height: 100%;
|
|
width: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
body {
|
|
color: lighten(var(--darkgrey), 10%);
|
|
font-size: 1.4rem;
|
|
font-feature-settings: "kern" 1;
|
|
|
|
/* Prevent elastic scrolling on the whole page */
|
|
height: 100%;
|
|
width: 100%;
|
|
overflow: auto;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
::selection {
|
|
background: lighten(var(--blue), 20%);
|
|
}
|
|
|
|
|
|
/* Text
|
|
/* ---------------------------------------------------------- */
|
|
|
|
h1, h2, h3,
|
|
h4, h5, h6 {
|
|
margin: 0 0 0.3em 0;
|
|
line-height: 1.15em;
|
|
color: var(--darkgrey);
|
|
text-rendering: optimizeLegibility;
|
|
font-feature-settings: "dlig" 1, "liga" 1, "lnum" 1, "kern" 1;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 5rem;
|
|
text-indent: -1px;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 4.2rem;
|
|
text-indent: -1px;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 3.8rem;
|
|
}
|
|
|
|
h4 {
|
|
font-size: 3.1rem;
|
|
}
|
|
|
|
h5 {
|
|
font-size: 2.8rem;
|
|
}
|
|
|
|
h6 {
|
|
font-size: 2.2rem;
|
|
}
|
|
|
|
p, ul, ol, dl {
|
|
margin: 0 0 1.7em 0;
|
|
}
|
|
|
|
ol, ul {
|
|
padding-left: 2.5em;
|
|
}
|
|
|
|
ol ol, ul ul,
|
|
ul ol, ol ul {
|
|
margin: 0 0 0.4em 0;
|
|
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(--orange);
|
|
font-weight: bold;
|
|
}
|
|
|
|
hr {
|
|
display: block;
|
|
height: 1px;
|
|
border: 0;
|
|
border-top: 1px solid #e1e1e1;
|
|
margin: 3.2em 0;
|
|
padding: 0;
|
|
}
|
|
|
|
dl {
|
|
margin: 1.6em 0;
|
|
}
|
|
|
|
dl dt {
|
|
float: left;
|
|
width: 180px;
|
|
overflow: hidden;
|
|
clear: left;
|
|
text-align: right;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-weight: bold;
|
|
margin-bottom: 1em
|
|
}
|
|
|
|
dl dd {
|
|
margin-left: 200px;
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
blockquote {
|
|
margin: 1.6em 0;;
|
|
padding: 0 1.6em 0 1.6em;
|
|
border-left: #e1e1e1 0.6em solid;
|
|
}
|
|
|
|
blockquote p {
|
|
margin:0.8em 0;
|
|
font-size:1.2em;
|
|
font-weight: 300;
|
|
}
|
|
|
|
blockquote small {
|
|
display: inline-block;
|
|
margin: 0.8em 0 0.8em 1.5em;
|
|
font-size:0.9em;
|
|
color: var(--brown);
|
|
}
|
|
/* Quotation marks */
|
|
blockquote small:before { content: '\2014 \00A0'; }
|
|
|
|
blockquote cite { font-weight:bold; }
|
|
blockquote cite a { font-weight: normal; }
|
|
|
|
.markdown,
|
|
pre,
|
|
code,
|
|
tt {
|
|
font-family: var(--font-family-mono);
|
|
}
|
|
|
|
code, tt {
|
|
font-size: 0.85em;
|
|
white-space: pre-wrap;
|
|
background: lighten(#e1e1e1, 2%);
|
|
border-radius: 2px;
|
|
padding: 0.2em 0.4em;
|
|
vertical-align: top;
|
|
}
|
|
|
|
pre {
|
|
margin: 1.6em 0;;
|
|
background: lighten(#e1e1e1, 2%);
|
|
width: 100%;
|
|
padding: 10px;
|
|
font-family: var(--font-family-mono);
|
|
font-size: 0.9em;
|
|
white-space: pre;
|
|
overflow: auto;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
pre code,
|
|
pre tt {
|
|
font-size: inherit;
|
|
white-space: pre-wrap;
|
|
background: transparent;
|
|
border: none;
|
|
padding: 0;
|
|
}
|
|
|
|
kbd {
|
|
display: inline-block;
|
|
margin-bottom: 0.4em;
|
|
padding: 1px 8px;
|
|
border: #ccc 1px solid;
|
|
color: var(--darkgrey);
|
|
text-shadow: #fff 0 1px 0;
|
|
font-size: 0.9em;
|
|
font-weight: bold;
|
|
background: #f4f4f4;
|
|
border-radius: 4px;
|
|
box-shadow:
|
|
0 1px 0 rgba(0, 0, 0, 0.2),
|
|
0 1px 0 0 #fff inset;
|
|
}
|
|
|
|
button {
|
|
background: transparent;
|
|
border: none;
|
|
outline: none;
|
|
box-shadow: none;
|
|
padding: 0;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
}
|
|
|
|
|
|
/* Utilities
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.clearfix,
|
|
.clearfix:after {
|
|
content: "";
|
|
display: table;
|
|
clear: both;
|
|
}
|
|
|
|
.wrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.show {
|
|
display: block !important;
|
|
}
|
|
|
|
.hidden {
|
|
display: none !important;
|
|
visibility: hidden !important;
|
|
}
|
|
|
|
.invisible {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.sr-only {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
border: 0;
|
|
}
|
|
|
|
.sr-only:active,
|
|
.sr-only:focus {
|
|
position: static;
|
|
width: auto;
|
|
height: auto;
|
|
margin: 0;
|
|
overflow: visible;
|
|
clip: auto;
|
|
}
|
|
|
|
.right {
|
|
float: right;
|
|
}
|
|
|
|
.left {
|
|
float: left;
|
|
}
|
|
|
|
.vertical {
|
|
display: table-cell;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
|
|
/* Animations
|
|
/* ---------------------------------------------------------- */
|
|
|
|
@keyframes fade-in {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes fade-in-snap {
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes fade-in-scale {
|
|
from {
|
|
transform: scale(0.95);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: scale(1);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes fade-out {
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes keyboard-focus-style-fade-out {
|
|
from {
|
|
box-shadow: inset 0 0 30px 1px lighten(var(--midgrey), 20%);
|
|
}
|
|
to {
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
|
|
.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;
|
|
}
|