odin-project-notes/projects/sign-up-form/style.css

188 lines
2.7 KiB
CSS
Raw Normal View History

2025-04-23 09:11:15 +02:00
@font-face {
font-family: norse;
src: url(./Norse-Bold.otf);
}
2025-04-23 08:42:19 +02:00
:root {
2025-05-05 15:20:30 +02:00
--main-color: rgb(80, 126, 80);
2025-04-29 18:02:17 +02:00
font-family: Arial, Helvetica, sans-serif;
2025-04-22 16:21:26 +02:00
}
body {
2025-04-23 08:42:19 +02:00
background-color: var(--main-color);
padding: 0;
margin: 0;
}
.full-screen-container {
width: 100vw;
height: 100vh;
}
.left-panel {
2025-04-23 09:11:15 +02:00
position: absolute;
top: 0;
left: 0;
2025-04-23 08:42:19 +02:00
width: 33%;
height: 100vh;
background-color: var(--main-color);
margin: 0;
padding: 0;
2025-04-23 09:11:15 +02:00
}
.picture-container {
width: 100%;
height: 100%;
2025-04-23 08:42:19 +02:00
overflow: hidden;
position: relative;
display: flex;
justify-content: center;
align-items: center;
position: absolute;
}
.left-panel-pic {
2025-04-23 09:11:15 +02:00
margin: 0;
object-fit: cover;
position: absolute;
}
.odin-banner {
position: absolute;
top: 20%;
width: 100%;
height: 20%;
background-color: rgba(255, 255, 255, 0.048);
}
.odin-logo {
position: absolute;
top: 10%;
left: 20%;
height: 80%;
margin:0;
padding: 0;
}
.odin-logo-text {
2025-04-23 08:42:19 +02:00
position: absolute;
2025-04-23 09:11:15 +02:00
top: calc(50% - 4rem);
color: white;
font-size: 8rem;
left: 40%;
margin: 0;
padding: 0;
font-family: norse;
}
.picture-caption-container {
position: absolute;
bottom: 0%;
2025-04-29 18:02:17 +02:00
left: calc(33% - 1rem);
2025-04-23 09:11:15 +02:00
}
.picture-caption {
color: white;
2025-04-29 18:02:17 +02:00
font-weight: 300;
2025-04-23 08:42:19 +02:00
}
.right-panel {
width: 67%;
background-color: antiquewhite;
margin: 0;
padding: 0;
2025-04-23 09:11:15 +02:00
position: absolute;
2025-04-23 08:42:19 +02:00
left: 33%;
top: 0;
2025-04-29 18:02:17 +02:00
height: 100vh;
}
.form-area {
position: absolute;
background-color: white;
top: 33%;
left: 0%;
height: 33vh;
width: 100%;
}
2025-05-05 15:20:30 +02:00
.form-contents {
position: relative;
width: 60%;
}
.form-fields {
display: grid;
grid-template-columns: repeat(2, auto);
}
.form-field-container {
margin-bottom: 30px;
}
.form-field-header {
text-transform: uppercase;
color: gray;
margin: 0;
}
.form-field-value-container {
border: 1px solid rgb(218, 218, 218);
border-radius: 5px;
height: 25px;
width: 250px;
}
.form-field-value-container:focus {
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
border: 0px solid blue;
}
2025-04-29 18:02:17 +02:00
.right-panel-left-margin {
left: 5%;
}
.top-right-area {
position: relative;
height: 33vh;
2025-04-23 08:42:19 +02:00
}
2025-04-29 18:02:17 +02:00
.right-panel-header {
position: absolute;
margin: 0;
}
.right-panel-header.first {
top: 45%;
2025-05-05 15:20:30 +02:00
max-width: 50%;
2025-04-29 18:02:17 +02:00
}
.right-panel-header.second {
top: 75%;
}
2025-05-05 15:20:30 +02:00
.create-account-button {
position: absolute;
bottom: 25%;
padding: 10px 30px;
border-radius: 10px;
color: white;
font-weight: bold;
}
.existing-account-nudge-text {
position: absolute;
bottom: 18%;
}
.bg-main {
background-color: var(--main-color);
}
.text-color-main {
color: var(--main-color);
2025-04-29 18:02:17 +02:00
}
.subtle-shadow {
2025-05-05 15:20:30 +02:00
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
2025-04-29 18:02:17 +02:00
}