2024-03-07 11:49:55 +01:00
|
|
|
body {
|
2024-03-07 13:35:03 +01:00
|
|
|
background-color: var(--background-color, #807a00);
|
2024-03-07 11:49:55 +01:00
|
|
|
display: grid;
|
|
|
|
place-items: center;
|
2024-03-07 13:35:03 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
/* font-size: 3rem; */
|
|
|
|
/* text-align: center; */
|
|
|
|
color: var(--font-color-title, pink);
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
color: var(--font-color-sentence, green);
|
|
|
|
}
|
|
|
|
|
|
|
|
footer p {
|
|
|
|
color: powderblue;
|
2024-03-07 11:49:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
|
|
|
display: grid;
|
|
|
|
place-items: center;
|
|
|
|
gap: 3rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
margin: 0 auto;
|
2024-03-07 13:35:03 +01:00
|
|
|
|
2024-03-07 14:43:32 +01:00
|
|
|
position: relative;
|
|
|
|
|
|
|
|
/* border-color: var(--border-color, pink);
|
2024-03-07 13:35:03 +01:00
|
|
|
border-radius: 10px;
|
|
|
|
border-width: 3px;
|
2024-03-07 14:43:32 +01:00
|
|
|
border-style: solid; */
|
2024-03-07 11:49:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
footer {
|
2024-03-07 12:20:24 +01:00
|
|
|
margin-top: 5rem;
|
2024-03-07 11:49:55 +01:00
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
|
|
|
}
|
2024-03-07 14:43:32 +01:00
|
|
|
|
|
|
|
.corner-only-border {
|
|
|
|
--b: 0.5em; /* border width */
|
|
|
|
--c: 5em; /* corner size */
|
|
|
|
--r: 2em; /* corner rounding */
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
margin: 1em auto;
|
|
|
|
border: solid var(--b) transparent;
|
|
|
|
padding: 1em;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
position: absolute;
|
|
|
|
z-index: -1;
|
|
|
|
inset: calc(-1 * var(--b));
|
|
|
|
border: inherit;
|
|
|
|
border-radius: var(--r);
|
|
|
|
background: linear-gradient(orange, deeppink, purple) border-box;
|
|
|
|
--corner: conic-gradient(
|
|
|
|
from -90deg at var(--c) var(--c),
|
|
|
|
red 25%,
|
|
|
|
#0000 0
|
|
|
|
)
|
|
|
|
0 0 / calc(100% - var(--c)) calc(100% - var(--c)) border-box;
|
|
|
|
--inner: conic-gradient(red 0 0) padding-box;
|
|
|
|
-webkit-mask: var(--corner), var(--inner);
|
|
|
|
-webkit-mask-composite: source-out;
|
|
|
|
mask:
|
|
|
|
var(--corner) subtract,
|
|
|
|
var(--inner);
|
|
|
|
content: "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.basic-border {
|
|
|
|
border-color: var(--border-color, pink);
|
|
|
|
border-radius: 10px;
|
|
|
|
border-width: 3px;
|
|
|
|
border-style: solid;
|
|
|
|
padding: 1rem;
|
|
|
|
}
|