burgernotes-client-web/static/css/style.css

1004 lines
18 KiB
CSS

@import url("/static/fonts/inter.css");
@import url("/static/fonts/space-grotesk.css");
:root {
--contrast: #eee;
--contrast2: #fff;
--bar: #FAFAFA;
--editor: #ffffff;
--text-color: #000000;
--border-color: #dcdcdc;
--theme-color: #1c71d8;
--note-theme-color: #CDE1EC;
--hover-theme-color: #4990e7;
--nonimporant-theme-color: #EBEBEB;
--hover-nonimportant-theme-color: #dbdbdb;
--nonimportant-text-color: #000;
--portal-background-color: #FAFAFA;
--theme-text-color: #ffffff;
--exit-color: #e9e9e9;
--session-color: #f4f4f4;
--note-button: #ffffff;
--note-button-hover: #eeeeee;
--note-button-text-color: #000;
--unselected-note-button-text-color: #000000;
--option-background: #ffffff;
--icon-button-hover: #ececec;
--invertdm: 0%;
}
/* dark mode */
@media (prefers-color-scheme: dark) {
:root {
--contrast: #323436;
--contrast2: #202124;
--bar: #242424;
--editor: #1E1E1E;
--text-color: #ffffff;
--border-color: #393b3d;
--theme-color: #3584e4;
--note-theme-color: #293B53;
--hover-theme-color: #4990e7;
--nonimporant-theme-color: #4A4A4A;
--hover-nonimportant-theme-color: #595959;
--nonimportant-text-color: #fff;
--portal-background-color: #242424;
--theme-text-color: #ffffff;
--exit-color: #454649;
--session-color: #2d2f31;
--note-button: #202124;
--note-button-hover: #2a2c2f;
--note-button-text-color: #ffffff;
--unselected-note-button-text-color: #ffffff;
--option-background: #242424;
--icon-button-hover: #333333;
--invertdm: 100%;
}
.startDiv p {
color: white !important;
}
.topBar p {
color: white !important;
}
.newNote {
color: white !important;
}
#errorDiv p {
color: white !important;
}
.optionsCoverDiv p {
color: white !important;
}
.burgerSession img {
filter: invert(100%) !important;
}
.links a {
color: white !important;
}
.inoutdiv p {
color: white !important;
}
.inoutdiv a {
color: #969696 !important;
}
.inoutdiv input {
color: white;
background-color: var(--editor);
}
.flathubLogo {
filter: invert(100%);
}
.feature {
background-color: rgba(0, 0, 0, 0) !important;
color: var(--text-color);
}
.mainDiv {
color: white !important;
}
.mainDiv .black {
background-color: var(--bar) !important;
}
.mainDiv .black p {
background-color: var(--bar) !important;
}
.mainDiv .yellow {
border-color: #e9e98d !important;
}
.mainDiv .green {
border-color: #a9f9a9 !important;
}
}
p,
li,
h1,
h2,
h3,
h4,
h5,
h6 {
color: var(--text-color);
white-space: break-spaces;
}
h7 {
display: block;
font-size: 20px;
margin: 0.67em 0;
}
body {
margin: 0;
background-color: var(--editor);
font-family: "Inter", sans-serif;
}
.hiddenButton {
right: 0;
position: fixed;
background-color: var(--editor);
color: var(--editor);
padding: 20px;
}
/* Web app */
.topBar {
position: fixed;
right: 0;
width: calc(100% - 181px);
height: 50px;
border: none;
border-color: var(--border-color);
border-width: 0;
border-bottom-width: 1px;
display: flex;
background-color: var(--editor);
z-index: -1;
}
.burgerDropdown {
position: fixed;
z-index: 2;
left: 7px;
top: 30px;
width: 160px;
height: 90px;
background-color: var(--bar);
border: solid;
border-color: var(--border-color);
border-width: 1px;
border-radius: 8px;
}
.burgerDropdown a {
position: absolute;
width: calc(100% - 14px - 4px - 7px);
color: var(--text-color);
background-color: #ffffff;
height: 35px;
line-height: 35px;
margin: 7px;
padding-left: 7px;
border: solid;
border-color: var(--border-color);
border-width: 1px;
border-radius: 8px;
font-size: 15px;
text-decoration: none;
}
.topBar p {
display: inline-block;
}
.topBar .modernToolbar {
margin-left: auto;
margin-right: 5px;
display: flex;
width: 100%;
overflow-x: auto;
}
.topBar .modernToolbar .count {
color: var(--text-color);
background-color: rgba(0, 0, 0, 0);
border: none;
font-size: 15px;
margin-left: auto;
}
.topBar .modernToolbar .textmod {
cursor: pointer;
filter: invert(var(--invertdm));
height: 41px;
width: 41px;
line-height: 41px;
text-align: left;
font-size: 16px;
margin-top: 5px;
background-color: rgba(0, 0, 0, 0);
border-radius: 99px;
border: none;
transition: 0.125s;
}
.topBar .textmod img {
height: 22px;
filter: invert(var(--invertdm));
}
.topBar .textmod:hover {
background-color: var(--icon-button-hover);
}
.topBar .usernameBox {
cursor: pointer;
filter: invert(var(--invertdm));
height: 41px;
width: 41px;
line-height: 41px;
text-align: left;
font-size: 16px;
margin-top: 5px;
background-color: rgba(0, 0, 0, 0);
border-radius: 8px;
border: none;
transition: 0.125s;
}
.topBar .usernameBox:hover {
background-color: var(--icon-button-hover);
}
.topBar .usernameBox img {
height: 22px;
}
.notesBar {
position: fixed;
width: 180px;
height: calc(100%);
background-color: var(--bar);
border: solid;
border-color: var(--border-color);
border-width: 0;
border-right-width: 1px;
}
.notesDiv {
display: flex;
flex-direction: column;
height: calc(100% - 50px);
overflow-y: auto;
}
.notesBar .noteButton, .notesBar .loadingStuff {
width: calc(100% - 7px - 3px);
height: 35px;
min-height: 35px;
line-height: 0;
padding: 10px;
margin: 5px 5px 0;
background-color: var(--bar);
color: var(--unselected-note-button-text-color);
border-radius: 8px;
border: none;
border-color: var(--border-color);
border-width: 1px;
font-size: 15px;
text-align: left;
cursor: pointer;
white-space: nowrap;
overflow-x: hidden;
transition: 0.125s;
}
.notesBar .noteButton:hover {
background-color: var(--note-button-hover);
}
.notesBar .loadingStuff {
border: none;
background:
linear-gradient(0.25turn, transparent, var(--contrast2), transparent),
linear-gradient(var(--contrast), var(--contrast)),
radial-gradient(38px circle at 19px 19px, #eee 50%, transparent 51%),
linear-gradient(var(--contrast), var(--contrast));
background-repeat: no-repeat;
background-size: 200% 200%, 100% 200%, 50% 50%, 140% 12%;
background-position: -200% 0, 0 0, 0 76%, 16% 78%;
animation: loading 1.5s infinite;
}
@keyframes loading {
to {
background-position: 200% 0, 0 0, 0 76%, 16% 78%;
}
}
.notesBar .selected {
background-color: var(--note-theme-color) !important;
border: none;
color: var(--note-button-text-color);
}
.notesBar .selected:hover {
background-color: var(--note-theme-color) !important;
}
.notesBar .newNote {
height: 41px;
width: 41px;
line-height: 41px;
text-align: left;
font-size: 16px;
cursor: pointer;
margin-top: 5px;
background-color: var(--bar);
border-radius: 8px;
border: none;
transition: 0.125s;
}
.notesBar .remove {
position: absolute;
right: 5px;
}
.notesBar .newNote:hover {
background-color: var(--icon-button-hover);
}
.notesBar .newNote img {
scale: 0.6;
filter: invert(var(--invertdm));
}
.noteBox {
position: fixed;
right: 0;
top: 35px;
border: none;
font-size: 16px;
color: var(--text-color);
background-color: rgba(0, 0, 0, 0);
width: calc(100% - 200px);
height: calc(100% - 40px);
font-family: "Inter", sans-serif;
margin: 10px;
outline: none;
z-index: -1;
}
.noteBox.mobile {
margin: 15px 0 0;
height: calc(100% - 75px);
}
.noteBoxText {
background-color: var(--editor);
color: var(--text-color);
border: none;
width: 100%;
height: 100%;
font-family: "Inter", sans-serif;
outline: none;
margin-top: 5px;
}
.pell-content {
width: 100%;
height: calc(100% - 20px);
overflow-y: scroll;
}
.pell-button {
background-color: var(--note-button);
border: 1px var(--border-color) solid;
min-width: 35px;
max-width: 35px;
height: 35px;
margin-left: 1px;
margin-right: 1px;
border-radius: 10px;
}
button:hover {
background-color: var(--note-button-hover);
}
.pell-actionbar {
display: flex;
margin-bottom: 5px;
overflow-x: auto;
position: fixed;
top: 8px;
}
@media only screen and (max-width: 860px) {
.pell-actionbar {
position: inherit;
}
.noteBox {
height: calc(100% - 50px - 30px);
}
}
.noteBox:focus {
outline: none;
}
.optionsCoverDiv {
position: fixed;
width: 100%;
height: 100%;
z-index: 2;
background-color: rgba(0, 0, 0, 0.7);
transition: opacity 1s;
}
.optionsDiv {
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
position: fixed;
background-color: var(--option-background);
padding: 10px;
color: var(--text-color);
border-radius: 8px;
width: 300px;
z-index: 3;
display: flex;
flex-direction: column;
max-width: 90%;
max-height: 90%;
overflow-y: auto;
}
.optionsDiv button {
width: 100%;
padding: 10px;
margin-bottom: 7px;
background-color: var(--nonimporant-theme-color);
border: none;
text-decoration: none;
color: var(--nonimportant-text-color);
border-radius: 10px;
cursor: pointer;
font-size: 15px;
transition: 0.125s;
}
.optionsDiv button:hover {
background-color: var(--hover-nonimportant-theme-color);
}
.optionsDiv .normalButton {
width: auto;
margin-bottom: 0;
}
.optionsDiv .lastButton {
margin-bottom: 0;
}
.optionsDiv input {
width: calc(100% - 12px);
height: 25px;
background-color: #ffffff;
padding-left: 5px;
padding-right: 5px;
margin-bottom: 7px;
border: solid;
border-color: var(--border-color);
border-width: 1px;
border-radius: 10px;
}
.optionsDiv .mfacheckbox {
display: inline;
margin: 0 0 12px 5px;
padding: 0;
height: 17px;
width: 17px;
}
.optionsDiv input:focus {
outline: 0;
border-color: var(--theme-color);
}
.optionsDiv code {
padding: 7px;
font-size: 14px;
border-radius: 8px;
background-color: var(--session-color);
}
.optionsDiv progress {
width: 100%;
background-color: var(--session-color);
border: none;
border-radius: 99px;
height: 7px;
}
.optionsDiv progress::-moz-progress-bar {
background: var(--theme-color);
}
.optionsDiv progress::-webkit-progress-value {
background: var(--theme-color);
}
.optionsDiv .exit {
position: absolute;
right: 5px;
width: 40px;
height: 40px;
font-size: 16px;
background-color: var(--exit-color);
color: var(--text-color);
border-radius: 100%;
}
.optionsDiv img {
height: 18px;
padding-right: 5px;
position: absolute;
left: 20px;
scale: 1.3;
transform: translateY(1px);
filter: invert(var(--invertdm))
}
.optionsDiv .section {
width: 100%;
border-top: var(--border-color) solid 1px;
margin-top: 2px;
margin-bottom: 10px;
}
.optionsDiv .fontManipulator {
display: flex;
}
.optionsDiv .fontManipulator .vcenter {
height: auto;
}
.optionsDiv .fontManipulator button {
width: 44px;
background-color: var(--nonimporant-theme-color);
color: var(--nonimportant-text-color);
transition: 0.125s;
}
.optionsDiv .fontManipulator button:hover {
background-color: var(--hover-nonimportant-theme-color);
}
.optionsDiv .fontManipulator .textMinusBox {
margin-left: auto;
}
.optionsDiv .fontManipulator .textSizeBox {
margin-left: 5px;
margin-right: 5px;
}
.sessionDiv {
max-height: 255px;
overflow-y: auto;
min-height: 20px;
}
.sessionDiv div {
background-color: var(--session-color);
border-radius: 8px;
margin-bottom: 5px;
padding: 10px 10px 0;
display: flex;
}
.sessionDiv div p {
display: inline;
overflow-wrap: anywhere;
margin: 0 10px 10px;
}
.sessionDiv div button {
position: static;
border-radius: 99px;
max-width: 40px;
min-width: 40px;
margin-left: auto;
height: 40px;
font-size: 16px;
transform: translateY(-2px);
}
.sessionDiv img {
display: inline;
filter: invert(var(--invertdm));
height: 35px;
position: static;
margin-right: 5px;
}
/* Sign up/log in div */
.inoutdiv {
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
position: fixed;
min-width: 585px;
min-height: 270px;
border-radius: 16px;
padding: 35px;
background-color: var(--portal-background-color);
}
.noContent {
display: none;
}
.inoutdiv .checkMark {
display: none;
}
.inoutdiv h2 {
font-family: "Space Grotesk", sans-serif;
font-optical-sizing: auto;
}
.inoutdiv .inputBox {
width: 100%
}
.inoutdiv .inputContainer {
display: flex;
width: 100%;
margin-right: 30px;
margin-bottom: 10px;
}
.inoutdiv table {
margin-right: 30px;
}
.inoutdiv input {
width: 100%;
margin-left: 10px;
height: 30px;
padding-left: 10px;
padding-right: 10px;
border: solid;
border-color: var(--border-color);
border-width: 1px;
border-radius: 6px;
}
.inoutdiv input:focus {
outline: none;
border-color: var(--hover-theme-color)
}
.clickButton {
background-color: var(--theme-color);
color: white;
margin-right: 5px;
padding: 10px 20px;
border: none;
border-radius: 25px;
font-size: 14px;
transition: 0.125s;
}
.clickButton:hover {
background-color: var(--hover-theme-color);
}
@media (prefers-reduced-motion) {
.inoutdiv button {
transition: none !important;
}
}
.inoutdiv .nonimportant {
background-color: var(--nonimporant-theme-color);
color: var(--nonimportant-text-color)
}
.inoutdiv .nonimportant:hover {
background-color: var(--hover-nonimportant-theme-color);
}
.inoutdiv a {
color: grey;
text-align: center;
}
.inoutdiv .iconbutton {
position: absolute;
right: 15px;
bottom: 15px;
width: 41px;
height: 41px;
border: none;
border-radius: 99px;
transition: 0.125s;
}
.inoutdiv .iconbutton img {
height: 20px;
transform: translateY(10px);
}
.inoutdiv .iconbutton:hover {
background-color: var(--hover-nonimportant-theme-color);
}
@media only screen and (max-width: 600px) {
.inoutdiv {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
border-radius: 0;
min-width: calc(100% - 10px);
min-height: 100%;
transform: none;
padding: 5px;
overflow-y: scroll;
}
.inoutdiv p {
font-size: 14px;
}
.inoutdiv h2 {
font-size: 21px;
}
}
.background {
position: fixed;
z-index: -2;
top: 0;
width: 100%;
height: 100%;
object-fit: cover;
-webkit-user-drag: none;
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
pointer-events: none;
}
.credit {
position: fixed;
left: 5px;
color: white;
z-index: -1;
margin: 0;
bottom: 5px;
}
.hidden {
display: none !important;
}
.vcenter {
display: flex;
flex-direction: column;
justify-content: center;
height: 100%;
}
.w100 {
font-weight: 300;
}
.w200 {
font-weight: 300;
}
.w300 {
font-weight: 300;
}
.w400 {
font-weight: 400;
}
.w500 {
font-weight: 500;
}
.w600 {
font-weight: 600;
}
.w700 {
font-weight: 700;
}
.w800 {
font-weight: 800;
}
.w900 {
font-weight: 900;
}
.alertDiv {
position: fixed;
margin: 0;
width: 100%;
background-color: #ffffeb;
height: 25px;
z-index: 9999;
top: 0;
}
/* main */
.mainDiv {
text-align: center;
}
.startDiv {
}
.startDiv h1 {
font-family: "Space Grotesk", sans-serif;
font-optical-sizing: auto;
font-size: 48px;
}
.startDiv p {
font-size: 18px;
}
.hAlign {
justify-content: center;
display: flex;
}
.vAlign {
justify-content: center;
display: flex;
flex-direction: column;
}
.downloadDiv {
flex-wrap: wrap;
}
.downloadDiv p {
margin: 0;
}
.downloadDiv a {
margin: 0 !important;
}
.mainDiv a {
padding: 15px 20px;
margin-right: auto;
color: white;
text-decoration: none;
background-color: var(--theme-color);
border-radius: 25px;
cursor: pointer;
transition: 0.125s;
}
.mainDiv a:hover {
background-color: var(--hover-theme-color);
}
@media (prefers-reduced-motion) {
.mainDiv a {
transition: none !important;
}
}
.mainDiv .burgerText {
width: 75%;
margin-left: 12.5%;
}
.mainDiv .feature {
max-width: 85%;
margin-bottom: 10px;
margin-left: 7.5%;
margin-right: 7.5%;
border: none;
border-radius: 12px;
font-size: 17px;
padding: 15px 10px 30px;
overflow-x: auto;
}
.mainDiv .green {
background-color: #ebffeb;
}
.mainDiv .yellow {
background-color: #ffffeb;
}
.mainDiv .black, .mainDiv .black p {
background-color: #f8f8f8;
}
.mainDiv .feature h1 {
margin: 10px 0 0;
font-family: "Space Grotesk", sans-serif;
font-optical-sizing: auto;
font-size: 22px;
}
.mainDiv .feature p {
width: 70%;
padding-left: 15%;
margin-bottom: 0;
}
.links {
text-align: center;
padding: 10px;
}
.links a {
margin-left: 5px;
text-decoration: none;
background-color: var(--bar);
color: var(--text-color);
padding: 3px 10px 10px;
margin-bottom: 10px;
border-radius: 10px;
transition: background-color .2s;
display: inline-block;
}
.links a:hover {
background-color: var(--editor);
}
.links a img {
transform: translateY(5px);
padding-right: 10px;
filter: invert(var(--invertdm));
}
.links a:hover {
text-decoration: dashed;
}