discourse/app/assets/stylesheets/common/foundation/base.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

160 lines
2.5 KiB
SCSS
Raw Normal View History

2013-02-05 14:16:51 -05:00
// --------------------------------------------------
// Base styles for HTML elements
// --------------------------------------------------
html {
color: var(--primary);
font-family: $base-font-family;
font-size: $base-font-size;
2018-01-12 17:27:38 -05:00
line-height: $line-height-large;
background-color: var(--secondary);
2013-02-05 14:16:51 -05:00
overflow-y: scroll;
direction: ltr;
&.text-size-smallest {
font-size: $base-font-size-smallest;
}
&.text-size-smaller {
font-size: $base-font-size-smaller;
}
&.text-size-larger {
font-size: $base-font-size-larger;
}
&.text-size-largest {
font-size: $base-font-size-largest;
}
}
2013-02-05 14:16:51 -05:00
// Links
// --------------------------------------------------
a {
color: var(--tertiary);
2013-02-05 14:16:51 -05:00
text-decoration: none;
cursor: pointer;
2013-02-05 14:16:51 -05:00
&:visited {
color: var(--tertiary);
2013-02-05 14:16:51 -05:00
}
&:hover {
color: var(--tertiary);
2013-02-05 14:16:51 -05:00
}
&:active {
color: var(--tertiary);
2013-02-05 14:16:51 -05:00
}
}
// Typography
// --------------------------------------------------
hr {
display: block;
height: 1px;
margin: 1em 0;
border: 0;
border-top: 1px solid var(--primary-low);
2013-02-05 14:16:51 -05:00
padding: 0;
}
// Lists
// --------------------------------------------------
ul,
dd {
margin: 0 0 9px 25px;
padding: 0;
}
.cooked ul,
.cooked ol,
.cooked dd {
clear: both;
}
.cooked ul,
.d-editor-preview ul {
margin: 0;
padding-left: 40px;
}
2013-02-05 14:16:51 -05:00
li {
> ul,
> ol {
margin-bottom: 0;
}
}
// Embedded content
// --------------------------------------------------
img {
vertical-align: middle;
}
// Forms
// --------------------------------------------------
fieldset {
margin: 0;
border: 0;
padding: 0;
}
2013-06-20 03:46:18 -04:00
pre code {
overflow: auto;
-moz-tab-size: 4;
tab-size: 4;
2020-07-08 20:50:42 -04:00
&.lang-markdown {
white-space: pre-wrap;
}
2013-06-20 03:46:18 -04: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 08:48:25 -05:00
#offscreen-content {
display: none;
}
// Tables
// --------------------------------------------------
table {
border-collapse: collapse;
}
tbody {
border-top: 3px solid var(--primary-low);
}
tr {
border-bottom: 1px solid var(--primary-low);
&.highlighted {
animation: background-fade-highlight 2.5s ease-out;
}
}
2018-08-03 13:37:08 -04:00
// https://en.wikipedia.org/wiki/Ruby_character
ruby > rt {
font-size: 72%; // ~10px with 14px base
}
// Buttons (was in normalized)
// --------------------------------------------------
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
cursor: pointer;
}