fix: remove unused image mixins
This commit is contained in:
parent
d2720c610a
commit
bab0fbf692
3 changed files with 75 additions and 39 deletions
|
|
@ -694,49 +694,39 @@
|
|||
// }
|
||||
|
||||
|
||||
.img-background() {
|
||||
content: " ";
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
height: calc(100%);
|
||||
width: 100%;
|
||||
background-color: @light-bg;
|
||||
}
|
||||
// .img-foreground() {
|
||||
// content: "\f1c5";
|
||||
// display: block;
|
||||
// font-style: normal;
|
||||
// font-family: FontAwesome;
|
||||
// font-size: 32px;
|
||||
// color: @text-extra-muted;
|
||||
|
||||
.img-foreground() {
|
||||
content: "\f1c5";
|
||||
display: block;
|
||||
font-style: normal;
|
||||
font-family: FontAwesome;
|
||||
font-size: 32px;
|
||||
color: @text-extra-muted;
|
||||
// position: absolute;
|
||||
// top: 50%;
|
||||
// transform: translateY(-50%);
|
||||
// left: 0;
|
||||
// width: 100%;
|
||||
// text-align: center;
|
||||
// }
|
||||
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
left: 0;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
// img.no-image:before {
|
||||
// .img-background();
|
||||
// }
|
||||
|
||||
img.no-image:before {
|
||||
.img-background();
|
||||
}
|
||||
// img.no-image:after {
|
||||
// .img-foreground();
|
||||
// }
|
||||
|
||||
img.no-image:after {
|
||||
.img-foreground();
|
||||
}
|
||||
// img.img-loading:before {
|
||||
// .img-background();
|
||||
// }
|
||||
|
||||
img.img-loading:before {
|
||||
.img-background();
|
||||
}
|
||||
|
||||
img.img-loading:after {
|
||||
.img-foreground();
|
||||
font-family: 'Octicons';
|
||||
content: "\f00b";
|
||||
}
|
||||
// img.img-loading:after {
|
||||
// .img-foreground();
|
||||
// font-family: 'Octicons';
|
||||
// content: "\f00b";
|
||||
// }
|
||||
|
||||
// utilities
|
||||
|
||||
|
|
|
|||
|
|
@ -26,3 +26,29 @@
|
|||
transition: $property $duration $timing-fn;
|
||||
-webkit-transition: $property $duration $timing-fn;
|
||||
}
|
||||
|
||||
@mixin img-background() {
|
||||
content: " ";
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
height: calc(100%);
|
||||
width: 100%;
|
||||
background-color: var(--bg-light-gray);
|
||||
}
|
||||
|
||||
// @mixin img-foreground() {
|
||||
// content: "\f1c5";
|
||||
// display: block;
|
||||
// font-style: normal;
|
||||
// font-family: FontAwesome;
|
||||
// font-size: 32px;
|
||||
// color: var(--text-muted);
|
||||
|
||||
// position: absolute;
|
||||
// top: 50%;
|
||||
// transform: translateY(-50%);
|
||||
// left: 0;
|
||||
// width: 100%;
|
||||
// text-align: center;
|
||||
// }
|
||||
|
|
@ -476,4 +476,24 @@ body.no-sidebar {
|
|||
|
||||
.alt-pressed .alt-underline {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// REDESIGN TODO: Handling of broken images?
|
||||
// img.no-image:before {
|
||||
// .img-background();
|
||||
// }
|
||||
|
||||
// img.no-image:after {
|
||||
// .img-foreground();
|
||||
// }
|
||||
|
||||
// img.img-loading:before {
|
||||
// .img-background();
|
||||
// }
|
||||
|
||||
// img.img-loading:after {
|
||||
// .img-foreground();
|
||||
// font-family: 'Octicons';
|
||||
// content: "\f00b";
|
||||
// }
|
||||
Loading…
Add table
Reference in a new issue