Skip to content

Commit d397af6

Browse files
committed
💄 Update main wrapper styles
1 parent cdd2775 commit d397af6

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

src/app/core/components/sidebar/sidebar.component.css

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
nav {
22
position: fixed;
33
height: 100%;
4-
width: 250px;
54
border-right: 1px solid #c1c1c1;
6-
padding: 6px 14px;
75
z-index: 103;
86
transition: 0.5s ease;
9-
padding: 0 0.2rem;
7+
padding: 0 1rem;
108
display: flex;
119
flex-direction: column;
1210
align-items: flex-start;
+10-8
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
11
.wrapper {
22
max-width: 1280px;
33
margin: 0 auto;
4-
}
5-
6-
.wrapper.open .container {
7-
margin-left: 80px;
4+
display: grid;
5+
grid-template-columns: minmax(80px, 20%) 1fr;
86
}
97

108
.wrapper .container {
119
min-height: 100vh;
12-
margin-left: 250px;
1310
width: auto;
11+
padding: 0 1rem 0 0;
1412
}
1513

1614
@media (max-width: 1280px) {
17-
.wrapper .container {
18-
margin-left: 78px;
15+
.wrapper {
16+
max-width: 100%;
17+
grid-template-columns: 80px auto;
1918
}
2019
}
2120

2221
@media (max-width: 768px) {
22+
.wrapper {
23+
grid-template-columns: 0 100%;
24+
}
2325
.wrapper .container {
24-
margin-left: 0 !important;
2526
margin-bottom: 55px !important;
27+
padding: 0;
2628
}
2729
}

src/app/features/home/components/websites-card/websites-card.component.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
max-width: 300px;
88
display: flex;
99
flex-direction: column;
10-
transform: translate(0, 78px);
10+
transform: translate(0, 70px);
1111
}
1212

1313
.card.card-websites .card-title {

src/app/features/home/home.component.css

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.home-section {
22
display: grid;
3-
grid-template-columns: auto 300px;
4-
gap: 0.5rem;
3+
grid-template-columns: 1fr minmax(300px, 20%);
54
}
65

76
.home-section .websites {
@@ -13,6 +12,10 @@
1312
margin-top: 0.5rem;
1413
}
1514

15+
.news-container {
16+
margin: 0 1rem 1rem 1rem;
17+
}
18+
1619
.top-search {
1720
display: flex;
1821
align-items: center;

src/app/shared/news-container/news-container.component.css

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.news {
22
display: grid;
33
grid-template-columns: repeat(1, 100%);
4+
gap: 1rem;
45
}
56

67
.card.card-new {

src/styles.css

+1-5
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ body.dark {
8181
}
8282

8383
.card {
84-
margin: 0.5rem 0;
8584
background: var(--bg-color-card);
8685
color: var(--font-color-primary);
8786
border-radius: 1rem;
@@ -236,11 +235,11 @@ section > .title-wrapper {
236235
width: 100%;
237236
height: auto;
238237
min-height: 70px;
239-
padding: 0 1rem;
240238
display: flex;
241239
align-items: center;
242240
justify-content: space-between;
243241
background: var(--bg-blur);
242+
padding: 0 1rem;
244243
}
245244

246245
.title-wrapper > span.title-section {
@@ -271,9 +270,6 @@ section > .title-wrapper {
271270
transform: rotate(135deg);
272271
}
273272

274-
.news-container {
275-
margin: 0 1rem;
276-
}
277273

278274
@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
279275
section > .title-wrapper {

0 commit comments

Comments
 (0)