mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 20:23:44 +08:00
UX: Use a gradient instead of a border.
This commit is contained in:
parent
f10520a5f2
commit
263a43bcfd
|
@ -167,12 +167,17 @@ body {
|
|||
}
|
||||
|
||||
.ring {
|
||||
top: -13px !important;
|
||||
right: 21px !important;
|
||||
$gradient-start: transparent;
|
||||
$gradient-end: #090;
|
||||
background: -webkit-radial-gradient($gradient-start, $gradient-end);
|
||||
background: -o-radial-gradient($gradient-start, $gradient-end);
|
||||
background: -moz-radial-gradient($gradient-start, $gradient-end);
|
||||
background: radial-gradient($gradient-start, $gradient-end);
|
||||
top: -11px !important;
|
||||
right: 24px !important;
|
||||
border-radius: 100%;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border: solid #090 3px;
|
||||
-moz-animation-iteration-count: infinite;
|
||||
-webkit-animation-iteration-count: infinite;
|
||||
-webkit-transform-origin: center;
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
@import "mobile/menu-panel";
|
||||
@import "mobile/search";
|
||||
@import "mobile/emoji";
|
||||
@import "mobile/ring";
|
||||
|
||||
/* These files doesn't actually exist, they are injected by DiscourseSassImporter. */
|
||||
|
||||
|
|
3
app/assets/stylesheets/mobile/ring.scss
Normal file
3
app/assets/stylesheets/mobile/ring.scss
Normal file
|
@ -0,0 +1,3 @@
|
|||
.ring {
|
||||
top: -7px !important;
|
||||
}
|
Loading…
Reference in New Issue
Block a user