UX: simplify delete gap style
This commit is contained in:
parent
27e52bc66d
commit
cfb30bca80
|
@ -1,7 +1,7 @@
|
||||||
import { createWidget } from 'discourse/widgets/widget';
|
import { createWidget } from 'discourse/widgets/widget';
|
||||||
|
|
||||||
export default createWidget('post-gap', {
|
export default createWidget('post-gap', {
|
||||||
tagName: 'div.gap.jagged-border',
|
tagName: 'div.gap',
|
||||||
buildKey: (attrs) => `post-gap-${attrs.pos}-${attrs.postId}`,
|
buildKey: (attrs) => `post-gap-${attrs.pos}-${attrs.postId}`,
|
||||||
|
|
||||||
defaultState() {
|
defaultState() {
|
||||||
|
|
|
@ -300,39 +300,12 @@ blockquote > *:last-child {
|
||||||
}
|
}
|
||||||
|
|
||||||
.gap {
|
.gap {
|
||||||
background-color: dark-light-diff($primary, $secondary, 90%, -60%);
|
padding: 0.25em 0 0.5em 4.3em;
|
||||||
padding: 5px 0;
|
|
||||||
color: dark-light-choose(scale-color($primary, $lightness: 60%), scale-color($secondary, $lightness: 40%));
|
color: dark-light-choose(scale-color($primary, $lightness: 60%), scale-color($secondary, $lightness: 40%));
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-align: center;
|
text-transform: uppercase;
|
||||||
|
font-weight: bold;
|
||||||
&.jagged-border {
|
font-size: 0.9em;
|
||||||
background-image:
|
|
||||||
linear-gradient(
|
|
||||||
135deg,
|
|
||||||
$secondary 50%, rgba(255,255,255,0) 50%
|
|
||||||
),
|
|
||||||
linear-gradient(
|
|
||||||
-135deg,
|
|
||||||
$secondary 50%, rgba(255,255,255,0) 50%
|
|
||||||
),
|
|
||||||
linear-gradient(
|
|
||||||
45deg,
|
|
||||||
$secondary 50%, rgba(255,255,255,0) 50%
|
|
||||||
),
|
|
||||||
linear-gradient(
|
|
||||||
-45deg,
|
|
||||||
$secondary 50%, rgba(255,255,255,0) 50%
|
|
||||||
);
|
|
||||||
background-position:
|
|
||||||
top center, top center,
|
|
||||||
bottom center, bottom center;
|
|
||||||
background-size: .9em .9em;
|
|
||||||
background-repeat: repeat-x;
|
|
||||||
padding: 20px 0;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.who-liked {
|
.who-liked {
|
||||||
|
|
|
@ -557,11 +557,6 @@ span.highlighted {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.gap.jagged-border {
|
|
||||||
margin-left: -10px;
|
|
||||||
margin-right: -10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.popup-menu {
|
.popup-menu {
|
||||||
h3 {
|
h3 {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
|
Loading…
Reference in New Issue