codecheck
179 строк · 3.4 Кб
1// core
2.p-sidebar-mask {
3display: none;
4pointer-events: none;
5background-color: transparent;
6transition-property: background-color;
7}
8
9.p-sidebar-mask.p-component-overlay {
10pointer-events: auto;
11}
12
13.p-sidebar-visible {
14display: flex;
15}
16
17.p-sidebar {
18display: flex;
19flex-direction: column;
20pointer-events: auto;
21transform: translate3d(0px, 0px, 0px);
22position: relative;
23transition: transform 0.3s;
24}
25
26.p-sidebar-content {
27overflow-y: auto;
28flex-grow: 1;
29}
30
31.p-sidebar-header {
32display: flex;
33align-items: center;
34justify-content: space-between;
35flex-shrink: 0;
36}
37
38.p-sidebar-icon {
39display: flex;
40align-items: center;
41justify-content: center;
42overflow: hidden;
43position: relative;
44}
45
46.p-sidebar-full .p-sidebar {
47transition: none;
48transform: none;
49width: 100vw !important;
50height: 100vh !important;
51max-height: 100%;
52top: 0px !important;
53left: 0px !important;
54}
55
56/* Animation */
57/* Center */
58.p-sidebar-left .p-sidebar-enter-from,
59.p-sidebar-left .p-sidebar-leave-to {
60transform: translateX(-100%);
61}
62.p-sidebar-right .p-sidebar-enter-from,
63.p-sidebar-right .p-sidebar-leave-to {
64transform: translateX(100%);
65}
66.p-sidebar-top .p-sidebar-enter-from,
67.p-sidebar-top .p-sidebar-leave-to {
68transform: translateY(-100%);
69}
70.p-sidebar-bottom .p-sidebar-enter-from,
71.p-sidebar-bottom .p-sidebar-leave-to {
72transform: translateY(100%);
73}
74.p-sidebar-full .p-sidebar-enter-from,
75.p-sidebar-full .p-sidebar-leave-to {
76opacity: 0;
77}
78.p-sidebar-full .p-sidebar-enter-active,
79.p-sidebar-full .p-sidebar-leave-active {
80transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
81}
82
83/* Size */
84.p-sidebar-left .p-sidebar {
85width: 20rem;
86height: 100%;
87}
88
89.p-sidebar-right .p-sidebar {
90width: 20rem;
91height: 100%;
92}
93
94.p-sidebar-top .p-sidebar {
95height: 10rem;
96width: 100%;
97}
98
99.p-sidebar-bottom .p-sidebar {
100height: 10rem;
101width: 100%;
102}
103
104.p-sidebar-left .p-sidebar-sm,
105.p-sidebar-right .p-sidebar-sm {
106width: 20rem;
107}
108
109.p-sidebar-left .p-sidebar-md,
110.p-sidebar-right .p-sidebar-md {
111width: 40rem;
112}
113
114.p-sidebar-left .p-sidebar-lg,
115.p-sidebar-right .p-sidebar-lg {
116width: 60rem;
117}
118
119.p-sidebar-top .p-sidebar-sm,
120.p-sidebar-bottom .p-sidebar-sm {
121height: 10rem;
122}
123
124.p-sidebar-top .p-sidebar-md,
125.p-sidebar-bottom .p-sidebar-md {
126height: 20rem;
127}
128
129.p-sidebar-top .p-sidebar-lg,
130.p-sidebar-bottom .p-sidebar-lg {
131height: 30rem;
132}
133
134.p-sidebar-left .p-sidebar-content,
135.p-sidebar-right .p-sidebar-content,
136.p-sidebar-top .p-sidebar-content,
137.p-sidebar-bottom .p-sidebar-content {
138width: 100%;
139height: 100%;
140}
141
142@media screen and (max-width: 64em) {
143.p-sidebar-left .p-sidebar-lg,
144.p-sidebar-left .p-sidebar-md,
145.p-sidebar-right .p-sidebar-lg,
146.p-sidebar-right .p-sidebar-md {
147width: 20rem;
148}
149}
150
151// theme
152.p-sidebar {
153background: $overlayContentBg;
154color: $panelContentTextColor;
155border: $overlayContentBorder;
156box-shadow: $overlayContainerShadow;
157
158.p-sidebar-header {
159padding: $panelHeaderPadding;
160
161.p-sidebar-header-content {
162font-weight: $dialogHeaderFontWeight;
163font-size: $dialogHeaderFontSize;
164}
165
166.p-sidebar-close,
167.p-sidebar-icon {
168@include action-icon();
169}
170
171& + .p-sidebar-content {
172padding-top: 0;
173}
174}
175
176.p-sidebar-content {
177padding: $panelContentPadding;
178}
179}