mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
add jagged border for post gaps
This commit is contained in:
parent
db066b5d3f
commit
58bb918002
@ -1,5 +1,6 @@
|
|||||||
export default Ember.Component.extend({
|
export default Ember.Component.extend({
|
||||||
classNameBindings: [':gap', 'gap::hidden'],
|
classNameBindings: [':gap', 'gap::hidden'],
|
||||||
|
classNameBindings: [':gap', ':jagged-border', 'gap::hidden'],
|
||||||
|
|
||||||
initGaps: function(){
|
initGaps: function(){
|
||||||
this.set('loading', false);
|
this.set('loading', false);
|
||||||
|
@ -716,6 +716,34 @@ $topic-avatar-width: 45px;
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: calc(#{$topic-avatar-width} + #{$topic-body-width} + 2 * #{$topic-body-width-padding});
|
width: calc(#{$topic-avatar-width} + #{$topic-body-width} + 2 * #{$topic-body-width-padding});
|
||||||
|
|
||||||
|
&.jagged-border {
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.time-gap {
|
.time-gap {
|
||||||
|
Loading…
Reference in New Issue
Block a user