mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 19:34:25 +08:00
UX: More consistent mobile banner/alert styles, css cleanup
This commit is contained in:
parent
096eca0ee8
commit
eef47a26d9
@ -3,6 +3,7 @@
|
|||||||
background-color: $danger-low;
|
background-color: $danger-low;
|
||||||
color: $primary;
|
color: $primary;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
margin-bottom: 1em;
|
||||||
|
|
||||||
.close {
|
.close {
|
||||||
font-size: $font-up-3;
|
font-size: $font-up-3;
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
/* @import "desktop/*"; TODO: get this working again */
|
/* @import "desktop/*"; TODO: get this working again */
|
||||||
|
|
||||||
@import "desktop/alert";
|
|
||||||
@import "desktop/banner";
|
@import "desktop/banner";
|
||||||
@import "desktop/compose";
|
@import "desktop/compose";
|
||||||
@import "desktop/discourse";
|
@import "desktop/discourse";
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
.alert {
|
|
||||||
margin-bottom: 1em;
|
|
||||||
}
|
|
@ -1,7 +1,8 @@
|
|||||||
// there are (n) new or updated topics, click to show
|
|
||||||
.alert.alert-info {
|
.alert.alert-info {
|
||||||
margin: 0;
|
margin-bottom: 0.5em;
|
||||||
&.clickable {
|
&.clickable {
|
||||||
|
// there are (n) new or updated topics, click to show
|
||||||
|
margin-bottom: 0;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,11 +3,6 @@
|
|||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
#banner {
|
#banner {
|
||||||
// go full width on mobile, by extending into the 10px wrap
|
|
||||||
// borders on left and right
|
|
||||||
margin: 0 -10px;
|
|
||||||
max-height: 180px;
|
max-height: 180px;
|
||||||
@media all and (max-height: 499px) {
|
height: 20vh;
|
||||||
max-height: 100px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user