* feat: (wip) authorize note access
* fix: remove multiEditorEnabled
* refactor: update SNJS + eslint
* refactor: remove privileges in favor of SNJS protections
* fix: do not close editor when editing an archived note
* chore: remove progress indicator for webpack dev server
* fix: add rel="noreferrer" to bugsnag links
* chore(deps): upgrade snjs
* chore(deps): upgrade snjs
* feat: batch manager protection + react challenge modal + eslint fix
* fix: lint errors
* fix: launch state error
* fix: challenge modal: cancel instead of dismiss when pressing escape
* feat: improve focus styles
* fix: cancel session revoking when pressing escape on confirm dialog
* fix: lint warning
* chore(deps): upgrade minor versions
* feat: make SNWebCrypto a constant
* feat: add random identifier to bugsnag reports
* fix: check onKeyUp instead of onKeyDown
* feat: implement SNJS backup file password retrieval
* chore(deps): upgrade snjs
* feat: display warning banner when using the app with no account
* fix: properly color svg button
* fix: wording
* fix: hide account warning after login + improve key storage wording
* chore(deps): upgrade stylekit
* feat: use stylekit fonts for the editor
* chore(deps): bump nokogiri from 1.10.8 to 1.11.1 (#511)
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.10.8 to 1.11.1.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.10.8...v1.11.1)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com>
* chore(deps): bump ini from 1.3.5 to 1.3.8 (#504)
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com>
* fix: rename master branch to main
* fix: add missing placeholders for submodules (#516)
Co-authored-by: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com>
* chore(deps): upgrade snjs, babel, typescript, reach, mobx, preact
* feat: clear protection session
* fix: use correct close icon size
* fix: hide protections paragraph when no account or passcode exist
* chore(deps): remove unused dependencies
* fix: button casing
* feat: implement SNApplication.hasProtectionSources
* chore(version): 3.6.0
* feat: enable sessions management for every build
* feat: make "Protected" flag more subtle
* fix: only match protected note title
* fix: remove inconsistencies between protected note label and date
* feat: show warning when protecting a note with no protection source
* feat: make unprotecting a note a protected action
* chore(deps): upgrade snjs
* chore(version): 3.6.0-beta01
* fix: run docker with root to fix crashing on Linux (undoes 62da387d3a) (#525)
* feat: make encrypted backups protected (#524)
Co-authored-by: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: proletarius101 <54175165+proletarius101@users.noreply.github.com>
Co-authored-by: Darius JJ Chuck <79410894+standarius@users.noreply.github.com>
Co-authored-by: Antonella Sgarlatta <antonella@standardnotes.org>
238 lines
4.2 KiB
SCSS
238 lines
4.2 KiB
SCSS
$z-index-editor-content: 10;
|
|
|
|
$z-index-editor-title-bar: 100;
|
|
$z-index-dropdown-menu: 100;
|
|
|
|
$z-index-resizer-overlay: 1000;
|
|
$z-index-panel-resizer: 1001;
|
|
|
|
$z-index-component-view: 1000;
|
|
|
|
$z-index-footer-bar: 2000;
|
|
$z-index-footer-bar-item: 2000;
|
|
$z-index-footer-bar-item-panel: 2000;
|
|
|
|
$z-index-lock-screen: 10000;
|
|
$z-index-modal: 10000;
|
|
|
|
html,
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont,
|
|
"Segoe UI", "Roboto", "Oxygen",
|
|
"Ubuntu", "Cantarell", "Fira Sans",
|
|
"Droid Sans", "Helvetica Neue", sans-serif;
|
|
-moz-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
-webkit-font-smoothing: antialiased;
|
|
min-height: 100%;
|
|
height: 100%;
|
|
font-size: var(--sn-stylekit-base-font-size);
|
|
margin: 0;
|
|
color: var(--sn-stylekit-foreground-color);
|
|
background-color: var(--sn-stylekit-background-color);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.uppercase {
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.tinted {
|
|
color: var(--sn-stylekit-info-color);
|
|
}
|
|
|
|
.tinted-selected {
|
|
color: var(--sn-stylekit-info-contrast-color);
|
|
}
|
|
|
|
h1 {
|
|
font-size: var(--sn-stylekit-font-size-h1);
|
|
}
|
|
|
|
h2 {
|
|
font-size: var(--sn-stylekit-font-size-h2);
|
|
}
|
|
|
|
h3 {
|
|
font-size: var(--sn-stylekit-font-size-h3);
|
|
}
|
|
|
|
input, button, select, textarea {
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
line-height: inherit;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
|
|
&.no-decoration {
|
|
color: inherit;
|
|
}
|
|
|
|
&:hover {
|
|
text-decoration: underline;
|
|
|
|
&.no-decoration {
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
::selection {
|
|
background: var(--sn-stylekit-info-color) !important; /* WebKit/Blink Browsers */
|
|
color: var(--sn-stylekit-info-contrast-color);
|
|
}
|
|
|
|
::-moz-selection {
|
|
background: var(--sn-stylekit-info-color) !important;
|
|
color: var(--sn-stylekit-info-contrast-color);
|
|
}
|
|
|
|
p {
|
|
overflow: auto;
|
|
color: var(--sn-stylekit-paragraph-text-color);
|
|
margin: 0;
|
|
}
|
|
|
|
.main-ui-view {
|
|
min-height: 100vh;
|
|
height: 100vh;
|
|
position: relative;
|
|
overflow: auto;
|
|
background-color: var(--sn-stylekit-background-color);
|
|
}
|
|
|
|
$footer-height: 32px;
|
|
|
|
#resizer-overlay {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: transparent;
|
|
z-index: $z-index-resizer-overlay;
|
|
opacity: 0;
|
|
}
|
|
|
|
.app {
|
|
height: calc(100% - #{$footer-height});
|
|
width: 100%;
|
|
display: flex;
|
|
vertical-align: top;
|
|
overflow: hidden;
|
|
position: relative;
|
|
|
|
panel-resizer {
|
|
top: 0;
|
|
right: 0;
|
|
z-index: $z-index-panel-resizer;
|
|
width: 8px;
|
|
height: 100%;
|
|
position: absolute;
|
|
cursor: col-resize;
|
|
// needs to be a color that works on main bg and contrast bg
|
|
background-color: var(--sn-stylekit-secondary-contrast-background-color);
|
|
opacity: 0;
|
|
border-top: none;
|
|
border-bottom: none;
|
|
|
|
@keyframes fade {
|
|
0% {
|
|
opacity: 0;
|
|
}
|
|
|
|
50% {
|
|
opacity: 1;
|
|
}
|
|
|
|
100% {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
&.left {
|
|
left: 0;
|
|
right: none;
|
|
}
|
|
|
|
&.always-visible {
|
|
opacity: 1;
|
|
}
|
|
|
|
&.collapsed {
|
|
opacity: 1;
|
|
// so it blends in with editor a bit more
|
|
background-color: var(--sn-stylekit-editor-background-color);
|
|
}
|
|
|
|
&.dragging {
|
|
opacity: 1;
|
|
}
|
|
|
|
&.animate-opacity {
|
|
animation-duration: 1.6s;
|
|
animation-name: fade;
|
|
animation-delay: 0.25s;
|
|
}
|
|
|
|
&.hoverable {
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.section {
|
|
padding-bottom: 0px;
|
|
height: 100%;
|
|
max-height: calc(100vh - #{$footer-height});
|
|
position: relative;
|
|
overflow: hidden;
|
|
|
|
.scrollable {
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
> .content {
|
|
height: 100%;
|
|
max-height: 100%;
|
|
background-color: var(--sn-stylekit-background-color);
|
|
position: relative;
|
|
}
|
|
|
|
.section-title-bar {
|
|
|
|
.padded {
|
|
padding: 0 14px;
|
|
}
|
|
|
|
.add-button {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.section-title-bar-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
// This was causing problems with tags + button cutting off on right when the panel is a certain size
|
|
// overflow: hidden;
|
|
|
|
> .title {
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
width: 80%;
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.icon {
|
|
margin-right: 4px;
|
|
}
|