styling crc card: better shadow, better inputs

This commit is contained in:
Julien Calixte
2022-12-20 18:54:48 +01:00
parent e4860a6a45
commit f6fc645802
2 changed files with 29 additions and 6 deletions

View File

@@ -20,6 +20,12 @@
--vt-c-text-light-2: rgba(60, 60, 60, 0.66); --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
--vt-c-text-dark-1: var(--vt-c-white); --vt-c-text-dark-1: var(--vt-c-white);
--vt-c-text-dark-2: rgba(235, 235, 235, 0.9); --vt-c-text-dark-2: rgba(235, 235, 235, 0.9);
--shadow: rgba(0, 0, 0, 0.2) 0px 1px 2px,
rgba(0, 0, 0, 0.16) 0px 2px 4px,
rgba(0, 0, 0, 0.12) 0px 4px 8px,
rgba(0, 0, 0, 0.08) 0px 8px 16px,
rgba(0, 0, 0, 0.07) 0px 16px 32px;
} }
/* semantic color variables for this project */ /* semantic color variables for this project */
@@ -102,6 +108,7 @@ h6 {
h1 { h1 {
font-size: 1.8em; font-size: 1.8em;
font-weight: bold;
} }
h2 { h2 {
@@ -138,4 +145,22 @@ iframe.youtube {
width: 100%; width: 100%;
height: 500px; height: 500px;
max-height: 35vh; max-height: 35vh;
}
input {
box-shadow: inset 0 .0625em .125em rgba(10, 10, 10, .05);
max-width: 100%;
background-color: #fff;
border-color: #dbdbdb;
border-radius: .375em;
color: #363636;
border: 1px solid transparent;
align-items: center;
display: inline-flex;
height: 2rem;
justify-content: flex-start;
line-height: 1.5;
margin: 0;
padding: 0 0.5rem;
} }

View File

@@ -142,11 +142,12 @@ const removeCard = () => {
<style scoped lang="scss"> <style scoped lang="scss">
.crc-card { .crc-card {
min-height: 200px; min-height: 200px;
background-color: #561b00; background-color: var(--vt-c-black-mute);
padding: 1rem; padding: 1rem;
margin: 1rem 0; margin: 1rem 0;
border-radius: 0.3em; border-radius: 0.3em;
font-family: var(--code-font-family); font-family: var(--code-font-family);
box-shadow: var(--shadow);
hr { hr {
margin-bottom: 1rem; margin-bottom: 1rem;
@@ -164,7 +165,7 @@ const removeCard = () => {
.responsabilities { .responsabilities {
hr { hr {
margin: 0 1rem; margin-right: 1rem;
} }
} }
@@ -179,9 +180,6 @@ const removeCard = () => {
} }
input.component-name { input.component-name {
background-color: rgb(76, 71, 71); margin-bottom: 0.5rem;
padding: 0 0.5rem;
border-radius: 0.5rem;
color: white;
} }
</style> </style>