UNPKG

2.34 kBSCSSView Raw
1@import "../global/global";
2
3@keyframes show-sidebar {
4 0% {
5 right: -100%;
6 }
7
8 100% {
9 right: 0;
10 }
11}
12
13.ring-sidebar {
14 position: fixed;
15 z-index: 4;
16
17 top: 0;
18 right: -100%;
19 height: 100%;
20
21 width: $ring-unit * 58;
22
23 padding-top: 2*$ring-unit;
24
25 box-sizing: border-box;
26 border: solid 1px var(--ring-line-color);
27 border-right-width: 0;
28
29 overflow: hidden;
30 background: var(--ring-content-background-color);
31 transition: right 0.5s ease, visibility 0.5s;
32 visibility: hidden;
33}
34
35.ring-sidebar_active {
36 visibility: visible;
37 right: 0;
38 animation: show-sidebar 0.5s 1;
39
40 overflow: auto;
41 box-shadow: -1px 0 2px 0 rgba(0, 42, 76, 0.15);
42
43 .ring-sidebar__i {
44 transition: 0.5s ease-in;
45 transform: rotate(180deg);
46 }
47}
48
49.ring-sidebar__toggle-icon {
50 color: var(--ring-icon-secondary-color);
51}
52
53.ring-sidebar__avatar {
54 float: left;
55 width: 6*$ring-unit;
56 height: 6*$ring-unit;
57 object-fit: contain;
58 padding: 0 2*$ring-unit 0 4*$ring-unit;
59}
60
61.ring-sidebar__title {
62 margin: 0;
63 padding-left: 4*$ring-unit;
64
65 color: var(--ring-heading-color);
66 vertical-align: middle;
67 font-size: 3*$ring-unit;
68 font-weight: normal;
69 line-height: 28px;
70
71 .tag-flag {
72 vertical-align: bottom;
73 }
74
75 .ring-sidebar__avatar ~ & {
76 margin-bottom: 42px;
77 }
78}
79
80.ring-sidebar__section {
81 position: relative;
82 margin-top: 3*$ring-unit;
83 padding: 0 2*$ring-unit 0 4*$ring-unit;
84}
85
86.ring-sidebar__section-title {
87 display: inline-block;
88 font-size: var(--ring-font-size);
89 font-weight: bold;
90 color: var(--ring-text-color);
91}
92
93.ring-sidebar__section-text {
94 font-size: var(--ring-font-size);
95 color: var(--ring-text-color);
96 line-height: 3*$ring-unit;
97
98 &_multiline {
99 padding: 4px 0 5px;
100 line-height: normal;
101 }
102}
103
104.ring-sidebar__section-roster {
105 margin-top: $ring-unit;
106}
107
108.ring-sidebar__section-icon {
109 position: absolute;
110 display: block;
111 left: 0;
112
113 width: 4*$ring-unit;
114
115 color: var(--ring-icon-secondary-color);
116 font-size: 12px;
117 text-align: center;
118}
119
120.ring-sidebar__empty {
121 margin-top: $ring-unit*4;
122 text-align: center;
123}
124
125.ring-sidebar__empty-icon {
126 font-size: 100px;
127 color: var(--ring-disabled-color);
128}
129
130.ring-sidebar__empty-description {
131 margin-top: $ring-unit*2;
132 color: var(--ring-text-color);
133 font-size: 12px;
134
135 line-height: 18px;
136 padding-top: 4px;
137}