Skip to content

Commit 9e84d73

Browse files
committed
💄 websites section styles fixed
1 parent 3a0d38a commit 9e84d73

File tree

3 files changed

+43
-15
lines changed

3 files changed

+43
-15
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,13 @@
3434
</li>
3535
</ul>
3636
<div class="profile" *ngIf="userActive">
37-
<div class="profile-details">
37+
<div routerLink="/settings" class="profile-details">
3838
<figure class="box-image">
3939
<img
4040
src="https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1171&q=80"
4141
alt="img-user">
4242
</figure>
4343
<span class="username"> {{userActive.email }} </span>
44-
<a href="" class="more">
45-
<i class='bx bx-dots-horizontal-rounded'></i>
46-
</a>
4744
</div>
4845
</div>
4946

src/app/features/website/pages/websites/websites.component.css

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,25 @@
4444
.card-body .website-title {
4545
display: flex;
4646
justify-content: space-between;
47-
align-items: flex-start;
47+
align-items: center;
48+
width: 100%;
49+
gap: 5px;
4850
}
4951

5052
.card-body .website-title .title {
5153
font-size: 26px;
5254
font-weight: bold;
55+
overflow: hidden;
56+
text-overflow: ellipsis;
57+
white-space: nowrap;
58+
flex: 1 1 100%;
59+
width: 0;
5360
}
5461

5562
.card-body .website-title .btn {
5663
border-radius: 40px;
5764
max-width: 100px;
65+
width: 100px;
5866
}
5967

6068
.card-body .w-desc {
@@ -80,18 +88,26 @@
8088
}
8189
}
8290

83-
@media (max-width: 768px) {
84-
.card.card-website {
85-
flex-direction: column;
91+
@media (max-width: 480px) {
92+
.card.card-website figure {
93+
width: 3rem;
94+
height: 3rem;
95+
min-width: 3rem;
96+
min-height: 3rem;
8697
}
8798

88-
.card.card-website figure {
89-
max-width: 100%;
90-
height: 10rem;
91-
border-radius: 10px 10px 0 0;
99+
.card-body .website-title .title {
100+
font-size: 22px;
92101
}
93102

94-
.card-body .bottom .buttons .w-link {
103+
.card-body .w-desc {
95104
font-size: 14px;
105+
text-overflow: ellipsis;
106+
overflow: hidden;
107+
display: -webkit-box !important;
108+
-webkit-line-clamp: 2;
109+
-webkit-box-orient: vertical;
110+
white-space: normal;
111+
max-height: 50px;
96112
}
97113
}

src/styles.css

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,15 @@ input:focus-within {
220220
section > .title-wrapper {
221221
position: sticky;
222222
top: 0;
223-
backdrop-filter: blur(12px);
224223
z-index: 100;
225224
width: 100%;
226-
height: 70px;
225+
height: auto;
226+
min-height: 70px;
227227
padding: 0 1rem;
228228
display: flex;
229229
align-items: center;
230230
justify-content: space-between;
231+
background: hsla(0, 0%, 100%, 0.6);
231232
}
232233

233234
.title-wrapper > span.title-section {
@@ -257,6 +258,14 @@ section > .title-wrapper {
257258
margin: 0 1rem;
258259
}
259260

261+
@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
262+
section > .title-wrapper {
263+
background: transparent;
264+
backdrop-filter: blur(12px);
265+
-webkit-backdrop-filter: blur(12px);
266+
}
267+
}
268+
260269
/* Sekeletons design */
261270

262271
.gradient {
@@ -286,3 +295,9 @@ section > .title-wrapper {
286295
background-position: 468px 0;
287296
}
288297
}
298+
299+
@media (max-width: 480px) {
300+
.title-wrapper > span.title-section {
301+
font-size: 32px;
302+
}
303+
}

0 commit comments

Comments
 (0)