1
0
silverbullet/web/styles/main.scss

224 lines
3.4 KiB
SCSS
Raw Normal View History

@use "editor";
2022-12-21 15:08:51 +00:00
@use "modals";
@use "theme";
@use "colors";
2022-04-04 13:25:07 +00:00
2022-05-06 16:55:04 +00:00
@font-face {
font-family: "iA-Mono";
src: url("/.client/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("/.client/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("/.client/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("/.client/iAWriterMonoS-BoldItalic.woff2");
2022-05-06 16:55:04 +00:00
font-weight: bold;
font-style: italic;
}
html,
body {
margin: 0;
height: 100%;
padding: 0;
width: 100%;
overflow: hidden;
background-color: var(--top-background-color);
}
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%;
background-color: var(--root-background-color);
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 {
float: right;
margin-top: 8px;
font-size: 15px;
z-index: 100;
2023-07-10 11:16:22 +00:00
>div {
padding: 3px;
margin-bottom: 3px;
border-radius: 5px;
}
}
}
2022-04-04 16:33:13 +00:00
#sb-current-page {
flex: 1;
2022-06-17 18:17:22 +00:00
overflow: hidden;
white-space: nowrap;
text-align: left;
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
.sb-actions {
text-align: right;
position: absolute;
right: 15px;
top: 0;
}
2023-06-14 18:58:08 +00:00
.progress-wrapper {
display: inline-block;
position: relative;
top: -6px;
padding: 4px;
background-color: var(--top-background-color);
margin-right: -2px;
}
2023-06-14 18:58:08 +00:00
.progress-bar {
display: flex;
justify-content: center;
align-items: center;
2023-06-14 18:58:08 +00:00
width: 20px;
height: 20px;
border-radius: 50%;
font-size: 6px;
2022-04-04 16:33:13 +00:00
}
2022-03-28 13:25:05 +00:00
// .progress-bar::before {
// content: "66%";
// }
2022-04-04 16:33:13 +00:00
}
.sb-panel {
flex: 1;
}
.sb-bottom-iframe {
width: 100%;
margin-top: 10px;
border: 1px solid var(--editor-widget-background-color);
border-radius: 5px;
}
.sb-top-iframe {
2023-11-25 12:40:56 +00:00
width: 100%;
margin-top: 10px;
border: 1px solid var(--editor-widget-background-color);
2023-11-25 12:40:56 +00:00
border-radius: 5px;
}
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%;
2023-07-02 09:50:53 +00:00
width: 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;
}
}
2023-07-10 11:16:22 +00:00
}