insomnia/app/ui/css/layout/base.less

485 lines
5.9 KiB
Plaintext
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 {
2016-08-29 17:58:59 +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
}
html, h1, h2, h3, h4, h5, h6, input {
font-weight: 400;
font-family: @font-default;
}
2016-03-16 05:49:42 +00:00
body {
margin: 0;
padding: 0;
}
h1 {
2016-08-29 17:58:59 +00:00
font-size: @font-size-xxl;
2016-03-16 05:49:42 +00:00
}
h2 {
2016-08-29 17:58:59 +00:00
font-size: @font-size-xl;
2016-03-16 05:49:42 +00:00
}
2016-04-15 02:13:49 +00:00
h3 {
2016-08-29 17:58:59 +00:00
font-size: @font-size-lg;
2016-04-15 02:13:49 +00:00
}
2016-12-01 00:02:35 +00:00
p, h1, h2, h3 {
margin-bottom: @padding-sm;
margin-top: @padding-md;
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-08-29 17:58:59 +00:00
border-bottom: 1px solid @hl-md;
margin: @padding-md 0;
2016-04-15 02:13:49 +00:00
}
hr.hr--spaced {
margin: @padding-lg 0;
}
em {
font-style: italic;
}
2016-05-01 20:46:11 +00:00
label {
display: inline-block;
Sync Proof of Concept (#33) * Maybe working POC * Change to use remote url * Other URL too * Some logic * Got the push part working * Made some updates * Fix * Update * Add status code check * Stuff * Implemented new sync api * A bit more robust * Debounce changes * Change timeout * Some fixes * Remove .less * Better error handling * Fix base url * Support for created vs updated docs * Try silent * Silence removal too * Small fix after merge * Fix test * Stuff * Implement key generation algorithm * Tidy * stuff * A bunch of stuff for the new API * Integrated the session stuff * Stuff * Just started on encryption * Lots of updates to encryption * Finished createResourceGroup function * Full encryption/decryption working (I think) * Encrypt localstorage with sessionID * Some more * Some extra checks * Now uses separate DB. Still needs to be simplified a LOT * Fix deletion bug * Fixed unicode bug with encryption * Simplified and working * A bunch of polish * Some stuff * Removed some workspace meta properties * Migrated a few more meta properties * Small changes * Fix body scrolling and url cursor jumping * Removed duplication of webpack port * Remove workspaces reduces * Some small fixes * Added sync modal and opt-in setting * Good start to sync flow * Refactored modal footer css * Update sync status * Sync logger * A bit better logging * Fixed a bunch of sync-related bugs * Fixed signup form button * Gravatar component * Split sync modal into tabs * Tidying * Some more error handling * start sending 'user agent * Login/signup error handling * Use real UUIDs * Fixed tests * Remove unused function * Some extra checks * Moved cloud sync setting to about page * Some small changes * Some things
2016-10-21 17:20:36 +00:00
padding-top: @padding-xs;
2016-05-01 20:46:11 +00:00
}
2016-07-07 20:10:55 +00:00
p {
line-height: 1.7em;
2016-07-07 20:10:55 +00:00
}
small {
font-size: 0.85em;
}
2016-07-07 20:10:55 +00:00
label.label--small,
2016-07-20 23:16:28 +00:00
table th {
2016-08-29 17:58:59 +00:00
color: @hl;
2016-04-27 23:06:27 +00:00
text-transform: uppercase;
font-size: 0.8em;
2016-08-29 17:58:59 +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%;
2017-01-30 18:06:27 +00:00
background-color: #fff;
2016-05-01 19:56:30 +00:00
}
table {
2016-07-27 20:07:50 +00:00
width: 100%;
td, th {
2016-08-29 17:58:59 +00:00
padding: @padding-sm;
2016-05-01 19:56:30 +00:00
}
th {
text-align: left;
2016-08-29 17:58:59 +00:00
padding-bottom: @padding-sm;
}
&.table--striped tbody tr:nth-child(odd) {
2017-01-23 22:41:31 +00:00
background: @hl-xs;
2016-05-01 19:56:30 +00:00
}
}
2016-07-20 23:16:28 +00:00
code {
display: inline-block;
2016-08-29 17:58:59 +00:00
background: @hl-xs;
padding: @padding-xs @padding-sm;
color: var(--color-font);
2017-01-23 22:41:31 +00:00
border: 1px solid @hl-sm;
font-size: 0.9em;
Sync Proof of Concept (#33) * Maybe working POC * Change to use remote url * Other URL too * Some logic * Got the push part working * Made some updates * Fix * Update * Add status code check * Stuff * Implemented new sync api * A bit more robust * Debounce changes * Change timeout * Some fixes * Remove .less * Better error handling * Fix base url * Support for created vs updated docs * Try silent * Silence removal too * Small fix after merge * Fix test * Stuff * Implement key generation algorithm * Tidy * stuff * A bunch of stuff for the new API * Integrated the session stuff * Stuff * Just started on encryption * Lots of updates to encryption * Finished createResourceGroup function * Full encryption/decryption working (I think) * Encrypt localstorage with sessionID * Some more * Some extra checks * Now uses separate DB. Still needs to be simplified a LOT * Fix deletion bug * Fixed unicode bug with encryption * Simplified and working * A bunch of polish * Some stuff * Removed some workspace meta properties * Migrated a few more meta properties * Small changes * Fix body scrolling and url cursor jumping * Removed duplication of webpack port * Remove workspaces reduces * Some small fixes * Added sync modal and opt-in setting * Good start to sync flow * Refactored modal footer css * Update sync status * Sync logger * A bit better logging * Fixed a bunch of sync-related bugs * Fixed signup form button * Gravatar component * Split sync modal into tabs * Tidying * Some more error handling * start sending 'user agent * Login/signup error handling * Use real UUIDs * Fixed tests * Remove unused function * Some extra checks * Moved cloud sync setting to about page * Some small changes * Some things
2016-10-21 17:20:36 +00:00
}
code, pre, .monospace {
2016-08-29 17:58:59 +00:00
font-family: @font-monospace;
2016-04-18 05:58:58 +00:00
}
.notice {
text-align: center;
2017-01-23 22:41:31 +00:00
color: var(--color-font) !important;
padding: @padding-sm * 1.5;
border: 1px solid;
border-radius: @radius-md;
}
.notice.warning {
2017-01-23 22:41:31 +00:00
border-color: var(--color-warning);
}
.notice.info {
2017-01-23 22:41:31 +00:00
border-color: var(--color-info);
}
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;
}
Sync Proof of Concept (#33) * Maybe working POC * Change to use remote url * Other URL too * Some logic * Got the push part working * Made some updates * Fix * Update * Add status code check * Stuff * Implemented new sync api * A bit more robust * Debounce changes * Change timeout * Some fixes * Remove .less * Better error handling * Fix base url * Support for created vs updated docs * Try silent * Silence removal too * Small fix after merge * Fix test * Stuff * Implement key generation algorithm * Tidy * stuff * A bunch of stuff for the new API * Integrated the session stuff * Stuff * Just started on encryption * Lots of updates to encryption * Finished createResourceGroup function * Full encryption/decryption working (I think) * Encrypt localstorage with sessionID * Some more * Some extra checks * Now uses separate DB. Still needs to be simplified a LOT * Fix deletion bug * Fixed unicode bug with encryption * Simplified and working * A bunch of polish * Some stuff * Removed some workspace meta properties * Migrated a few more meta properties * Small changes * Fix body scrolling and url cursor jumping * Removed duplication of webpack port * Remove workspaces reduces * Some small fixes * Added sync modal and opt-in setting * Good start to sync flow * Refactored modal footer css * Update sync status * Sync logger * A bit better logging * Fixed a bunch of sync-related bugs * Fixed signup form button * Gravatar component * Split sync modal into tabs * Tidying * Some more error handling * start sending 'user agent * Login/signup error handling * Use real UUIDs * Fixed tests * Remove unused function * Some extra checks * Moved cloud sync setting to about page * Some small changes * Some things
2016-10-21 17:20:36 +00:00
.img--circle {
border-radius: 50%;
}
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 {
2017-01-24 02:52:48 +00:00
opacity: @opacity-subtle;
}
.super-faint {
opacity: @opacity-subtle * 0.8;
}
2016-11-23 23:19:12 +00:00
.faded {
opacity: 0.7;
}
.auto-margin {
margin: auto;
2016-11-23 23:19:12 +00:00
}
Sync Proof of Concept (#33) * Maybe working POC * Change to use remote url * Other URL too * Some logic * Got the push part working * Made some updates * Fix * Update * Add status code check * Stuff * Implemented new sync api * A bit more robust * Debounce changes * Change timeout * Some fixes * Remove .less * Better error handling * Fix base url * Support for created vs updated docs * Try silent * Silence removal too * Small fix after merge * Fix test * Stuff * Implement key generation algorithm * Tidy * stuff * A bunch of stuff for the new API * Integrated the session stuff * Stuff * Just started on encryption * Lots of updates to encryption * Finished createResourceGroup function * Full encryption/decryption working (I think) * Encrypt localstorage with sessionID * Some more * Some extra checks * Now uses separate DB. Still needs to be simplified a LOT * Fix deletion bug * Fixed unicode bug with encryption * Simplified and working * A bunch of polish * Some stuff * Removed some workspace meta properties * Migrated a few more meta properties * Small changes * Fix body scrolling and url cursor jumping * Removed duplication of webpack port * Remove workspaces reduces * Some small fixes * Added sync modal and opt-in setting * Good start to sync flow * Refactored modal footer css * Update sync status * Sync logger * A bit better logging * Fixed a bunch of sync-related bugs * Fixed signup form button * Gravatar component * Split sync modal into tabs * Tidying * Some more error handling * start sending 'user agent * Login/signup error handling * Use real UUIDs * Fixed tests * Remove unused function * Some extra checks * Moved cloud sync setting to about page * Some small changes * Some things
2016-10-21 17:20:36 +00:00
.outlined {
border: 1px solid @hl-md;
}
2016-07-07 20:10:55 +00:00
.valign-bottom {
vertical-align: bottom;
}
.row-fill {
display: flex;
flex-direction: row;
align-items: center;
align-content: stretch;
width: 100%;
& > * {
width: 100%;
}
& > *:not(:first-child) {
padding-left: @padding-xs;
}
& > *:not(:last-child) {
padding-right: @padding-xs;
}
}
.row-spaced {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between !important;
width: 100%;
}
.row-stretch {
display: flex;
flex-direction: row;
align-content: stretch;
align-items: stretch;
width: 100%;
}
.valign-center {
display: flex;
flex-direction: row;
align-items: center;
align-content: center;
justify-content: center;
height: 100%;
width: 100%;
}
2016-07-07 20:10:55 +00:00
.pointer {
cursor: pointer;
}
2016-04-06 04:21:42 +00:00
.wide {
width: 100% !important;
Sync Proof of Concept (#33) * Maybe working POC * Change to use remote url * Other URL too * Some logic * Got the push part working * Made some updates * Fix * Update * Add status code check * Stuff * Implemented new sync api * A bit more robust * Debounce changes * Change timeout * Some fixes * Remove .less * Better error handling * Fix base url * Support for created vs updated docs * Try silent * Silence removal too * Small fix after merge * Fix test * Stuff * Implement key generation algorithm * Tidy * stuff * A bunch of stuff for the new API * Integrated the session stuff * Stuff * Just started on encryption * Lots of updates to encryption * Finished createResourceGroup function * Full encryption/decryption working (I think) * Encrypt localstorage with sessionID * Some more * Some extra checks * Now uses separate DB. Still needs to be simplified a LOT * Fix deletion bug * Fixed unicode bug with encryption * Simplified and working * A bunch of polish * Some stuff * Removed some workspace meta properties * Migrated a few more meta properties * Small changes * Fix body scrolling and url cursor jumping * Removed duplication of webpack port * Remove workspaces reduces * Some small fixes * Added sync modal and opt-in setting * Good start to sync flow * Refactored modal footer css * Update sync status * Sync logger * A bit better logging * Fixed a bunch of sync-related bugs * Fixed signup form button * Gravatar component * Split sync modal into tabs * Tidying * Some more error handling * start sending 'user agent * Login/signup error handling * Use real UUIDs * Fixed tests * Remove unused function * Some extra checks * Moved cloud sync setting to about page * Some small changes * Some things
2016-10-21 17:20:36 +00:00
box-sizing: border-box;
2016-04-06 04:21:42 +00:00
}
.width-auto {
width: auto !important;
}
.hide {
display: none;
}
2016-04-06 04:21:42 +00:00
.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 {
min-width: 1.1rem;
2016-04-04 07:15:30 +00:00
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-10-26 20:19:18 +00:00
.force-word-wrap {
white-space: normal;
}
2016-06-19 00:17:20 +00:00
.no-wrap {
white-space: nowrap;
}
.overflow-hidden {
overflow: hidden;
}
.wrap {
white-space: normal;
}
.border-top {
2016-08-29 17:58:59 +00:00
border-top: 1px solid @hl-md;
}
2016-04-17 22:46:17 +00:00
.pad {
box-sizing: border-box;
2016-08-29 17:58:59 +00:00
padding: @padding-md;
2016-04-17 22:46:17 +00:00
}
Sync Proof of Concept (#33) * Maybe working POC * Change to use remote url * Other URL too * Some logic * Got the push part working * Made some updates * Fix * Update * Add status code check * Stuff * Implemented new sync api * A bit more robust * Debounce changes * Change timeout * Some fixes * Remove .less * Better error handling * Fix base url * Support for created vs updated docs * Try silent * Silence removal too * Small fix after merge * Fix test * Stuff * Implement key generation algorithm * Tidy * stuff * A bunch of stuff for the new API * Integrated the session stuff * Stuff * Just started on encryption * Lots of updates to encryption * Finished createResourceGroup function * Full encryption/decryption working (I think) * Encrypt localstorage with sessionID * Some more * Some extra checks * Now uses separate DB. Still needs to be simplified a LOT * Fix deletion bug * Fixed unicode bug with encryption * Simplified and working * A bunch of polish * Some stuff * Removed some workspace meta properties * Migrated a few more meta properties * Small changes * Fix body scrolling and url cursor jumping * Removed duplication of webpack port * Remove workspaces reduces * Some small fixes * Added sync modal and opt-in setting * Good start to sync flow * Refactored modal footer css * Update sync status * Sync logger * A bit better logging * Fixed a bunch of sync-related bugs * Fixed signup form button * Gravatar component * Split sync modal into tabs * Tidying * Some more error handling * start sending 'user agent * Login/signup error handling * Use real UUIDs * Fixed tests * Remove unused function * Some extra checks * Moved cloud sync setting to about page * Some small changes * Some things
2016-10-21 17:20:36 +00:00
.pad-sm {
box-sizing: border-box;
padding: @padding-sm;
}
2016-08-25 17:06:01 +00:00
.pad-left {
box-sizing: border-box;
2016-08-29 17:58:59 +00:00
padding-left: @padding-md;
2016-08-25 17:06:01 +00:00
}
.pad-right {
box-sizing: border-box;
2016-08-29 17:58:59 +00:00
padding-right: @padding-md;
2016-08-25 17:06:01 +00:00
}
2016-07-07 20:10:55 +00:00
.pad-top {
box-sizing: border-box;
2016-08-29 17:58:59 +00:00
padding-top: @padding-md;
2016-07-07 20:10:55 +00:00
}
.pad-top-sm {
box-sizing: border-box;
2016-08-29 17:58:59 +00:00
padding-top: @padding-sm;
}
2016-08-25 17:06:01 +00:00
.margin-top-sm {
2016-08-29 17:58:59 +00:00
margin-top: @padding-sm;
2016-08-25 17:06:01 +00:00
}
Sync Proof of Concept (#33) * Maybe working POC * Change to use remote url * Other URL too * Some logic * Got the push part working * Made some updates * Fix * Update * Add status code check * Stuff * Implemented new sync api * A bit more robust * Debounce changes * Change timeout * Some fixes * Remove .less * Better error handling * Fix base url * Support for created vs updated docs * Try silent * Silence removal too * Small fix after merge * Fix test * Stuff * Implement key generation algorithm * Tidy * stuff * A bunch of stuff for the new API * Integrated the session stuff * Stuff * Just started on encryption * Lots of updates to encryption * Finished createResourceGroup function * Full encryption/decryption working (I think) * Encrypt localstorage with sessionID * Some more * Some extra checks * Now uses separate DB. Still needs to be simplified a LOT * Fix deletion bug * Fixed unicode bug with encryption * Simplified and working * A bunch of polish * Some stuff * Removed some workspace meta properties * Migrated a few more meta properties * Small changes * Fix body scrolling and url cursor jumping * Removed duplication of webpack port * Remove workspaces reduces * Some small fixes * Added sync modal and opt-in setting * Good start to sync flow * Refactored modal footer css * Update sync status * Sync logger * A bit better logging * Fixed a bunch of sync-related bugs * Fixed signup form button * Gravatar component * Split sync modal into tabs * Tidying * Some more error handling * start sending 'user agent * Login/signup error handling * Use real UUIDs * Fixed tests * Remove unused function * Some extra checks * Moved cloud sync setting to about page * Some small changes * Some things
2016-10-21 17:20:36 +00:00
.margin-left {
margin-left: @padding-md;
}
2016-10-21 18:58:06 +00:00
.margin-right-sm {
margin-right: @padding-sm;
}
.margin-bottom-sm {
margin-bottom: @padding-sm;
}
.margin-top-sm {
margin-top: @padding-sm;
}
.pad-bottom {
box-sizing: border-box;
2016-08-29 17:58:59 +00:00
padding-bottom: @padding-md;
}
.pad-bottom-sm {
box-sizing: border-box;
padding-bottom: @padding-sm;
}
2016-05-01 20:46:11 +00:00
.no-pad-bottom {
padding-bottom: 0;
}
.no-pad-left {
padding-left: 0;
}
2016-08-22 20:05:42 +00:00
.no-pad-top {
padding-top: 0 !important;
}
.no-margin {
margin: 0 !important;
}
.no-margin-top {
margin-top: 0 !important;
2016-08-22 20:05:42 +00:00
}
.pad-left-sm {
2016-08-29 17:58:59 +00:00
padding-left: @padding-md / 2;
2016-04-17 22:46:17 +00:00
}
.pad-right-sm {
2016-08-29 17:58:59 +00:00
padding-right: @padding-md / 2;
2016-04-17 22:46:17 +00:00
}
2016-04-15 02:13:49 +00:00
.no-pad {
padding: 0 !important;
}
.no-margin-left {
margin-left: 0 !important;
2016-07-07 20:10:55 +00:00
}
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;
}
.ellipsis {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
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;
}
2017-01-23 22:41:31 +00:00
::selection {
background-color: var(--hl-md);
2017-01-23 22:41:31 +00:00
}
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-09-21 00:03:26 +00:00
position: relative;
&.scrollable--no-bars::-webkit-scrollbar {
display: none;
}
2016-09-21 00:03:26 +00:00
}
.scrollable-container {
position: relative;
& > .scrollable {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
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-06 16:50:11 +00:00
}
.section__body {
2016-08-29 17:58:59 +00:00
border-right: 1px solid @hl-sm;
2016-04-06 16:50:11 +00:00
}
}
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-08-29 17:58:59 +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-08-29 17:58:59 +00:00
@media (max-width: @breakpoint-md) {
2016-06-18 21:02:27 +00:00
html {
2016-08-29 17:58:59 +00:00
font-size: @font-size * 0.95;
2016-07-07 20:10:55 +00:00
}
.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;
}
}