Skip to content

Commit 0b90790

Browse files
committed
added css for responsiveness across 1024px and 768px screen width
1 parent 8b11c84 commit 0b90790

File tree

1 file changed

+47
-1
lines changed

1 file changed

+47
-1
lines changed

assets/css/style.css

+47-1
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,50 @@ h1,h2,h3,h4,h5,h6 {
9292
border: 5px inset #000000;
9393
}
9494

95-
/* ---------------- resizing on different screen sizes */
95+
/* ---------------- responsive design for different screen sizes */
96+
97+
@media screen and (max-width: 1024px) {
98+
.button-left {
99+
left: 20%;
100+
}
101+
102+
.button-right {
103+
left: 47.5%;
104+
}
105+
106+
#start {
107+
top: 25%;
108+
}
109+
}
110+
111+
@media screen and (max-width: 768px) {
112+
113+
.container {
114+
height: 8rem;
115+
}
116+
117+
.start-container {
118+
height: 7rem;
119+
}
120+
121+
.node, #start {
122+
width: 8rem;
123+
height: 8rem;
124+
border-width: 4px;
125+
border-radius: 4rem;
126+
}
127+
128+
.button-left {
129+
left: 20%;
130+
}
131+
132+
.button-right {
133+
left: 45%;
134+
}
135+
136+
#start {
137+
height: 3rem;
138+
top: 25%;
139+
left: 40%;
140+
}
141+
}

0 commit comments

Comments
 (0)