burgernotes-server/static/css/style.css

542 lines
9.6 KiB
CSS
Raw Normal View History

2023-08-16 14:42:08 +01:00
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");
2023-07-21 20:52:06 +01:00
2023-08-26 17:57:56 +01:00
:root {
--bar: #f4f4f4;
--editor: #ffffff;
--text-color: #000000;
--border-color: #dadada;
--theme-color: #157efb;
--theme-text-color: #ffffff;
--exit-color: #e9e9e9;
--session-color: #f4f4f4;
2023-08-26 18:10:50 +01:00
--note-button: #ffffff;
2023-08-26 18:17:33 +01:00
--note-button-text-color: #ffffff;
--unselected-note-button-text-color: #000000;
--option-background: #ffffff;
--invert: 100%
}
/* dark mode */
@media (prefers-color-scheme: dark) {
:root {
--bar: #2d2f31;
--editor: #202124;
--text-color: #ffffff;
--border-color: #393b3d;
--theme-color: #157efb;
--theme-text-color: #ffffff;
--exit-color: #454649;
--session-color: #2d2f31;
--note-button: #202124;
--note-button-text-color: #ffffff;
--unselected-note-button-text-color: #ffffff;
--option-background: #202124;
--invert: 100%
}
.startDiv p {
color: white !important;
}
.topBar p {
color: white !important;
}
.newNote {
color: white !important;
}
.newNote img {
filter: invert(100%)
}
#errorDiv p {
color: white !important;
}
.optionsCoverDiv p {
color: white !important;
}
.burgerSession img {
filter: invert(100%) !important
}
.feature h3, p {
color: black !important;
}
.links a {
color: white !important;
}
2023-08-26 17:57:56 +01:00
}
p, h1, h2, h3, h4, h5, h6 {
color: var(--text-color);
}
2023-07-21 20:52:06 +01:00
body {
margin: 0;
2023-08-26 17:57:56 +01:00
background-color: var(--editor);
2023-07-21 20:52:06 +01:00
font-family: "Inter", sans-serif;
}
/* Web app */
.topBar {
position: fixed;
width: 100%;
height: 50px;
2023-08-26 17:57:56 +01:00
background-color: var(--bar);
2023-07-21 20:52:06 +01:00
border: solid;
2023-08-26 17:57:56 +01:00
border-color: var(--border-color);
2023-07-21 20:52:06 +01:00
border-width: 0px;
border-bottom-width: 1px;
}
2023-08-05 00:29:53 +01:00
.burgerDropdown {
position: fixed;
z-index: 2;
left: 7px;
top: 30px;
width: 160px;
height: 90px;
2023-08-26 17:57:56 +01:00
background-color: var(--bar);
2023-08-05 00:29:53 +01:00
border: solid;
2023-08-26 17:57:56 +01:00
border-color: var(--border-color);
2023-08-05 00:29:53 +01:00
border-width: 1px;
border-radius: 8px;
}
.burgerDropdown a {
position: absolute;
width: calc(100% - 14px - 4px - 7px);
2023-08-26 17:57:56 +01:00
color: var(--text-color);
2023-08-05 00:29:53 +01:00
background-color: #ffffff;
height: 35px;
line-height: 35px;
margin: 7px;
padding-left: 7px;
border: solid;
2023-08-26 17:57:56 +01:00
border-color: var(--border-color);
2023-08-05 00:29:53 +01:00
border-width: 1px;
border-radius: 8px;
font-size: 15px;
text-decoration: none;
}
2023-07-21 20:52:06 +01:00
.topBar p {
display: inline-block;
}
.topBar .logo {
padding-left: 12px;
2023-08-05 00:29:53 +01:00
cursor: pointer;
2023-07-21 20:52:06 +01:00
}
.topBar .usernameBox {
text-align: right;
position: absolute;
2023-07-21 22:54:43 +01:00
cursor: pointer;
2023-07-21 20:52:06 +01:00
right: 12px;
}
.notesBar {
position: fixed;
width: 180px;
bottom: 0;
height: calc(100% - 50px - 1px);
2023-08-26 17:57:56 +01:00
background-color: var(--bar);
2023-07-21 20:52:06 +01:00
border: solid;
2023-08-26 17:57:56 +01:00
border-color: var(--border-color);
2023-07-21 20:52:06 +01:00
border-width: 0px;
border-right-width: 1px;
border-top-width: 1px;
}
2023-08-27 15:12:02 +01:00
.notesDiv {
height: calc(100% - 50px);
overflow-y: scroll;
}
2023-08-28 19:18:14 +01:00
.notesBar .noteButton {
width: calc(100% - 5px - 5px);
2023-07-21 20:52:06 +01:00
height: 35px;
line-height: 0px;
padding: 10px;
2023-08-28 19:18:14 +01:00
margin: 5px;
2023-07-21 20:52:06 +01:00
margin-bottom: 0;
2023-08-26 18:10:50 +01:00
background-color: var(--note-button);
2023-08-26 18:17:33 +01:00
color: var(--unselected-note-button-text-color);
2023-07-21 20:52:06 +01:00
border: none;
border-radius: 8px;
border: solid;
2023-08-26 17:57:56 +01:00
border-color: var(--border-color);
2023-07-21 20:52:06 +01:00
border-width: 1px;
font-size: 15px;
text-align: left;
}
2023-08-04 18:48:26 +01:00
.notesBar .loadingStuff {
border: none;
2023-08-04 21:44:36 +01:00
background:
linear-gradient(0.25turn, transparent, #fff, transparent),
linear-gradient(#eee, #eee),
radial-gradient(38px circle at 19px 19px, #eee 50%, transparent 51%),
linear-gradient(#eee, #eee);
background-repeat: no-repeat;
background-size: 315px 250px, 315px 180px, 100px 100px, 225px 30px;
background-position: -315px 0, 0 0, 0px 190px, 50px 195px;
animation: loading 1.5s infinite;
}
@keyframes loading {
to {
background-position: 315px 0, 0 0, 0 190px, 50px 195px;
}
2023-08-04 18:48:26 +01:00
}
2023-07-21 20:52:06 +01:00
.notesBar .selected {
2023-08-26 17:57:56 +01:00
background-color: var(--theme-color) !important;
border: none;
2023-08-26 18:17:33 +01:00
color: var(--note-button-text-color);
2023-07-21 20:52:06 +01:00
}
.notesBar .newNote {
2023-08-28 19:18:14 +01:00
height: 41px;
line-height: 41px;
width: 100%;
text-align: left;
2023-07-21 20:52:06 +01:00
background-color: rgba(0, 0, 0, 0);
border: none;
2023-08-28 19:18:14 +01:00
font-size: 16px;
margin-bottom: 5px;
2023-07-21 20:52:06 +01:00
}
.notesBar .newNote img {
2023-08-28 19:18:14 +01:00
height: 32px;
2023-07-21 20:52:06 +01:00
padding-right: 5px;
transform: translateY(30%);
}
.noteBox {
resize: none;
position: fixed;
right: 0;
bottom: 0;
2023-08-02 20:08:11 +01:00
padding: 4px;
2023-07-21 20:52:06 +01:00
border: none;
2023-07-21 22:54:43 +01:00
font-size: 16px;
color: var(--text-color);
2023-08-26 18:08:31 +01:00
background-color: var(--editor);
2023-08-02 20:08:11 +01:00
width: calc(100% - 180px - 7px - 6px);
height: calc(100% - 50px - 6px - 8px);
2023-07-21 20:52:06 +01:00
font-family: "Inter", sans-serif;
}
2023-08-04 18:48:26 +01:00
.noteBox:focus {
outline: none
}
2023-07-22 17:15:59 +01:00
.optionsCoverDiv {
position: fixed;
width: 100%;
height: 100%;
z-index: 2;
background-color: rgba(0, 0, 0, 0.7);
2023-07-22 19:03:37 +01:00
transition: opacity 1s;
2023-07-22 17:15:59 +01:00
}
.optionsDiv {
2023-07-22 19:03:37 +01:00
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 300px;
2023-07-22 17:15:59 +01:00
position: fixed;
background-color: var(--option-background);
2023-07-22 17:15:59 +01:00
padding: 10px;
2023-08-26 17:57:56 +01:00
color: var(--text-color);
2023-07-22 17:15:59 +01:00
border-radius: 8px;
2023-08-05 15:12:24 +01:00
min-width: 338.5px
2023-07-22 17:15:59 +01:00
}
.optionsDiv button {
2023-08-09 23:43:28 +01:00
width: 100%;
2023-07-22 17:15:59 +01:00
padding: 10px;
2023-07-22 19:03:37 +01:00
margin-right: 5px;
2023-08-09 23:43:28 +01:00
margin-bottom: 7px;
2023-07-22 17:15:59 +01:00
padding-left: 15px;
padding-right: 15px;
2023-08-26 17:57:56 +01:00
color: var(--theme-text-color);
2023-07-22 17:15:59 +01:00
border: none;
text-decoration: none;
2023-08-26 17:57:56 +01:00
background-color: var(--theme-color);
2023-07-22 17:15:59 +01:00
border-radius: 8px;
}
2023-08-09 23:43:28 +01:00
.optionsDiv .normalButton {
width: auto;
margin-bottom: 0px;
}
.optionsDiv .lastButton {
margin-bottom: 0px;
}
.optionsDiv input {
width: calc(100% - 12px);
height: 25px;
background-color: ffffff;
padding-left: 5px;
padding-right: 5px;
margin-bottom: 7px;
border: solid;
2023-08-26 17:57:56 +01:00
border-color: var(--border-color);
border-width: 1px;
border-radius: 8px;
}
2023-08-28 19:18:14 +01:00
.optionsDiv .mfacheckbox {
display: inline;
margin: 0;
margin-left: 5px;
margin-bottom: 12px;
padding: 0;
height: 17px;
width: 17px;
}
.optionsDiv input:focus {
outline: 0;
2023-08-26 17:57:56 +01:00
border-color: var(--theme-color);
}
2023-08-28 19:18:14 +01:00
.optionsDiv code {
padding: 7px;
font-size: 14px;
border-radius: 8px;
background-color: var(--session-color);
}
2023-08-02 20:08:11 +01:00
.optionsDiv progress {
width: 100%;
2023-08-26 17:57:56 +01:00
background-color: var(--session-color);
2023-08-02 20:08:11 +01:00
border: none;
border-radius: 99px;
height: 7px;
}
2023-08-04 18:48:26 +01:00
2023-08-02 20:08:11 +01:00
.optionsDiv progress::-moz-progress-bar {
2023-08-26 17:57:56 +01:00
background: var(--theme-color);
2023-08-02 20:08:11 +01:00
}
2023-08-04 18:48:26 +01:00
2023-08-02 20:08:11 +01:00
.optionsDiv progresss::-webkit-progress-value {
2023-08-26 17:57:56 +01:00
background: var(--theme-color);
2023-08-02 20:08:11 +01:00
}
2023-07-22 17:15:59 +01:00
.optionsDiv .exit {
2023-07-22 19:03:37 +01:00
position: absolute;
2023-08-02 20:08:11 +01:00
right: 5px;
2023-07-22 19:03:37 +01:00
width: 40px;
height: 40px;
font-size: 16px;
2023-08-26 17:57:56 +01:00
background-color: var(--exit-color);
color: var(--text-color);
2023-07-22 19:03:37 +01:00
border-radius: 100%;
2023-07-22 17:15:59 +01:00
}
2023-08-09 23:43:28 +01:00
.optionsDiv img {
height: 18px;
padding-right: 5px;
filter: invert(var(--invert))
2023-08-09 23:43:28 +01:00
}
.optionsDiv .section {
width: 100%;
height: 1px;
2023-08-26 17:57:56 +01:00
background-color: var(--border-color);
2023-08-09 23:43:28 +01:00
margin-top: 2px;
margin-bottom: 10px;
}
2023-08-19 14:17:23 +01:00
.sessionDiv div {
2023-08-26 17:57:56 +01:00
background-color: var(--session-color);
2023-08-19 14:17:23 +01:00
border-radius: 8px;
margin-bottom: 5px;
padding: 10px;
height: 35px;
}
2023-08-26 17:57:56 +01:00
2023-08-19 14:17:23 +01:00
.sessionDiv div p {
display: inline;
position: absolute;
transform: translateY(-7.5px);
}
2023-08-26 17:57:56 +01:00
2023-08-19 14:17:23 +01:00
.sessionDiv div button {
position: absolute;
border-radius: 99px;
right: 15px;
width: 40px;
height: 40px;
font-size: 16px;
transform: translateY(-2px);
}
2023-08-26 17:57:56 +01:00
2023-08-19 14:17:23 +01:00
.sessionDiv img {
display: inline;
filter: none;
height: 100%;
}
2023-07-21 20:52:06 +01:00
/* Sign up/log in div */
.inoutdiv {
margin: 10%;
padding: 15px;
}
.inoutdiv input {
width: calc(100% - 20px);
2023-08-03 20:33:02 +01:00
height: 30px;
2023-07-21 20:52:06 +01:00
margin-bottom: 10px;
padding-left: 10px;
padding-right: 10px;
2023-08-03 17:41:58 +01:00
border: solid;
2023-08-26 17:57:56 +01:00
border-color: var(--border-color);
2023-07-21 20:52:06 +01:00
border-width: 1px;
border-radius: 8px;
}
.inoutdiv button {
2023-08-26 17:57:56 +01:00
background-color: var(--theme-color);
2023-08-03 17:41:58 +01:00
color: white;
2023-07-21 20:52:06 +01:00
padding: 10px;
2023-08-03 17:41:58 +01:00
padding-left: 20px;
padding-right: 20px;
2023-08-03 20:33:02 +01:00
border: none;
2023-07-21 20:52:06 +01:00
border-radius: 8px;
2023-08-03 20:33:02 +01:00
font-size: 14px;
2023-07-21 20:52:06 +01:00
}
.inoutdiv a {
color: grey;
text-align: center;
}
.hidden {
display: none;
}
2023-08-16 14:42:08 +01:00
.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;
}
2023-07-21 20:52:06 +01:00
/* main */
.mainDiv {
text-align: center;
}
2023-07-22 17:15:59 +01:00
2023-08-16 14:42:08 +01:00
.startDiv {
text-align: left;
margin-top: 8vh;
margin-left: 7vh;
}
2023-07-21 20:52:06 +01:00
.mainDiv a {
2023-08-16 14:42:08 +01:00
padding: 15px;
padding-left: 20px;
padding-right: 20px;
margin-right: 5px;
2023-07-21 20:52:06 +01:00
color: white;
text-decoration: none;
2023-08-26 17:57:56 +01:00
background-color: var(--theme-color);
2023-07-21 20:52:06 +01:00
border-radius: 8px;
}
2023-07-22 17:15:59 +01:00
2023-07-21 20:52:06 +01:00
.mainDiv .feature {
2023-08-26 17:57:56 +01:00
width: calc(100% - 7vh - 7vh - 3.5vh);
2023-07-21 20:52:06 +01:00
margin-bottom: 10px;
2023-08-26 17:57:56 +01:00
margin-left: 7vh;
margin-right: 7vh;
2023-08-16 14:42:08 +01:00
padding-left: 10px;
padding-right: 10px;
2023-08-26 17:57:56 +01:00
border: solid;
border-radius: 8px;
border-width: 1px;
border-color: var(--border-color);
2023-08-16 14:42:08 +01:00
padding-top: 15px;
padding-bottom: 15px;
2023-07-21 20:52:06 +01:00
font-size: 17px;
}
2023-07-22 17:15:59 +01:00
2023-07-21 20:52:06 +01:00
.mainDiv .green {
background-color: #ebffeb;
}
2023-07-22 17:15:59 +01:00
2023-07-21 20:52:06 +01:00
.mainDiv .yellow {
background-color: #ffffeb;
}
2023-07-22 17:15:59 +01:00
2023-07-21 20:52:06 +01:00
.mainDiv img {
2023-08-16 14:42:08 +01:00
position: fixed;
right: 7vh;
top: 8vh;
border-radius: 8px;
}
.links {
text-align: center;
padding: 10px;
}
2023-08-26 17:57:56 +01:00
2023-08-16 14:42:08 +01:00
.links a {
margin-left: 5px;
text-decoration: none;
}
2023-08-26 17:57:56 +01:00
2023-08-16 14:42:08 +01:00
.links a:hover {
text-decoration: dashed;
2023-07-21 20:52:06 +01:00
}