mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-30 06:03:45 +01:00
Abstract style to mixin
Abstract general style to mixin file for reuse.
This commit is contained in:
parent
37176c8fe5
commit
91da5f015c
@ -18,3 +18,14 @@
|
|||||||
right: 35px;
|
right: 35px;
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@mixin absolute-center($width:108px) {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
margin: auto;
|
||||||
|
width: $width !important;
|
||||||
|
height: $width !important;
|
||||||
|
}
|
@ -1,3 +1,5 @@
|
|||||||
|
@import "../../mixin";
|
||||||
|
|
||||||
.title-container {
|
.title-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
.chart-name {
|
.chart-name {
|
||||||
@ -10,12 +12,5 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.detail-loading {
|
.detail-loading {
|
||||||
position: absolute;
|
@include absolute-center;
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
margin: auto;
|
|
||||||
width: 108px !important;
|
|
||||||
height: 108px !important;
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user