648 lines
8.9 KiB
CSS
648 lines
8.9 KiB
CSS
@font-face {
|
|
font-family: 'Hack Nerd Font Mono';
|
|
src: url('/home/violet/documents/development/vintagecoding.net/resources/HackNerdFontMono-Regular.ttf') format('ttf');
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
|
|
* {
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
body {
|
|
padding-bottom: 50px;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
p,
|
|
small,
|
|
label,
|
|
input,
|
|
textarea,
|
|
a,
|
|
.modal_button,
|
|
th,
|
|
td {
|
|
font-family: 'HackNerdFontMono', Hack, sans-serif;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 5vw;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 4vw;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 3vw;
|
|
}
|
|
|
|
h4 {
|
|
font-size: 2vw;
|
|
}
|
|
|
|
h5 {
|
|
font-size: 1.5vw;
|
|
}
|
|
|
|
p,
|
|
a,
|
|
label,
|
|
.modal_button {
|
|
font-size: 1vw;
|
|
}
|
|
|
|
small {
|
|
font-size: .75vw;
|
|
}
|
|
|
|
a,
|
|
.modal_button {
|
|
color: orange;
|
|
transition-duration: 1s;
|
|
}
|
|
|
|
a.fill_div {
|
|
display: block;
|
|
height: 100%;
|
|
width: 100%;
|
|
text-decoration: none;
|
|
}
|
|
|
|
nav {
|
|
padding: 0;
|
|
margin: 0px 30px 15px 30px;
|
|
}
|
|
|
|
nav ul {
|
|
padding: 0;
|
|
margin: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
nav ul li {
|
|
display: inline-block;
|
|
}
|
|
|
|
nav ul li a {
|
|
font-size: 2vw;
|
|
font-weight: 800;
|
|
|
|
text-decoration: none;
|
|
display: block;
|
|
height: 100%;
|
|
width: 100%;
|
|
padding: 15px;
|
|
|
|
transition-duration: 500ms;
|
|
}
|
|
|
|
nav ul li a:hover {
|
|
color: orange;
|
|
}
|
|
|
|
nav form {
|
|
padding: 15px;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.nav_right_hand {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.nav_right_hand * {
|
|
margin: 0px 15px 0px 15px;
|
|
}
|
|
|
|
code {
|
|
padding: 1px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.line {
|
|
height: 1px;
|
|
width: 100%;
|
|
margin-top: 5px;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.row_no_margin {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
margin: 0;
|
|
}
|
|
|
|
.row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
width: 100%;
|
|
margin: 15px 0px 15px 0px;
|
|
}
|
|
|
|
.center-h {
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.article_card,
|
|
.form_card,
|
|
.view_card {
|
|
margin: 0 auto;
|
|
margin-top: 50px;
|
|
width: 70%;
|
|
padding: 18px;
|
|
height: max-content;
|
|
border-radius: 18px;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
transition-duration: 1s;
|
|
}
|
|
|
|
.article_card {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.form_card {
|
|
width: 50%;
|
|
}
|
|
|
|
.form_card form {
|
|
width: 80%;
|
|
}
|
|
|
|
.view_card form {
|
|
width: 95%;
|
|
padding: 15px;
|
|
}
|
|
|
|
form table {
|
|
border-collapse: separate;
|
|
border-spacing: 5px;
|
|
width: 100%;
|
|
}
|
|
|
|
tbody tr {
|
|
transition-duration: 1s;
|
|
}
|
|
|
|
tbody tr:hover {
|
|
outline: solid 3px orange;
|
|
}
|
|
|
|
tbody tr td {
|
|
text-align: center;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 15px 0px 15px 5px;
|
|
}
|
|
|
|
table tr td label {
|
|
width: max-content;
|
|
}
|
|
|
|
.card_info_box {
|
|
display: flex;
|
|
}
|
|
|
|
.col-right {
|
|
margin-right: 25px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: end;
|
|
}
|
|
|
|
.card_pic_box {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.button {
|
|
font-size: 1vw;
|
|
background-color: transparent;
|
|
padding: 15px;
|
|
text-decoration: none;
|
|
border-radius: 12px;
|
|
transition-duration: 1s;
|
|
border: 3px solid orange;
|
|
}
|
|
|
|
.button:hover {
|
|
box-shadow: 0 2px 4px 0 rgba(255, 165, 0, 0.3), 0 3px 8px 0 rgba(255, 165, 0, 0.7);
|
|
}
|
|
|
|
.narrow {
|
|
width: 20%;
|
|
}
|
|
|
|
.tag {
|
|
margin: 15px;
|
|
padding: 10px;
|
|
border-radius: 18px;
|
|
border: 2px solid orange;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.tag:hover {
|
|
box-shadow: 0 2px 4px 0 rgba(255, 165, 0, 0.3), 0 3px 8px 0 rgba(255, 165, 0, 0.7);
|
|
}
|
|
|
|
.tag_row {}
|
|
|
|
.tag_box {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.card_profile_picture {
|
|
height: 64px;
|
|
width: auto;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.underline {
|
|
text-decoration: underline;
|
|
text-decoration-thickness: 3px;
|
|
text-decoration-color: orange;
|
|
}
|
|
|
|
#theme-toggle,
|
|
label i {
|
|
width: 32px;
|
|
height: 32px;
|
|
border: none;
|
|
background: none;
|
|
font-size: 1.5vw;
|
|
}
|
|
|
|
#theme-toggle *,
|
|
label i {
|
|
transition-duration: 500ms;
|
|
}
|
|
|
|
#theme-toggle *:hover,
|
|
label i:hover {
|
|
color: orange;
|
|
}
|
|
|
|
label i {
|
|
width: 32px;
|
|
height: 32px;
|
|
font-size: 1.5vw;
|
|
transition-duration: 500ms;
|
|
}
|
|
|
|
.article {
|
|
width: 60%;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.article ul li {
|
|
margin-left: 50px;
|
|
}
|
|
|
|
#compose {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: left;
|
|
}
|
|
|
|
input,
|
|
textarea {
|
|
border-radius: 12px;
|
|
width: 100%;
|
|
padding: 15px;
|
|
margin: 15px 15px 15px 0px;
|
|
box-sizing: border-box;
|
|
transition-duration: 500ms;
|
|
}
|
|
|
|
input:focus,
|
|
textarea:focus,
|
|
input:hover,
|
|
textarea:hover {
|
|
border: 3px solid orange;
|
|
box-shadow: 0 2px 4px 0 rgba(255, 165, 0, 0.3), 0 3px 8px 0 rgba(255, 165, 0, 0.7);
|
|
outline: none;
|
|
}
|
|
|
|
textarea {
|
|
border-radius: 18px;
|
|
height: 500px;
|
|
}
|
|
|
|
.checkboxes {}
|
|
|
|
input[type="radio"] {
|
|
display: none;
|
|
}
|
|
|
|
.form_checkbox_container {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
padding-left: 35px;
|
|
margin: 15px 15px 15px 0px;
|
|
cursor: pointer;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
|
|
height: 29px;
|
|
width: max-content;
|
|
|
|
}
|
|
|
|
.checkmark {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 25px;
|
|
width: 25px;
|
|
|
|
}
|
|
|
|
.form_checkbox_container input {
|
|
position: absolute;
|
|
opacity: 0;
|
|
cursor: pointer;
|
|
height: 0;
|
|
width: 0;
|
|
}
|
|
|
|
/* Create the checkmark/indicator (hidden when not checked) */
|
|
.checkmark:after {
|
|
content: "";
|
|
position: absolute;
|
|
display: none;
|
|
}
|
|
|
|
/* Show the checkmark when checked */
|
|
.form_checkbox_container input:checked~.checkmark:after {
|
|
display: block;
|
|
}
|
|
|
|
/* When the checkbox is checked, add a blue background */
|
|
.form_checkbox_container input:checked~.checkmark {
|
|
background-color: orange;
|
|
}
|
|
|
|
/* Style the checkmark/indicator */
|
|
.form_checkbox_container .checkmark:after {
|
|
left: 9px;
|
|
top: 5px;
|
|
width: 5px;
|
|
height: 10px;
|
|
border: solid white;
|
|
border-width: 0 3px 3px 0;
|
|
-webkit-transform: rotate(45deg);
|
|
-ms-transform: rotate(45deg);
|
|
transform: rotate(45deg);
|
|
}
|
|
|
|
input[type="file"] {
|
|
display: none;
|
|
}
|
|
|
|
.upload_button {
|
|
border-radius: 12px;
|
|
display: inline-block;
|
|
padding: 6px 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.error {
|
|
color: red;
|
|
border: 3px solid red;
|
|
border-radius: 12px;
|
|
padding: 15px;
|
|
margin: 15px 15px 15px 0px;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.user_view {
|
|
width: 70%;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.user_view h1,
|
|
.user_view .card_pic_box {
|
|
margin: 15px;
|
|
}
|
|
|
|
.user_view .line {
|
|
margin: 0px 0px 30px 0px;
|
|
}
|
|
|
|
.user_actions {
|
|
margin: 15px;
|
|
padding: 15px;
|
|
display: flex;
|
|
justify-content: space-evenly;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.form_card h3,
|
|
.form_card h5,
|
|
.view_card h3,
|
|
.view_card h5 {
|
|
padding-bottom: 15px;
|
|
}
|
|
|
|
.profile_picture {
|
|
height: 128px;
|
|
width: auto;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
/* The Modal (background) */
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 1;
|
|
padding-top: 100px;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: auto;
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
/* Modal Content */
|
|
.form_card {
|
|
position: relative;
|
|
}
|
|
|
|
.modal_content {
|
|
display: fit-content;
|
|
margin: auto;
|
|
width: 40%;
|
|
height: max-content;
|
|
}
|
|
|
|
.modal_content .form_card {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* The Close Button */
|
|
.modal_close {
|
|
position: absolute;
|
|
font-size: 48px;
|
|
top: 15px;
|
|
right: 30px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.modal_close:hover,
|
|
.modal_close:focus {
|
|
color: orange;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.modal_button {
|
|
background-color: transparent;
|
|
border: none;
|
|
}
|
|
|
|
#img_to_crop {
|
|
width: 70%;
|
|
height: auto;
|
|
max-width: 512px;
|
|
max-height: 512px;
|
|
|
|
user-select: none;
|
|
}
|
|
|
|
#img_crop_selection {
|
|
pointer-events: none;
|
|
|
|
height: 128px;
|
|
width: 128px;
|
|
|
|
outline: dashed 4px orange;
|
|
|
|
position: fixed;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
.corner {
|
|
position: absolute;
|
|
width: 10px;
|
|
height: 10px;
|
|
background-color: orange;
|
|
border-radius: 50%;
|
|
cursor: nwse-resize;
|
|
/* Default cursor for resizing */
|
|
pointer-events: all;
|
|
}
|
|
|
|
#corner_nw {
|
|
top: -5px;
|
|
left: -5px;
|
|
cursor: nw-resize;
|
|
}
|
|
|
|
#corner_ne {
|
|
top: -5px;
|
|
right: -5px;
|
|
cursor: ne-resize;
|
|
}
|
|
|
|
#corner_sw {
|
|
bottom: -5px;
|
|
left: -5px;
|
|
cursor: sw-resize;
|
|
}
|
|
|
|
#corner_se {
|
|
bottom: -5px;
|
|
right: -5px;
|
|
cursor: se-resize;
|
|
}
|
|
|
|
[data-href] {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.article_cards_grid {
|
|
width: 70%;
|
|
margin: 0 auto;
|
|
display: block;
|
|
}
|
|
|
|
.article_grid {
|
|
display: grid;
|
|
grid-template-columns: 15% 85%;
|
|
}
|
|
|
|
.article_toc {
|
|
margin-right: 15px;
|
|
}
|
|
|
|
/* Tooltip container */
|
|
.tooltip {
|
|
position: relative;
|
|
display: inline-block;
|
|
border-bottom: 1px dotted black;
|
|
/* If you want dots under the hoverable text */
|
|
}
|
|
|
|
/* Tooltip text */
|
|
.tooltip .tooltiptext {
|
|
visibility: hidden;
|
|
width: 120px;
|
|
background-color: black;
|
|
color: #fff;
|
|
text-align: center;
|
|
padding: 5px 0;
|
|
border-radius: 6px;
|
|
|
|
/* Position the tooltip text - see examples below! */
|
|
position: absolute;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* Show the tooltip text when you mouse over the tooltip container */
|
|
.tooltip:hover .tooltiptext {
|
|
visibility: visible;
|
|
}
|
|
|
|
#required_field {
|
|
display: none;
|
|
}
|