Skip to content

Commit d0859c8

Browse files
committed
adaptacao para mobile
1 parent 78fb84f commit d0859c8

File tree

4 files changed

+56
-0
lines changed

4 files changed

+56
-0
lines changed

css/style.css

+54
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,58 @@ h2 {
111111

112112
.none {
113113
display: none;
114+
}
115+
116+
@media screen and (max-width: 600px) {
117+
body {
118+
background-image: url('../img/min-bg.jpg');
119+
background-size:100cqmax;
120+
}
121+
.todo-container {
122+
max-width: 90%;
123+
}
124+
125+
.nova-atividade > form {
126+
flex-direction: column;
127+
}
128+
129+
#input-atividade, #input-data-atividade {
130+
margin-bottom: 10px;
131+
}
132+
133+
.nova-atividade > input, select, button {
134+
margin-bottom: 10px;
135+
}
136+
137+
.lista-de-atividades ul > li {
138+
flex-direction: column;
139+
width: 100%;
140+
}
141+
142+
li > div {
143+
width: 100% !important;
144+
}
145+
146+
li> div > label {
147+
margin-left: 10px;
148+
font-weight: bold;
149+
}
150+
151+
li > p {
152+
font-style: italic;
153+
border-top: 1px solid #CCC;
154+
padding: 5px;
155+
}
156+
157+
.lista-de-atividades ul > li > div:last-child > button{
158+
margin: 0;
159+
}
160+
161+
.lista-de-atividades ul > li > div:last-child > button:last-child{
162+
margin-left: 10px;
163+
}
164+
165+
.editar-atividade > form {
166+
flex-direction: column;
167+
}
114168
}

img/bg - Copia.jpg

3.16 MB
Loading

img/min-bg.jpg

1.75 MB
Loading

index.html

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<head>
55
<meta charset="UTF-8">
66
<title>To-Do List</title>
7+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
8+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
79
<link rel="stylesheet" href="css/style.css">
810
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css" integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
911
<link rel="shortcut icon" href="img/list-solid.svg" type="image/x-icon">

0 commit comments

Comments
 (0)