Skip to content
This repository was archived by the owner on May 12, 2020. It is now read-only.

Commit e592cf8

Browse files
committed
feat(layout): skeleton for layout via pure css
1 parent 23f5e25 commit e592cf8

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

src/layout/Dashboard/index.vue

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,43 @@ export default {
7474
height: 100%
7575
flex: 1
7676
77+
&:empty
78+
position: relative
79+
box-sizing: border-box
80+
81+
&::before
82+
content: ''
83+
position: absolute
84+
width: 100%
85+
height: 100%
86+
top: 50%
87+
left: 50%
88+
transform: translate(-50%, -50%)
89+
background-color: $main-white
90+
91+
&::after
92+
content: ''
93+
display: block
94+
position: absolute
95+
left: 50%
96+
top: 50%
97+
border: 3px solid $main-bg // rgb(217, 236, 255)
98+
border-top-color: $main-hover
99+
border-radius: 50%
100+
width: 1.5em
101+
height: 1.5em
102+
animation: spin 1s linear infinite
103+
77104
&__footer
78105
line-height: 60px
79106
text-align: center
80107
108+
@keyframes spin
109+
from
110+
transform: translate(-50%, -50%) rotate(0deg)
111+
to
112+
transform: translate(-50%, -50%) rotate(720deg)
113+
81114
.collapse-aside
82115
.layout__dashboard__placeholder
83116
margin-left: $collapse-width

0 commit comments

Comments
 (0)