-
Notifications
You must be signed in to change notification settings - Fork 10.7k
/
style.scss
137 lines (122 loc) · 2.52 KB
/
style.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
@import './visibility-section/style.scss';
.woocommerce-product-publish-panel {
bottom: 0;
right: 0;
top: $admin-bar-height-big;
overflow: auto;
position: fixed;
background: $white;
width: 100%;
@include break-medium() {
top: 0;
width: $sidebar-width - $border-width;
@include reduce-motion("animation");
body.is-fullscreen-mode & {
top: 0;
}
}
&__header {
height: $header-height + $border-width;
display: flex;
align-items: center;
gap: 8px;
padding: 0 $grid-unit-20;
justify-content: right;
> button {
flex: 1;
}
.components-button {
width: 100%;
justify-content: center;
}
.woocommerce-publish-panel-close {
flex: unset;
width: unset;
}
}
&__title {
padding: $grid-unit-20;
h4 {
font-size: 14px;
line-height: 20px;
margin: 8px 0;
}
}
&__content {
// Ensure the pre-publish panel content accounts for the header and footer height.
min-height: calc( 100% - #{ $header-height + 222px } );
.editor-post-publish-panel__link {
font-weight: 400;
padding-left: $gap-smallest;
}
}
&__footer {
padding: $gap $grid-unit-20 $gap-largest $grid-unit-20;
left: 0;
width: 100%;
min-height: $gap-largest + $gap-large;
display: flex;
align-items: center;
margin-bottom: 20px;
.components-base-control__field {
margin: 0;
}
}
.post-publish-section {
&__postpublish-subheader {
margin: 0 0 $gap-small;
}
&__postpublish-post-address-container {
align-items: flex-end;
display: flex;
margin-bottom: $gap-small;
gap: $gap;
}
&__postpublish-post-address {
flex: 1;
}
&__copy-button-wrap {
flex-shrink: 0;
margin-bottom: $gap-smaller;
}
&__postpublish-buttons {
display: flex;
justify-content: space-between;
gap: $gap-small;
.components-button {
padding: $gap-smaller;
flex: 1;
justify-content: center;
}
}
}
}
.is-published {
display: flex;
flex-direction: column;
.woocommerce-product-publish-panel {
&__header, &__title {
border-bottom: $border-width solid $gray-200;
font-weight: 500;
}
&__content {
min-height: 180px;
flex-grow: 1;
}
}
}
.interface-interface-skeleton__actions {
transform: translateX(+100%);
animation: product-publish-panel__slide-in-animation 0.1s forwards;
@include break-medium() {
// Keep it open on focus to avoid conflict with navigate-regions animation.
[role="region"]:focus & {
transform: translateX(0%);
}
}
}
@keyframes product-publish-panel__slide-in-animation {
100% {
transform: translateX(0%);
}
}