Skip to content

Commit 96c5773

Browse files
committed
2-DR1-TP2.13
1 parent edad367 commit 96c5773

File tree

2 files changed

+88
-0
lines changed

2 files changed

+88
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>DR2 - TP 2.13</title>
7+
<link rel="stylesheet" href="style.css">
8+
</head>
9+
<body>
10+
<div class="container">
11+
<button><span>Botão 1</span> <span>[1]</span></button>
12+
<button><span>Botão 2</span> <span>[2]</span></button>
13+
<button><span>Botão 3</span> <span>[3]</span></button>
14+
</div>
15+
</body>
16+
</html>
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
* {
2+
margin: 0;
3+
padding: 0;
4+
box-sizing: border-box;
5+
}
6+
7+
body {
8+
width: 100vw;
9+
height: 100vh;
10+
11+
background-color: steelblue;
12+
}
13+
14+
.container {
15+
display: flex;
16+
flex-direction: column;
17+
justify-content: center;
18+
align-items: center;
19+
gap: 24px;
20+
21+
height: 100%;
22+
23+
button {
24+
font-size: 1.3rem;
25+
26+
background-color: rgb(214, 54, 86);
27+
border: none;
28+
border-radius: 8px;
29+
color: white;
30+
cursor: pointer;
31+
32+
& > span:last-child {
33+
display: none;
34+
}
35+
36+
&:hover {
37+
background-color: rgb(180, 45, 72);
38+
}
39+
}
40+
}
41+
42+
@media screen and (min-width: 924px) {
43+
.container {
44+
flex-direction: row;
45+
gap: 42px;
46+
}
47+
}
48+
49+
@media screen and (pointer: none) {
50+
.container button {
51+
background-color: lightgreen;
52+
53+
> span:last-child {
54+
display: inline;
55+
}
56+
}
57+
}
58+
59+
@media screen and (pointer: coarse) {
60+
.container button {
61+
background-color: rgb(255, 221, 26);
62+
color: black;
63+
64+
padding: 28px 56px;
65+
}
66+
}
67+
68+
@media screen and (pointer: fine) {
69+
.container button {
70+
padding: 16px 32px;
71+
}
72+
}

0 commit comments

Comments
 (0)