File size: 4,161 Bytes
1e92f2d |
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 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 |
@import "@wordpress/base-styles/variables";
@import "@automattic/typography/styles/variables";
@import "components/variables";
/**
* Help Center GENERAL Styles
*
* This file contains the general styles for the Help Center.
*
* THIS FILE SHOULD NOT CONTAIN ANY COMPONENT SPECIFIC STYLES.
*/
.help-center > div.help-center__container {
background-color: #fff;
z-index: $help-center-z-index;
cursor: default;
transition: max-height 0.5s;
animation: 0.25s ease-out 0s 1 normal none running slideIn;
position: fixed;
/**
* Generic Stylings
*/
font-size: $font-body-small;
font-family:
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
Oxygen-Sans,
Ubuntu,
Cantarell,
"Helvetica Neue",
sans-serif;
font-weight: inherit;
color: var(--studio-gray-100);
button.button-primary,
button.button-secondary {
font-size: $font-title-small;
}
.button {
text-decoration: none;
font-size: $font-body-small;
}
& > div {
display: flex;
flex-direction: column;
}
button,
a {
&:focus {
box-shadow: none;
outline: var(--color-link, --studio-blue-30) solid 2px;
}
&:hover {
color: var(--color-link-dark, --studio-blue-70);
border-color: inherit;
}
// Remove the default focus outline on the Recent Conversations nav tabs
&.section-nav-tab__link:focus {
box-shadow: none;
outline: none;
}
}
.help-center__section-title {
font-size: $font-body-small;
font-weight: 500;
color: var(--studio-gray-100);
margin: 32px 0 1em;
}
/**
* Used on loading screens across Help Center
*/
.help-center__loading {
margin: 2em 0;
display: flex;
align-items: center;
justify-content: center;
height: 100%;
.spinner__outer {
border-top-color: $help-center-blue;
}
.spinner__inner {
border-top-color: $help-center-blue;
border-right-color: $help-center-blue;
}
}
&.is-minimized {
.help-center__container-header {
cursor: pointer;
}
.help-center__container-content {
display: none;
}
.help-center-header__text {
cursor: pointer;
}
}
/**
* Desktop
*/
&.is-desktop {
width: 410px;
height: 80vh;
max-height: 800px;
box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.12), 0 3px 1px 0 rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.04);
border-radius: 2px;
&.is-minimized {
min-height: $head-foot-height;
max-height: $head-foot-height;
top: unset;
right: 50px;
bottom: calc(#{$header-height} + 16px);
}
}
/**
* Mobile
*/
&.is-mobile {
bottom: 0;
left: 0;
right: 0;
/* If the masterbar is there, don't cover it, if not, go to the top. */
top: var(--masterbar-height, 0);
max-height: calc(100% - 45px);
height: calc(100% - var(--masterbar-height, 0));
animation: 0.25s ease-out 0s 1 normal none running fadeIn;
.help-center__container-footer {
margin-bottom: 0;
}
&.is-minimized {
min-height: $head-foot-height;
max-height: $head-foot-height;
top: calc(100vh - #{$head-foot-height});
@supports (height: 100dvh) {
top: calc(100dvh - #{$head-foot-height});
}
}
}
/**
* Animations
*/
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes slideIn {
0% {
opacity: 0;
transform: scale(0);
}
100% {
opacity: 1;
transform: scale(1);
}
}
// Text highlight color
::selection {
background: rgba($help-center-blue, 0.7);
color: var(--color-text);
}
}
/**
* Popover component
* Fixes broken popover component on frontend.
*/
.popover.help-center {
z-index: $help-center-z-index +1;
.popover__arrow {
z-index: 1;
}
.popover__menu {
// Odie Chat Menu
.help-center__container-header-menu-item {
display: flex;
flex-direction: row;
align-items: center;
&:hover,
&:focus {
svg {
fill: var(--color-text-inverted);
}
}
}
}
// Contact Form URL privacy popover
.popover__inner {
.help-center-contact-form__site-picker-forum-privacy-popover {
display: inline-block;
max-width: 200px;
padding: 5px;
}
.help-center-contact-form__site-picker-forum-privacy-info {
padding: 0;
margin: 0;
background: none;
border: none;
}
}
}
|