1
0
silverbullet/web/styles/main.scss

173 lines
2.5 KiB
SCSS
Raw Normal View History

@use "editor";
2022-12-21 15:08:51 +00:00
@use "modals";
@use "theme";
2022-04-04 13:25:07 +00:00
2022-05-06 16:55:04 +00:00
@font-face {
font-family: "iA-Mono";
src: url("/iAWriterMonoS-Regular.woff2");
2022-05-06 16:55:04 +00:00
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "iA-Mono";
src: url("/iAWriterMonoS-Bold.woff2");
2022-05-06 16:55:04 +00:00
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: "iA-Mono";
src: url("/iAWriterMonoS-Italic.woff2");
2022-05-06 16:55:04 +00:00
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: "iA-Mono";
src: url("/iAWriterMonoS-BoldItalic.woff2");
2022-05-06 16:55:04 +00:00
font-weight: bold;
font-style: italic;
}
2022-07-22 11:44:28 +00:00
#sb-root {
2022-04-04 16:33:13 +00:00
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
2022-03-28 13:25:05 +00:00
}
2022-07-22 11:44:28 +00:00
#sb-top {
2022-04-04 16:33:13 +00:00
display: flex;
flex-direction: row;
2022-06-17 18:17:22 +00:00
z-index: 20;
2022-04-04 16:33:13 +00:00
2022-08-02 12:40:04 +00:00
height: 55px;
2022-04-04 16:33:13 +00:00
.main {
flex: 2;
2022-06-20 15:24:44 +00:00
max-width: 100%;
2022-04-04 16:33:13 +00:00
.inner {
// Hack to not have SCSS precompile this value but use proper CSS variables
max-width: var(--#{"editor-width"});
2022-04-04 16:33:13 +00:00
margin: auto;
font-size: 28px;
2022-12-16 10:39:46 +00:00
padding: 10px 0;
2022-06-20 15:24:44 +00:00
display: flex;
flex-direction: row;
2022-12-16 10:39:46 +00:00
.wrapper {
width: 100%;
padding: 0 20px;
position: relative;
}
2022-08-02 12:40:04 +00:00
.sb-notifications {
2022-12-16 12:25:53 +00:00
position: fixed;
bottom: 0;
left: 5px;
right: 5px;
font-size: 15px;
z-index: 100;
2022-12-16 10:39:46 +00:00
>div {
padding: 3px;
margin-bottom: 3px;
border-radius: 5px;
}
}
2022-04-04 16:33:13 +00:00
#sb-current-page {
2022-06-20 15:24:44 +00:00
flex: 1;
2022-06-17 18:17:22 +00:00
overflow: hidden;
white-space: nowrap;
text-align: left;
2022-06-17 18:17:22 +00:00
display: block;
.cm-scroller {
font-family: var(--ui-font);
}
.cm-content {
padding: 0;
.cm-line {
padding: 0;
}
}
}
}
2022-06-17 18:17:22 +00:00
2022-08-02 12:40:04 +00:00
.sb-actions {
text-align: right;
2022-12-16 10:39:46 +00:00
position: absolute;
2022-12-16 13:19:09 +00:00
right: 15px;
2022-12-16 10:39:46 +00:00
top: 0;
2022-05-06 16:55:04 +00:00
}
2022-04-04 16:33:13 +00:00
}
2022-03-28 13:25:05 +00:00
2022-08-02 12:40:04 +00:00
.sb-panel {
2022-04-04 16:33:13 +00:00
flex: 1;
}
}
2022-07-22 11:44:28 +00:00
#sb-main {
2022-04-04 16:33:13 +00:00
display: flex;
flex-direction: row;
flex-grow: 1;
height: 0;
2022-08-02 12:40:04 +00:00
.sb-panel {
2022-04-04 16:33:13 +00:00
flex: 1;
iframe {
border: 0;
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
}
}
2022-07-22 11:44:28 +00:00
#sb-editor {
2022-04-04 16:33:13 +00:00
flex: 2;
height: 100%;
2022-03-28 13:25:05 +00:00
}
2022-08-02 12:40:04 +00:00
.sb-bhs {
2022-05-09 12:59:12 +00:00
height: 300px;
2022-04-26 17:04:36 +00:00
width: 100%;
z-index: 10;
2022-05-09 12:59:12 +00:00
2022-08-02 12:40:04 +00:00
.sb-panel {
2022-05-09 12:59:12 +00:00
height: 100%;
2022-04-26 17:04:36 +00:00
iframe {
border: 0;
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
}
}
.sb-modal {
position: absolute;
z-index: 100;
.sb-panel {
height: 100%;
iframe {
border: 0;
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
}
2022-12-16 10:39:46 +00:00
}