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

394 lines
5.7 KiB
CSS
Raw Normal View History

2015-05-14 16:45:37 +03:00
/* Global styles
/* ---------------------------------------------------------- */
/* Variables
/* ---------------------------------------------------------- */
:root {
/* Colours */
--darkgrey: #242628;
--midgrey: #7d878a;
--lightgrey: #e2edf2;
2015-05-16 00:28:30 +03:00
--blue: #5ba4e5;
2015-05-14 16:45:37 +03:00
--red: #e25440;
2015-05-16 00:28:30 +03:00
--orange: #f2a925;
--green: #9fbb58;
2015-05-14 16:45:37 +03:00
/* Style values */
2015-05-15 23:18:24 +03:00
--border-radius: 4px;
2015-05-16 00:28:30 +03:00
--font-family: "Open Sans", sans-serif;
2015-05-14 16:45:37 +03:00
--font-family-mono: Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
/* Layout
/* ---------------------------------------------------------- */
2015-05-16 00:28:30 +03:00
*,
*:before,
*:after {
2015-05-14 16:45:37 +03:00
box-sizing: border-box;
2015-05-14 23:30:25 +03:00
user-select: none;
2015-05-14 16:45:37 +03:00
}
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%;
2015-05-16 14:43:12 +03:00
font: 62.5%/1.65 "Open Sans", sans-serif;
-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%;
2015-05-14 16:45:37 +03:00
color: lighten(var(--darkgrey), 10%);
font-size: 1.4rem;
}
::selection {
background: lighten(var(--blue), 20%);
}
/* 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(--darkgrey);
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;
2015-05-16 14:43:12 +03:00
font-size: 5rem;
2015-05-14 16:45:37 +03:00
}
h2 {
text-indent: -1px;
2015-05-16 14:43:12 +03:00
font-size: 4.2rem;
2015-05-14 16:45:37 +03:00
}
h3 {
font-size: 3.8rem;
}
h4 {
font-size: 3.1rem;
}
h5 {
font-size: 2.8rem;
}
h6 {
font-size: 2.2rem;
}
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 {
2015-05-14 16:45:37 +03:00
padding-left: 2.5em;
}
2015-05-16 00:28:30 +03:00
ol ol,
ul ul,
ul ol,
ol ul {
2015-05-14 16:45:37 +03:00
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;
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-05-16 14:43:12 +03:00
padding: 0.2em 0.4em;
background: lighten(#dfe1e3, 2%);
2015-05-14 16:45:37 +03:00
border-radius: 2px;
vertical-align: top;
2015-05-16 14:43:12 +03:00
white-space: pre-wrap;
font-size: 0.85em;
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%;
background: lighten(#dfe1e3, 2%);
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;
white-space: pre-wrap;
font-size: inherit;
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;
}
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:active,
.sr-only:focus {
position: static;
overflow: visible;
clip: auto;
2015-05-16 14:43:12 +03:00
margin: 0;
width: auto;
height: auto;
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
}
/* 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 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;
}