odin-project-notes/projects/sign-up-form/style.css
Pablo Martin 88d481b998 wip
2025-05-06 15:01:16 +02:00

188 lines
No EOL
2.7 KiB
CSS

@font-face {
font-family: norse;
src: url(./Norse-Bold.otf);
}
:root {
--main-color: rgb(80, 126, 80);
font-family: Arial, Helvetica, sans-serif;
}
body {
background-color: var(--main-color);
padding: 0;
margin: 0;
}
.full-screen-container {
width: 100vw;
height: 100vh;
}
.left-panel {
position: absolute;
top: 0;
left: 0;
width: 33%;
height: 100vh;
background-color: var(--main-color);
margin: 0;
padding: 0;
}
.picture-container {
width: 100%;
height: 100%;
overflow: hidden;
position: relative;
display: flex;
justify-content: center;
align-items: center;
position: absolute;
}
.left-panel-pic {
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 {
position: absolute;
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%;
left: calc(33% - 1rem);
}
.picture-caption {
color: white;
font-weight: 300;
}
.right-panel {
width: 67%;
background-color: rgb(255, 255, 255);
margin: 0;
padding: 0;
position: absolute;
left: 33%;
top: 0;
height: 100vh;
}
.form-area {
position: absolute;
background-color: white;
top: 33%;
left: 0%;
height: 33vh;
width: 100%;
}
.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;
}
.right-panel-left-margin {
left: 5%;
}
.top-right-area {
position: relative;
height: 33vh;
}
.right-panel-header {
position: absolute;
margin: 0;
}
.right-panel-header.first {
top: 45%;
max-width: 50%;
}
.right-panel-header.second {
top: 75%;
}
.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);
}
.subtle-shadow {
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}