codecheck
198 строк · 3.5 Кб
1// core
2.p-component, .p-component * {
3box-sizing: border-box;
4}
5
6.p-hidden-space {
7visibility: hidden;
8}
9
10.p-reset {
11margin: 0;
12padding: 0;
13border: 0;
14outline: 0;
15text-decoration: none;
16font-size: 100%;
17list-style: none;
18}
19
20.p-disabled, .p-disabled * {
21cursor: default;
22pointer-events: none;
23user-select: none;
24}
25
26.p-component-overlay {
27position: fixed;
28top: 0;
29left: 0;
30width: 100%;
31height: 100%;
32}
33
34.p-unselectable-text {
35user-select: none;
36}
37
38.p-sr-only {
39border: 0;
40clip: rect(1px, 1px, 1px, 1px);
41clip-path: inset(50%);
42height: 1px;
43margin: -1px;
44overflow: hidden;
45padding: 0;
46position: absolute;
47width: 1px;
48word-wrap: normal;
49}
50
51.p-link {
52text-align: left;
53background-color: transparent;
54margin: 0;
55padding: 0;
56border: none;
57cursor: pointer;
58user-select: none;
59}
60
61.p-link:disabled {
62cursor: default;
63}
64
65/* Non vue overlay animations */
66.p-connected-overlay {
67opacity: 0;
68transform: scaleY(0.8);
69transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);
70}
71
72.p-connected-overlay-visible {
73opacity: 1;
74transform: scaleY(1);
75}
76
77.p-connected-overlay-hidden {
78opacity: 0;
79transform: scaleY(1);
80transition: opacity .1s linear;
81}
82
83/* Vue based overlay animations */
84.p-connected-overlay-enter-from {
85opacity: 0;
86transform: scaleY(0.8);
87}
88
89.p-connected-overlay-leave-to {
90opacity: 0;
91}
92
93.p-connected-overlay-enter-active {
94transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);
95}
96
97.p-connected-overlay-leave-active {
98transition: opacity .1s linear;
99}
100
101/* Toggleable Content */
102.p-toggleable-content-enter-from,
103.p-toggleable-content-leave-to {
104max-height: 0;
105}
106
107.p-toggleable-content-enter-to,
108.p-toggleable-content-leave-from {
109max-height: 1000px;
110}
111
112.p-toggleable-content-leave-active {
113overflow: hidden;
114transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);
115}
116
117.p-toggleable-content-enter-active {
118overflow: hidden;
119transition: max-height 1s ease-in-out;
120}
121
122// theme
123* {
124box-sizing: border-box;
125}
126
127.p-component {
128font-family: var(--font-family);
129font-feature-settings: var(--font-feature-settings, normal);
130font-size: $fontSize;
131font-weight: $fontWeight;
132}
133
134.p-component-overlay {
135background-color: $maskBg;
136transition-duration: $transitionDuration;
137}
138
139.p-disabled, .p-component:disabled {
140opacity: $disabledOpacity;
141}
142
143.p-error {
144color: $errorColor;
145}
146
147.p-text-secondary {
148color: $textSecondaryColor;
149}
150
151.pi {
152font-size: $primeIconFontSize;
153}
154
155.p-icon {
156width: $primeIconFontSize;
157height: $primeIconFontSize;
158}
159
160.p-link {
161font-family: var(--font-family);
162font-feature-settings: var(--font-feature-settings, normal);
163font-size: $fontSize;
164border-radius: $borderRadius;
165outline-color: transparent;
166
167&:focus-visible {
168@include focused();
169}
170}
171
172.p-component-overlay-enter {
173animation: p-component-overlay-enter-animation 150ms forwards;
174}
175
176.p-component-overlay-leave {
177animation: p-component-overlay-leave-animation 150ms forwards;
178}
179
180.p-component-overlay {
181@keyframes p-component-overlay-enter-animation {
182from {
183background-color: transparent;
184}
185to {
186background-color: var(--maskbg);
187}
188}
189
190@keyframes p-component-overlay-leave-animation {
191from {
192background-color: var(--maskbg);
193}
194to {
195background-color: transparent;
196}
197}
198}
199