Files
web/css/base.css
T

393 lines
5.2 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 {
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 {
font-size: 1vw;
}
small {
font-size: .75vw;
}
a {
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 {
margin: 0 auto;
margin-top: 50px;
padding: 18px;
height: max-content;
width: 60%;
border-radius: 18px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.form_card {
width: 40%;
}
.form_card form {
width: 80%;
}
.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;
}
.tag {
margin: 15px;
padding: 10px;
border-radius: 18px;
border: 2px solid orange;
text-decoration: none;
}
.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 {
width: 32px;
height: 32px;
border: none;
background: none;
font-size: 1.5vw;
}
#theme-toggle * {
transition-duration: 500ms;
}
#theme-toggle *:hover {
color: orange;
}
.article {
width: 50%;
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;
outline: none;
}
textarea {
border-radius: 18px;
height: 500px;
}
.form_tags {}
.form_checkbox_container {
display: block;
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;
}
@media (max-width: 980px) {
h1 {
font-size: 4vw;
}
p {
font-size: 2vw;
}
.card {
margin: 75% auto;
}
}