File size: 5,021 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 234 235 236 237 238 239 240 241 242 243 244 245 246 247 |
/**
* Notifications
*/
@import "@wordpress/base-styles/breakpoints";
$notification-panel-width: 450px;
#wpnc-panel {
position: fixed;
top: var(--masterbar-height);
right: 0;
bottom: 0;
min-width: $notification-panel-width;
@media only screen and (max-width: 600px) {
width: 100%;
min-width: 0;
}
.has-text-align-center {
text-align: center;
}
.has-text-align-right {
text-align: right;
}
.has-text-align-left {
text-align: left;
}
.has-text-align-justify {
text-align: justify;
}
.wpnc__h1 {
font-size: $font-headline-small;
}
.wpnc__h2 {
font-size: $font-title-large;
}
.wpnc__h3 {
font-size: $font-title-medium;
}
.uppercase {
text-transform: uppercase;
}
.has-drop-cap:not(:focus)::first-letter {
font-weight: bold;
line-height: 0.66;
text-transform: uppercase;
font-style: normal;
float: left;
font-size: calc(2 * 2.25rem);
margin: 0.05em 0.1em 0 0;
}
.has-drop-cap:not(:focus)::after {
content: "";
display: table;
clear: both;
padding-top: 14px;
}
.wpnc__sub {
font-size: smaller;
vertical-align: sub;
}
.wpnc__sup {
font-size: smaller;
vertical-align: super;
}
.wpnc__em {
font-style: italic;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: bold;
}
&.wpnt-open {
right: 0;
transition: all 0.15s cubic-bezier(0.075, 0.82, 0.165, 1);
opacity: 1;
pointer-events: auto;
visibility: visible;
}
&.wpnt-closed {
visibility: hidden;
right: -$notification-panel-width;
opacity: 0;
pointer-events: none;
transition: all 0.15s cubic-bezier(0.075, 0.82, 0.165, 1);
}
&.wpnc__main .wpnc__time-group-title.fixed {
top: 85px;
}
&.wpnc__main .wpnc__single-view {
left: inherit;
width: $notification-panel-width;
@include breakpoint-deprecated( "<800px" ) {
left: 0;
width: auto;
}
}
@include breakpoint-deprecated( "<800px" ) {
&.wpnc__main header {
top: 47px;
}
}
&.wpnc__main .wpnc__note {
blockquote {
padding: 0 24px 0 32px;
margin: 16px 0 32px;
border-left: 3px solid var(--color-neutral-0);
color: var(--color-neutral-50);
font-weight: 400;
background: transparent;
}
ul,
ol {
margin-left: 1.5em;
list-style-position: inside;
}
ul {
list-style-type: disc;
ul {
list-style-type: circle;
ul {
list-style-type: square;
}
}
}
ol {
list-style-type: decimal;
}
li {
margin: auto;
}
}
}
#wpnc-panel.wide {
border-left: 0;
box-shadow: none;
}
html.touch #wpnc-panel {
-webkit-overflow-scrolling: touch;
}
div.reader-notifications__panel {
position: relative;
// This flyout breakpoint is based off the notifications panel having enough width for its
// default 'flyout' functionality for the nested level. Using a more general breakpoint would
// prevent us from applying this functionality for another ~166px of screen width (based off of
// using the $break-wide which is the closest larger breakpoint).
$breakpoint-flyout: 1114px;
--3pc-notice-external-height: 50px;
@media only screen and (min-width: $breakpoint-flyout) {
--3pc-notice-external-height: 0px; /* stylelint-disable-line length-zero-no-unit */
}
#wpnc-panel.wpnc__main {
top: var(--3pc-notice-external-height);
height: calc(100vh - var(--masterbar-height) - var(--content-padding-top) - var(--content-padding-bottom) - var(--3pc-notice-external-height));
box-shadow: -3px 1px 10px -2px color-mix(in srgb, var(--color-neutral-70) 7.5%, transparent);
border-top: 1px solid var(--color-neutral-0);
box-sizing: border-box;
&.wpnt-open {
position: absolute;
@media only screen and (min-width: $break-small) {
border-radius: 8px; /* stylelint-disable-line scales/radii */
width: 100%;
.wpnc__single-view,
.wpnc__note-list {
width: 100%;
}
}
@media only screen and (min-width: $breakpoint-flyout) {
width: calc(100vw - var(--sidebar-width-max) - 16px); // 16px for content frame padding.
.wpnc__single-view {
width: $notification-panel-width;
z-index: z-index( ".reader-notifications", ".wpnc__single-view" ); // This ensures the single view flies out above the 3PC notice.
}
.wpnc__note-list {
width: $notification-panel-width;
z-index: z-index( ".reader-notifications", ".wpnc__note-list" ); // This ensures the single view does not rise above the note list while animating outwards.
}
}
}
}
.reader-notifications__3pc-notice {
position: absolute;
top: 0;
left: 0;
justify-content: center;
align-items: center;
box-sizing: border-box;
padding: 0 10px;
font-size: $font-body;
&-internal {
display: none;
bottom: 0;
padding: 0 30px;
right: $notification-panel-width;
@media only screen and (min-width: $breakpoint-flyout) {
display: flex;
}
}
&-external {
display: flex;
right: 0;
height: var(--3pc-notice-external-height);
p {
margin-bottom: 5px;
}
@media only screen and (min-width: $breakpoint-flyout) {
display: none;
}
}
}
}
|