| @@ -1,19 +1,27 @@ | ||
| 1 | 1 | .activitypub-settings { |
| 2 | 2 | max-width: 800px; |
| 3 | 3 | margin: 0 auto; |
| 4 | + position: relative; | |
| 4 | 5 | } |
| 5 | 6 | |
| 6 | -.settings_page_activitypub .notice { | |
| 7 | +.settings_page_activitypub div:not(.wrap) > .notice { | |
| 7 | 8 | max-width: 800px; |
| 8 | - margin: auto; | |
| 9 | - margin: 0px auto 30px; | |
| 9 | + margin: 0 auto 30px; | |
| 10 | 10 | } |
| 11 | 11 | |
| 12 | +.settings_page_activitypub div:not(.wrap) > .update-nag { | |
| 13 | + margin: 25px 20px 15px 22px; | |
| 14 | +} | |
| 15 | + | |
| 12 | 16 | .settings_page_activitypub .wrap { |
| 13 | 17 | padding-left: 22px; |
| 14 | 18 | } |
| 15 | 19 | |
| 20 | +.activitypub-settings p.interactions { | |
| 21 | + margin-bottom: 1em; | |
| 22 | +} | |
| 23 | + | |
| 16 | 24 | .activitypub-settings-header { |
| 17 | 25 | text-align: center; |
| 18 | 26 | margin: 0 0 1rem; |
| 19 | 27 | background: #fff; |
| @@ -19,8 +27,17 @@ | ||
| 19 | 27 | background: #fff; |
| 20 | 28 | border-bottom: 1px solid #dcdcde; |
| 21 | 29 | } |
| 22 | 30 | |
| 31 | +.activitypub-settings-header h1 { | |
| 32 | + display: inline-block; | |
| 33 | + font-weight: 600; | |
| 34 | + margin: 0 0.8rem 1rem; | |
| 35 | + font-size: 23px; | |
| 36 | + padding: 9px 0 4px; | |
| 37 | + line-height: 1.3; | |
| 38 | +} | |
| 39 | + | |
| 23 | 40 | .activitypub-settings-title-section { |
| 24 | 41 | display: flex; |
| 25 | 42 | align-items: center; |
| 26 | 43 | justify-content: center; |
| @@ -31,14 +48,21 @@ | ||
| 31 | 48 | .settings_page_activitypub #wpcontent { |
| 32 | 49 | padding-left: 0; |
| 33 | 50 | } |
| 34 | 51 | |
| 52 | +.activitypub-settings-tabs-scroller { | |
| 53 | + overflow-x: auto; | |
| 54 | + width: 100%; | |
| 55 | + padding-top: 2px; | |
| 56 | + -webkit-overflow-scrolling: touch; | |
| 57 | + scroll-behavior: smooth; | |
| 58 | +} | |
| 59 | + | |
| 35 | 60 | .activitypub-settings-tabs-wrapper { |
| 36 | - display: -ms-inline-grid; | |
| 37 | - -ms-grid-columns: auto auto auto; | |
| 61 | + display: inline-flex; | |
| 38 | 62 | vertical-align: top; |
| 39 | - display: inline-grid; | |
| 40 | - grid-template-columns: auto auto auto; | |
| 63 | + flex-wrap: nowrap; | |
| 64 | + gap: 0; | |
| 41 | 65 | } |
| 42 | 66 | |
| 43 | 67 | .activitypub-settings-tab.active { |
| 44 | 68 | box-shadow: inset 0 -3px #3582c4; |
| @@ -48,13 +72,28 @@ | ||
| 48 | 72 | .activitypub-settings-tab { |
| 49 | 73 | display: block; |
| 50 | 74 | text-decoration: none; |
| 51 | 75 | color: inherit; |
| 52 | - padding: .5rem 1rem 1rem; | |
| 76 | + padding: 0.5rem 1rem 1rem; | |
| 53 | 77 | margin: 0 1rem; |
| 54 | - transition: box-shadow .5s ease-in-out; | |
| 78 | + transition: box-shadow 0.5s ease-in-out; | |
| 79 | + white-space: nowrap; | |
| 55 | 80 | } |
| 56 | 81 | |
| 82 | +.activitypub-settings .row { | |
| 83 | + margin-bottom: 16px; | |
| 84 | +} | |
| 85 | + | |
| 86 | +.activitypub-settings .row > div { | |
| 87 | + max-width: calc(100% - 24px); | |
| 88 | + display: inline-flex; | |
| 89 | + flex-direction: column; | |
| 90 | +} | |
| 91 | + | |
| 92 | +.activitypub-settings .row .description { | |
| 93 | + margin-top: 0; | |
| 94 | +} | |
| 95 | + | |
| 57 | 96 | .wp-header-end { |
| 58 | 97 | visibility: hidden; |
| 59 | 98 | margin: -2px 0 0; |
| 60 | 99 | } |
| @@ -64,8 +103,27 @@ | ||
| 64 | 103 | text-decoration: underline; |
| 65 | 104 | color: #2271b1; |
| 66 | 105 | } |
| 67 | 106 | |
| 107 | +.activitypub-site-block-details { | |
| 108 | + margin: 10px 0; | |
| 109 | +} | |
| 110 | + | |
| 111 | +.activitypub-site-block-details summary { | |
| 112 | + padding: 8px 0; | |
| 113 | + color: inherit; | |
| 114 | + text-decoration: none; | |
| 115 | +} | |
| 116 | + | |
| 117 | +.activitypub-site-block-details table { | |
| 118 | + max-width: 500px; | |
| 119 | + margin-top: 10px; | |
| 120 | +} | |
| 121 | + | |
| 122 | +.activitypub-site-block-details td:last-child { | |
| 123 | + width: 80px; | |
| 124 | +} | |
| 125 | + | |
| 68 | 126 | .activitypub-settings-accordion { |
| 69 | 127 | border: 1px solid #c3c4c7; |
| 70 | 128 | } |
| 71 | 129 | |
| @@ -106,15 +164,8 @@ | ||
| 106 | 164 | -webkit-user-select: auto; |
| 107 | 165 | user-select: auto; |
| 108 | 166 | } |
| 109 | 167 | |
| 110 | -.activitypub-settings-accordion-trigger { | |
| 111 | - color: #2c3338; | |
| 112 | - cursor: pointer; | |
| 113 | - font-weight: 400; | |
| 114 | - text-align: left; | |
| 115 | -} | |
| 116 | - | |
| 117 | 168 | .activitypub-settings-accordion-trigger .title { |
| 118 | 169 | pointer-events: none; |
| 119 | 170 | font-weight: 600; |
| 120 | 171 | flex-grow: 1; |
| @@ -123,15 +174,15 @@ | ||
| 123 | 174 | .activitypub-settings-accordion-trigger .icon, |
| 124 | 175 | .activitypub-settings-accordion-viewed .icon { |
| 125 | 176 | border: solid #50575e medium; |
| 126 | 177 | border-width: 0 2px 2px 0; |
| 127 | - height: .5rem; | |
| 178 | + height: 0.5rem; | |
| 128 | 179 | pointer-events: none; |
| 129 | 180 | position: absolute; |
| 130 | 181 | right: 1.5em; |
| 131 | 182 | top: 50%; |
| 132 | 183 | transform: translateY(-70%) rotate(45deg); |
| 133 | - width: .5rem; | |
| 184 | + width: 0.5rem; | |
| 134 | 185 | } |
| 135 | 186 | |
| 136 | 187 | .activitypub-settings-accordion-trigger[aria-expanded="true"] .icon { |
| 137 | 188 | transform: translateY(-30%) rotate(-135deg); |
| @@ -136,8 +187,13 @@ | ||
| 136 | 187 | .activitypub-settings-accordion-trigger[aria-expanded="true"] .icon { |
| 137 | 188 | transform: translateY(-30%) rotate(-135deg); |
| 138 | 189 | } |
| 139 | 190 | |
| 191 | +table.followings .dashicons { | |
| 192 | + font-size: 1em; | |
| 193 | + line-height: 1.7; | |
| 194 | +} | |
| 195 | + | |
| 140 | 196 | .activitypub-settings-accordion-trigger:active, |
| 141 | 197 | .activitypub-settings-accordion-trigger:hover { |
| 142 | 198 | background: #f6f7f7; |
| 143 | 199 | } |
| @@ -162,15 +218,14 @@ | ||
| 162 | 218 | height: 80px; |
| 163 | 219 | position: relative; |
| 164 | 220 | display: block; |
| 165 | 221 | margin-bottom: 40px; |
| 166 | - background-image: rgb(168,165,175); | |
| 167 | - background-image: linear-gradient(180deg, red, yellow); | |
| 222 | + background-image: rgb(168, 165, 175); | |
| 223 | + background-image: linear-gradient(180deg, #f00, #ff0); | |
| 168 | 224 | background-size: cover; |
| 169 | 225 | } |
| 170 | 226 | |
| 171 | -.activitypub-settings | |
| 172 | -.logo { | |
| 227 | +.activitypub-settings .logo { | |
| 173 | 228 | height: 80px; |
| 174 | 229 | width: 80px; |
| 175 | 230 | position: relative; |
| 176 | 231 | top: 40px; |
| @@ -176,24 +231,184 @@ | ||
| 176 | 231 | top: 40px; |
| 177 | 232 | left: 40px; |
| 178 | 233 | } |
| 179 | 234 | |
| 180 | -.settings_page_activitypub .box { | |
| 181 | - border: 1px solid #c3c4c7; | |
| 182 | - background-color: #fff; | |
| 183 | - padding: 1em 1.5em; | |
| 184 | - margin-bottom: 1.5em; | |
| 235 | +.settings_page_activitypub .plugin-recommendations { | |
| 236 | + border-bottom: none; | |
| 237 | + margin-bottom: 0; | |
| 185 | 238 | } |
| 186 | 239 | |
| 187 | -.settings_page_activitypub .activitypub-welcome-page .box label { | |
| 188 | - font-weight: bold; | |
| 240 | +/* stylelint-disable-next-line selector-id-pattern -- WordPress core ID */ | |
| 241 | +#dashboard_right_now li a.activitypub-followers::before { | |
| 242 | + content: "\f307"; | |
| 243 | + /* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */ | |
| 244 | + font-family: dashicons; | |
| 189 | 245 | } |
| 190 | 246 | |
| 191 | -.settings_page_activitypub .activitypub-welcome-page input { | |
| 192 | - font-size: 20px; | |
| 193 | - width: 95%; | |
| 247 | +.activitypub-comment .dashboard-comment-wrap { | |
| 248 | + padding-inline-start: 63px; | |
| 194 | 249 | } |
| 195 | 250 | |
| 196 | -.settings_page_activitypub .plugin-recommendations { | |
| 197 | - border-bottom: none; | |
| 251 | +.activitypub-comment .dashboard-comment-wrap .comment-author { | |
| 252 | + margin-block: 0; | |
| 253 | +} | |
| 254 | + | |
| 255 | +.extra-fields-nav a + a { | |
| 256 | + margin-left: 8px; | |
| 257 | +} | |
| 258 | + | |
| 259 | +.rtl .extra-fields-nav a + a { | |
| 260 | + margin-left: auto; | |
| 261 | + margin-right: 8px; | |
| 262 | +} | |
| 263 | + | |
| 264 | +.contextual-help-tabs-wrap dt { | |
| 265 | + font-weight: 600; | |
| 266 | +} | |
| 267 | + | |
| 268 | +.contextual-help-tabs-wrap .activitypub-block-screenshot { | |
| 269 | + margin: 10px 0; | |
| 270 | +} | |
| 271 | + | |
| 272 | +.contextual-help-tabs-wrap .activitypub-block-screenshot img { | |
| 273 | + border: 1px solid #ddd; | |
| 274 | + border-radius: 4px; | |
| 275 | + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); | |
| 276 | + height: auto; | |
| 277 | + max-width: 100%; | |
| 278 | +} | |
| 279 | + | |
| 280 | +.contextual-help-tabs-wrap .activitypub-block-screenshot figcaption { | |
| 281 | + color: #555; | |
| 282 | + font-style: italic; | |
| 283 | + font-size: 0.9em; | |
| 284 | + margin-top: 5px; | |
| 285 | +} | |
| 286 | + | |
| 287 | +/* Blockquote Styles */ | |
| 288 | +.contextual-help-tabs-wrap blockquote { | |
| 289 | + border-left: 4px solid #3582c4; | |
| 290 | + background-color: #f6f7f7; | |
| 291 | + padding: 16px 20px; | |
| 292 | + margin: 0 0 20px; | |
| 293 | +} | |
| 294 | + | |
| 295 | +.contextual-help-tabs-wrap blockquote p { | |
| 296 | + margin: 0 0 10px; | |
| 297 | + line-height: 1.5; | |
| 298 | +} | |
| 299 | + | |
| 300 | +.contextual-help-tabs-wrap blockquote p:last-child { | |
| 198 | 301 | margin-bottom: 0; |
| 302 | +} | |
| 303 | + | |
| 304 | +.contextual-help-tabs-wrap blockquote cite { | |
| 305 | + display: block; | |
| 306 | + font-weight: 600; | |
| 307 | + margin-top: 8px; | |
| 308 | + font-size: 0.9em; | |
| 309 | + color: #50575e; | |
| 310 | +} | |
| 311 | + | |
| 312 | +.contextual-help-tabs-wrap blockquote cite::before { | |
| 313 | + content: "—"; | |
| 314 | +} | |
| 315 | + | |
| 316 | +/* Plugin List Styles */ | |
| 317 | +.plugin-list { | |
| 318 | + display: flex; | |
| 319 | + flex-wrap: wrap; | |
| 320 | + gap: 16px; | |
| 321 | + align-items: stretch; | |
| 322 | +} | |
| 323 | + | |
| 324 | +.plugin-list .plugin-card { | |
| 325 | + flex: 1 1 300px; | |
| 326 | + display: flex; | |
| 327 | + flex-direction: column; | |
| 328 | + box-sizing: border-box; | |
| 329 | + border-radius: 4px; | |
| 330 | + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); | |
| 331 | + margin: 0; | |
| 332 | +} | |
| 333 | + | |
| 334 | +.plugin-list .plugin-card .desc { | |
| 335 | + flex: 1 1 auto; | |
| 336 | +} | |
| 337 | + | |
| 338 | +.plugin-list .plugin-action-buttons li { | |
| 339 | + display: inline-block; | |
| 340 | + vertical-align: middle; | |
| 341 | + margin: 0 0 10px 0; | |
| 342 | +} | |
| 343 | + | |
| 344 | +.plugin-list .plugin-card .action-links { | |
| 345 | + position: static; | |
| 346 | + margin-left: 148px; | |
| 347 | + width: auto; | |
| 348 | +} | |
| 349 | + | |
| 350 | +.plugin-list .plugin-action-buttons { | |
| 351 | + float: none; | |
| 352 | + margin: 1em 0 0; | |
| 353 | + text-align: left; | |
| 354 | +} | |
| 355 | + | |
| 356 | +.plugin-list .plugin-action-buttons li .button { | |
| 357 | + margin-right: 20px; | |
| 358 | +} | |
| 359 | + | |
| 360 | +.plugin-list .plugin-card h3 { | |
| 361 | + margin-right: 24px; | |
| 362 | +} | |
| 363 | + | |
| 364 | +/* stylelint-disable no-descending-specificity */ | |
| 365 | +.plugin-list .plugin-card .name, | |
| 366 | +.plugin-list .plugin-card .desc, | |
| 367 | +.plugin-card .desc > p { | |
| 368 | + margin-right: 0; | |
| 369 | +} | |
| 370 | +/* stylelint-enable no-descending-specificity */ | |
| 371 | + | |
| 372 | +.plugin-list .plugin-card .desc p:first-of-type { | |
| 373 | + margin-top: 0; | |
| 374 | +} | |
| 375 | + | |
| 376 | +/* RTL Support for blockquotes */ | |
| 377 | +.rtl .contextual-help-tabs-wrap blockquote { | |
| 378 | + border-left: none; | |
| 379 | + border-right: 4px solid #3582c4; | |
| 380 | + padding: 16px 20px; | |
| 381 | +} | |
| 382 | + | |
| 383 | +#activitypub-follow-form .highlight { | |
| 384 | + animation: highlight-fade 3s ease-in-out; | |
| 385 | + border-color: #3582c4 !important; | |
| 386 | + box-shadow: 0 0 0 1px #3582c4; | |
| 387 | +} | |
| 388 | + | |
| 389 | +@keyframes highlight-fade { | |
| 390 | + | |
| 391 | + 0% { | |
| 392 | + background-color: #e7f3ff; | |
| 393 | + border-color: #3582c4; | |
| 394 | + box-shadow: 0 0 0 1px #3582c4; | |
| 395 | + } | |
| 396 | + | |
| 397 | + 100% { | |
| 398 | + background-color: #fff; | |
| 399 | + border-color: #8c8f94; | |
| 400 | + box-shadow: none; | |
| 401 | + } | |
| 402 | +} | |
| 403 | + | |
| 404 | +@media screen and (max-width: 782px) { | |
| 405 | + | |
| 406 | + .activitypub-settings { | |
| 407 | + margin: 0 22px; | |
| 408 | + } | |
| 409 | + | |
| 410 | + .activitypub-settings .row > div { | |
| 411 | + max-width: calc(100% - 36px); | |
| 412 | + width: 100%; | |
| 413 | + } | |
| 199 | 414 | } |