* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
width: 100%;
height: 100vh;
background-color: var(--A1);
font-family: "Segoe UI","ubuntu", sans-serif;
padding: 24px;
position: relative;
padding: 0;
margin: 0;
}
ul {
padding: 0;
margin: 0;
list-style: none;
}
h1,
h2,
h3,
p,
a,
blockquote,
dd {
margin: 0;
padding: 0;
}
img[src$=".webp"]{
border-radius: 4px;
}
<link rel="stylesheet" type="text/css" href="style.css">3
Teste 1
Teste 2
Teste 3
<section class="seletor-filho-direto">
<p> Teste 1</p>
<p> Teste 2</p>
<section>
<p> Teste 3</p>
</section>
</section>
<style>
.seletor-filho-direto > p {
color: var(--B1);
}
</style>
Teste 1
Teste 2
Teste 3
<section class="seletor-ao-lado">
<p> Teste 1</p>
<p> Teste 2</p>
<section>
<p> Teste 3</p>
</section>
</section>
<style>
.seletor-ao-lado p + p {
color: var(--B1);
}
</style>
Teste 1
Teste 2
Teste 3
<div class="seletor-nthchild">
<p>Teste 1</p>
<p>Teste 2</p>
<p>Teste 3</p>
</div>
<style>
.seletor-nthchild p:nth-child(1) {
color: var(--B1);
}
.seletor-nthchilds p:last-child {
color: var(--B1);
</style>
<div class="container-after">
<h1>E</h1>
</div>
<div class="container-before">
<h1>E</h1>
</div>
<style>
.container-before,
.container-after {
display: grid;
border: 1px solid var(--A3);
height: 200px;
position: relative;
border-radius: 12px;
place-items: center;
margin-bottom: 16px;
}
.container-after::after {
content: "";
position: absolute;
top: 16%;
left: 50%;
background: #4492f8bf;
width: 50px;
height: 50px;
border-radius: 4px;
transform: translateX(-50%);
}
.container-before::before {
content: "";
position: absolute;
top: 16%;
left: 50%;
background: #4492f8bf;
width: 50px;
height: 50px;
border-radius: 4px;
transform: translateX(-50%);
}
</style>
Teste com Inline Block
Teste com Inline
.inline-block {
color: var(--B1);
background-color: var(--A3);
display: inline-block;
text-align: center;
border-radius: 5px;
width: 160px;
padding: 4px;
}
.inline {
color: var(--B1);
background-color: var(--A3);
display: inline;
text-align: center;
border-radius: 5px;
width: 160px;
padding: 4px;
}
.display-grid{
display: grid;
grid-template-columns: 100px 2fr 1fr 1fr;
gap: 20px;
}
.bloco{
background-color: var(--A3);
border-radius: 4px;
}
Campo: A
Campo: B
Campo: C
Campo: D
Campo: E
.display-grid-gradeados {
display: grid;
grid-template-areas:
"a a a b b"
"a a a b b"
"c c d b b"
"c c e e e"
"c c e e e";
gap: 20px;
}
.item-a{
grid-area: a;
}
.item-b{
grid-area: b;
}
.item-c{
grid-area: c;
}
.item-d{
grid-area: d;
}
.item-e{
grid-area: e;
}