insomnia/app/css/layout/base.scss

278 lines
3.2 KiB
SCSS
Raw Normal View History

2016-03-23 05:26:27 +00:00
@import '../constants/colors';
@import '../constants/dimensions';
2016-07-20 23:16:28 +00:00
@import '../constants/fonts';
2016-03-16 05:49:42 +00:00
2016-03-23 05:58:16 +00:00
html {
font-family: 'Open Sans', sans-serif;
2016-04-10 06:37:22 +00:00
font-size: $font-size;
2016-03-23 05:58:16 +00:00
}
2016-03-16 05:49:42 +00:00
html, body, #root {
width: 100%;
2016-03-21 05:47:49 +00:00
height: 100%;
2016-03-16 05:49:42 +00:00
}
body {
margin: 0;
padding: 0;
}
h1 {
font-size: $font-size-xxl;
}
h2 {
font-size: $font-size-xl;
}
2016-04-15 02:13:49 +00:00
h3 {
font-size: $font-size-lg;
}
h1, h2, h3 {
padding-bottom: 1em;
2016-04-15 02:13:49 +00:00
}
hr {
width: 100%;
2016-04-29 03:37:49 +00:00
height: 0;
2016-04-15 02:13:49 +00:00
border: 0;
2016-04-29 03:37:49 +00:00
border-bottom: 1px solid $hl-md;
2016-04-15 02:13:49 +00:00
margin: $padding-md 0;
}
em {
font-style: italic;
}
2016-05-01 20:46:11 +00:00
label {
display: inline-block;
}
2016-07-07 20:10:55 +00:00
p {
2016-07-20 00:34:47 +00:00
margin-bottom: 1.5em;
2016-07-07 20:10:55 +00:00
}
label.label--small,
2016-07-20 23:16:28 +00:00
table th {
2016-04-27 23:06:27 +00:00
color: $hl;
text-transform: uppercase;
font-size: 0.8em;
2016-07-20 23:16:28 +00:00
padding-bottom: $padding-xxs;
}
2016-05-01 19:56:30 +00:00
webview {
2016-06-19 01:01:56 +00:00
height: 100%;
width: 100%;
2016-05-01 19:56:30 +00:00
background-color: $bg-super-light;
}
table {
td {
padding-top: $padding-sm;
&:not(:last-child) {
padding-right: $padding-lg;
}
2016-05-01 19:56:30 +00:00
}
th {
text-align: left;
padding-bottom: 0.5em;
}
}
2016-07-20 23:16:28 +00:00
code {
display: inline-block;
2016-07-21 19:15:35 +00:00
background: $hl-xs;
border: 1px solid $hl-sm;
2016-07-22 16:14:27 +00:00
padding: $padding-xs $padding-sm;
2016-07-20 23:16:28 +00:00
font-family: $font-monospace;
border-radius: $radius-md;
2016-04-18 05:58:58 +00:00
}
2016-03-16 23:34:25 +00:00
.text-center {
text-align: center;
2016-03-16 20:02:47 +00:00
}
2016-04-07 03:27:45 +00:00
.text-right {
text-align: right;
}
2016-03-23 17:15:19 +00:00
.text-left {
text-align: left !important;
}
2016-05-01 19:56:30 +00:00
.pull-right {
float: right;
}
2016-03-21 05:47:49 +00:00
.tall {
2016-07-14 22:48:56 +00:00
height: 100% !important;
2016-04-06 04:21:42 +00:00
}
.faint {
color: $hl;
}
2016-07-20 23:16:28 +00:00
.super-faint {
color: $hl-lg;
}
2016-07-07 20:10:55 +00:00
.valign-bottom {
vertical-align: bottom;
}
.pointer {
cursor: pointer;
}
2016-04-06 04:21:42 +00:00
.wide {
width: 100%;
}
.relative {
position: relative;
2016-03-21 05:47:49 +00:00
}
2016-04-04 07:15:30 +00:00
/* Make all font awesome icons the same width */
i.fa {
width: 1.1em;
text-align: center;
}
2016-05-01 19:56:30 +00:00
.force-wrap {
word-break: break-all;
white-space: pre-wrap;
2016-04-04 07:15:30 +00:00
}
2016-06-19 00:17:20 +00:00
.no-wrap {
white-space: nowrap;
}
2016-04-17 22:46:17 +00:00
.pad {
box-sizing: border-box;
padding: $padding-md;
}
2016-07-07 20:10:55 +00:00
.pad-top {
box-sizing: border-box;
padding-top: $padding-md;
}
.pad-bottom {
box-sizing: border-box;
padding-bottom: $padding-md;
}
2016-05-01 20:46:11 +00:00
.no-pad-bottom {
padding-bottom: 0;
}
2016-04-17 22:46:17 +00:00
.pad-left-half {
padding-left: $padding-md / 2;
}
.pad-right-half {
padding-right: $padding-md / 2;
}
2016-04-15 02:13:49 +00:00
.no-pad {
padding: 0 !important;
}
.no-margin {
2016-07-07 20:10:55 +00:00
margin: 0 !important;
}
2016-04-04 07:15:30 +00:00
.block {
display: block !important;
}
2016-07-14 22:48:56 +00:00
.grid {
display: grid !important;
}
2016-04-04 07:15:30 +00:00
.inline-block {
display: inline-block !important;
}
2016-04-07 01:11:16 +00:00
.italic {
font-style: italic;
}
2016-04-10 06:37:22 +00:00
.selectable {
-webkit-user-select: text;
cursor: text;
}
2016-03-21 05:47:49 +00:00
.hide-scrollbars {
&::-webkit-scrollbar {
display: none;
}
}
2016-04-05 20:49:28 +00:00
.scrollable {
2016-04-07 17:06:04 +00:00
overflow: auto;
2016-04-05 20:49:28 +00:00
}
2016-04-05 05:35:21 +00:00
.hover-scrollbars {
&::-webkit-scrollbar {
display: none;
}
&:hover::-webkit-scrollbar {
display: block;
}
}
2016-04-17 22:46:17 +00:00
.section.section--bordered {
2016-04-06 16:50:11 +00:00
.section__header {
2016-04-12 00:39:49 +00:00
border-right: 1px solid #eee;
2016-04-17 22:46:17 +00:00
&.bg-brand {
border-right-color: $bg-brand;
}
2016-04-06 16:50:11 +00:00
}
.section__body {
border-right: 1px solid $hl-sm;
}
}
2016-03-16 23:34:25 +00:00
strong {
font-weight: 600;
2016-03-16 20:02:47 +00:00
}
2016-03-23 05:58:16 +00:00
2016-07-07 20:10:55 +00:00
.hide-above-lg {
display: none;
}
.hide-above-md {
display: none;
}
2016-06-18 21:02:27 +00:00
@media (max-width: $breakpoint-lg) {
2016-07-07 20:10:55 +00:00
.hide-below-lg {
display: none;
}
.hide-above-lg {
display: initial;
2016-03-23 05:58:16 +00:00
}
}
2016-06-18 21:02:27 +00:00
@media (max-width: $breakpoint-md) {
html {
2016-07-07 20:10:55 +00:00
font-size: $font-size * 0.95;
}
.hide-below-md {
display: none;
2016-06-18 21:02:27 +00:00
}
2016-07-07 20:10:55 +00:00
.hide-above-md {
display: initial;
}
}