2017-04-12 22:52:52 +08:00
|
|
|
@import "./variables";
|
|
|
|
@import "./mixins";
|
2013-02-06 03:16:51 +08:00
|
|
|
|
|
|
|
// --------------------------------------------------
|
|
|
|
// Base styles for HTML elements
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
html {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $primary;
|
2014-12-17 15:26:29 +08:00
|
|
|
font-family: $base-font-family;
|
|
|
|
font-size: $base-font-size;
|
2014-12-18 03:51:47 +08:00
|
|
|
line-height: $base-line-height;
|
2014-05-06 13:50:51 +08:00
|
|
|
background-color: $secondary;
|
2013-02-06 03:16:51 +08:00
|
|
|
overflow-y: scroll;
|
2015-04-15 10:07:23 +08:00
|
|
|
direction: ltr;
|
2014-07-02 22:55:43 +08:00
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
|
|
|
|
// Links
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
a {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $tertiary;
|
2013-02-06 03:16:51 +08:00
|
|
|
text-decoration: none;
|
2013-06-17 11:43:30 +08:00
|
|
|
cursor: pointer;
|
2013-02-06 03:16:51 +08:00
|
|
|
&:visited {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $tertiary;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
&:hover {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $tertiary;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
&:active {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $tertiary;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Typography
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
hr {
|
|
|
|
display: block;
|
|
|
|
height: 1px;
|
|
|
|
margin: 1em 0;
|
|
|
|
border: 0;
|
2017-06-12 10:20:14 +08:00
|
|
|
border-top: 1px solid $primary-low;
|
2013-02-06 03:16:51 +08:00
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Lists
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
ul,
|
|
|
|
dd {
|
|
|
|
margin: 0 0 9px 25px;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2014-03-16 00:01:17 +08:00
|
|
|
|
|
|
|
.cooked ul, .cooked ol, .cooked dd {
|
2014-03-28 03:36:14 +08:00
|
|
|
clear: both;
|
2014-03-16 00:01:17 +08:00
|
|
|
}
|
|
|
|
|
2017-07-26 06:24:11 +08:00
|
|
|
.cooked ul, .d-editor-preview ul {
|
|
|
|
margin: 0;
|
|
|
|
padding-left: 40px;
|
|
|
|
}
|
|
|
|
|
2013-02-06 03:16:51 +08:00
|
|
|
li {
|
|
|
|
> ul,
|
|
|
|
> ol {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Embedded content
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
img {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Forms
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
fieldset {
|
|
|
|
margin: 0;
|
|
|
|
border: 0;
|
|
|
|
padding: 0;
|
2013-06-17 11:43:30 +08:00
|
|
|
}
|
2013-06-20 15:46:18 +08:00
|
|
|
|
|
|
|
pre code {
|
|
|
|
overflow: auto;
|
2017-01-10 17:06:53 +08:00
|
|
|
tab-size: 4;
|
2013-06-20 15:46:18 +08:00
|
|
|
}
|
2014-08-26 05:41:14 +08:00
|
|
|
|
|
|
|
// TODO figure out a clean place to put stuff like this
|
|
|
|
.row:before, .row:after {
|
|
|
|
display: table;
|
|
|
|
content: "";
|
|
|
|
}
|
|
|
|
.row:after {clear: both;}
|
|
|
|
|
|
|
|
|
2014-12-04 21:48:25 +08:00
|
|
|
#offscreen-content {
|
|
|
|
display: none;
|
|
|
|
}
|