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;
|
2018-01-13 06:27:38 +08:00
|
|
|
line-height: $line-height-large;
|
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;
|
2019-01-14 21:21:46 +08:00
|
|
|
|
2020-07-08 01:08:19 +08:00
|
|
|
&.text-size-smallest {
|
|
|
|
font-size: $base-font-size-smallest;
|
|
|
|
}
|
|
|
|
|
2019-01-17 23:30:34 +08:00
|
|
|
&.text-size-smaller {
|
|
|
|
font-size: $base-font-size-smaller;
|
|
|
|
}
|
|
|
|
|
2019-01-14 21:21:46 +08:00
|
|
|
&.text-size-larger {
|
|
|
|
font-size: $base-font-size-larger;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.text-size-largest {
|
|
|
|
font-size: $base-font-size-largest;
|
|
|
|
}
|
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;
|
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +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
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.cooked ul,
|
|
|
|
.d-editor-preview ul {
|
2017-07-26 06:24:11 +08:00
|
|
|
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;
|
2020-05-06 09:00:40 +08:00
|
|
|
-moz-tab-size: 4;
|
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
|
2018-06-08 17:49:31 +08:00
|
|
|
.row:before,
|
|
|
|
.row:after {
|
2014-08-26 05:41:14 +08:00
|
|
|
display: table;
|
|
|
|
content: "";
|
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
.row:after {
|
|
|
|
clear: both;
|
|
|
|
}
|
2014-08-26 05:41:14 +08:00
|
|
|
|
2014-12-04 21:48:25 +08:00
|
|
|
#offscreen-content {
|
|
|
|
display: none;
|
|
|
|
}
|
2018-05-01 08:45:49 +08:00
|
|
|
|
|
|
|
// Tables
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2020-07-06 21:25:41 +08:00
|
|
|
table {
|
|
|
|
border-collapse: collapse;
|
|
|
|
}
|
|
|
|
|
2018-05-01 08:45:49 +08:00
|
|
|
tbody {
|
|
|
|
border-top: 3px solid $primary-low;
|
|
|
|
}
|
|
|
|
|
|
|
|
tr {
|
|
|
|
border-bottom: 1px solid $primary-low;
|
|
|
|
&.highlighted {
|
|
|
|
animation: background-fade-highlight 2.5s ease-out;
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
|
|
|
}
|
2018-08-04 01:37:08 +08:00
|
|
|
|
|
|
|
// https://en.wikipedia.org/wiki/Ruby_character
|
|
|
|
ruby > rt {
|
|
|
|
font-size: 72%; // ~10px with 14px base
|
|
|
|
}
|
2020-07-06 19:15:31 +08:00
|
|
|
|
|
|
|
// Buttons (was in normalized)
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
button,
|
|
|
|
html input[type="button"],
|
|
|
|
input[type="reset"],
|
|
|
|
input[type="submit"] {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|