Skip to content

Commit dde72ec

Browse files
authored
Position notification container with CSS (hestiacp#3067)
1 parent bd99925 commit dde72ec

File tree

11 files changed

+24
-39
lines changed

11 files changed

+24
-39
lines changed

web/css/src/themes/dark.css

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ strong {
3636
background: linear-gradient(to bottom, rgb(255 255 255 / 15%) 0%, rgb(255 255 255 / 15%) 30%, rgb(255 255 255 / 15%) 95%) !important;
3737
}
3838

39-
.l-menu__item a {
39+
.l-menu__item > a {
4040
color: #e7e7e7;
4141

4242
&:hover {
@@ -53,18 +53,6 @@ strong {
5353
}
5454
}
5555

56-
.lang-ar .l-menu__item a {
57-
padding: 11px;
58-
}
59-
60-
.lang-de .l-menu__item a {
61-
padding: 11px 12px;
62-
}
63-
64-
.lang-tw .l-menu__item a {
65-
padding: 13px 18px;
66-
}
67-
6856
.l-profile__logout {
6957
color: #e7e7e7 !important;
7058
}

web/css/src/themes/default.css

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,10 @@
6666
background: linear-gradient(to bottom, rgb(104 145 196 / 100%) 0%, rgb(69 114 181 / 100%) 50%, rgb(65 90 149 / 100%) 100%);
6767
background-color: #5070a6;
6868
position: fixed;
69-
size: 100% 39px;
69+
size: 100% 40px;
7070
z-index: 900;
7171
top: 0;
7272
font-size: 0.8rem;
73-
text-shadow: 1px 1px rgb(0 0 0 / 25%);
7473
box-shadow: 0 4px 10px rgb(100 100 100 / 40%);
7574
border-bottom: 1px solid #fff;
7675
}
@@ -108,14 +107,16 @@
108107
.l-menu__item {
109108
display: flex;
110109
align-self: stretch;
111-
font-weight: 600;
110+
position: relative;
112111
}
113112

114-
.l-menu__item a {
113+
.l-menu__item > a {
115114
color: #f7f7f7;
116115
display: flex;
117116
align-items: center;
118117
position: relative;
118+
font-weight: 600;
119+
text-shadow: 1px 1px rgb(0 0 0 / 25%);
119120
padding-left: 10px;
120121
padding-right: 10px;
121122
border-left: 1px solid transparent;
@@ -164,7 +165,6 @@
164165
.l-profile {
165166
display: flex;
166167
align-items: center;
167-
overflow: hidden;
168168
}
169169

170170
.l-profile__username,
@@ -208,11 +208,11 @@
208208
.notification-container {
209209
background-color: rgb(255 255 255 / 95%);
210210
box-shadow: 0 3px 20px 0 rgb(0 0 0 / 40%);
211-
margin: 0 18px;
212-
max-height: 90%;
211+
max-height: 500px;
213212
overflow-y: auto;
214-
position: fixed;
215-
top: 34px;
213+
position: absolute;
214+
top: 100%;
215+
right: 0;
216216
width: 390px;
217217
z-index: 300;
218218
font-size: 0.8rem;
@@ -566,7 +566,7 @@
566566
display: flex;
567567
position: sticky;
568568
z-index: 2;
569-
top: 38px;
569+
top: 39px;
570570
height: 45px;
571571
justify-content: center;
572572
background-color: #fff;
@@ -2243,7 +2243,7 @@ body.mobile .l-unit-toolbar__col--right {
22432243
}
22442244

22452245
.l-content {
2246-
padding-top: 39px;
2246+
padding-top: 40px;
22472247
}
22482248

22492249
.l-content.collapsed .l-sort {

web/css/src/themes/flat.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ strong {
3434
box-shadow: none !important;
3535
}
3636

37-
.l-menu__item a:hover {
37+
.l-menu__item > a:hover {
3838
background: #fff !important;
3939
box-shadow: none;
4040
}
4141

42-
.l-menu__item a:active {
42+
.l-menu__item > a:active {
4343
background: none;
4444
box-shadow: none !important;
4545
}

web/css/src/themes/vestia.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ strong {
3636
background-color: #fff;
3737
}
3838

39-
.l-menu__item a:hover {
39+
.l-menu__item > a:hover {
4040
background: #f79b44 !important;
4141
box-shadow: none !important;
4242
padding: 12px 10px !important;
@@ -47,7 +47,7 @@ strong {
4747
text-shadow: none !important;
4848
}
4949

50-
.l-menu__item a:active {
50+
.l-menu__item > a:active {
5151
background: none;
5252
box-shadow: none !important;
5353
text-shadow: none !important;

web/css/themes/dark.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/css/themes/default.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/css/themes/flat.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)