insomnia/app/css/layout/base.scss
Gregory Schier f90e4d7419 Started on hotkeys (#19)
* Started on hotkeys

* Tweaks

* Changed tab color

* Persist sidebarWidth to workspace

* Tweaks

* Switched to Mousetrap
2016-07-06 13:18:26 -07:00

219 lines
2.5 KiB
SCSS

@import '../constants/colors';
@import '../constants/dimensions';
html {
font-family: 'Open Sans', sans-serif;
font-size: $font-size;
}
html, body, #root {
width: 100%;
height: 100%;
}
body {
margin: 0;
padding: 0;
}
h1 {
font-size: $font-size-xxl;
}
h2 {
font-size: $font-size-xl;
}
h3 {
font-size: $font-size-lg;
}
h1, h2, h3 {
padding-bottom: 1em;
}
hr {
width: 100%;
height: 0;
border: 0;
border-bottom: 1px solid $hl-md;
margin: $padding-md 0;
}
em {
font-style: italic;
}
label {
display: inline-block;
}
label,
table th{
color: $hl;
text-transform: uppercase;
font-size: 0.8em;
}
webview {
height: 100%;
width: 100%;
background-color: $bg-super-light;
}
table {
td {
padding-top: 0.25em;
}
th {
text-align: left;
padding-bottom: 0.5em;
}
}
.monospace {
font-family: monospace;
}
.text-center {
text-align: center;
}
.text-right {
text-align: right;
}
.text-left {
text-align: left !important;
}
.pull-right {
float: right;
}
.tall {
height: 100%;
}
.faint {
color: $hl;
}
.wide {
width: 100%;
}
.relative {
position: relative;
}
/* Make all font awesome icons the same width */
i.fa {
width: 1.1em;
text-align: center;
}
.force-wrap {
word-break: break-all;
white-space: pre-wrap;
}
.no-wrap {
white-space: nowrap;
}
.pad {
box-sizing: border-box;
padding: $padding-md;
}
.no-pad-bottom {
padding-bottom: 0;
}
.pad-left-half {
padding-left: $padding-md / 2;
}
.pad-right-half {
padding-right: $padding-md / 2;
}
.no-pad {
padding: 0 !important;
}
.block {
display: block !important;
}
.inline-block {
display: inline-block !important;
}
.italic {
font-style: italic;
}
.selectable {
-webkit-user-select: text;
cursor: text;
}
.hide-scrollbars {
&::-webkit-scrollbar {
display: none;
}
}
.scrollable {
overflow: auto;
}
.hover-scrollbars {
&::-webkit-scrollbar {
display: none;
}
&:hover::-webkit-scrollbar {
display: block;
}
}
.section.section--bordered {
.section__header {
border-right: 1px solid #eee;
&.bg-brand {
border-right-color: $bg-brand;
}
}
.section__body {
border-right: 1px solid $hl-sm;
}
}
strong {
font-weight: 600;
}
@media (max-width: $breakpoint-lg) {
html {
font-size: $font-size * 0.95;
}
}
@media (max-width: $breakpoint-md) {
html {
font-size: $font-size * 0.90;
}
}
//@media (max-width: $breakpoint-sm) {
// html {
// font-size: $font-size * 0.85;
// }
//}