| @@ -1,27 +1,19 @@ | ||
| 1 | 1 | .activitypub-settings { |
| 2 | 2 | max-width: 800px; |
| 3 | 3 | margin: 0 auto; |
| 4 | - position: relative; | |
| 5 | 4 | } |
| 6 | 5 | |
| 7 | -.settings_page_activitypub div:not(.wrap) > .notice { | |
| 6 | +.settings_page_activitypub .notice { | |
| 8 | 7 | max-width: 800px; |
| 9 | - margin: 0 auto 30px; | |
| 8 | + margin: auto; | |
| 9 | + margin: 0px auto 30px; | |
| 10 | 10 | } |
| 11 | 11 | |
| 12 | -.settings_page_activitypub div:not(.wrap) > .update-nag { | |
| 13 | - margin: 25px 20px 15px 22px; | |
| 14 | -} | |
| 15 | - | |
| 16 | 12 | .settings_page_activitypub .wrap { |
| 17 | 13 | padding-left: 22px; |
| 18 | 14 | } |
| 19 | 15 | |
| 20 | -.activitypub-settings p.interactions { | |
| 21 | - margin-bottom: 1em; | |
| 22 | -} | |
| 23 | - | |
| 24 | 16 | .activitypub-settings-header { |
| 25 | 17 | text-align: center; |
| 26 | 18 | margin: 0 0 1rem; |
| 27 | 19 | background: #fff; |
| @@ -27,17 +19,8 @@ | ||
| 27 | 19 | background: #fff; |
| 28 | 20 | border-bottom: 1px solid #dcdcde; |
| 29 | 21 | } |
| 30 | 22 | |
| 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 | - | |
| 40 | 23 | .activitypub-settings-title-section { |
| 41 | 24 | display: flex; |
| 42 | 25 | align-items: center; |
| 43 | 26 | justify-content: center; |
| @@ -48,21 +31,14 @@ | ||
| 48 | 31 | .settings_page_activitypub #wpcontent { |
| 49 | 32 | padding-left: 0; |
| 50 | 33 | } |
| 51 | 34 | |
| 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 | - | |
| 60 | 35 | .activitypub-settings-tabs-wrapper { |
| 61 | - display: inline-flex; | |
| 36 | + display: -ms-inline-grid; | |
| 37 | + -ms-grid-columns: auto auto auto; | |
| 62 | 38 | vertical-align: top; |
| 63 | - flex-wrap: nowrap; | |
| 64 | - gap: 0; | |
| 39 | + display: inline-grid; | |
| 40 | + grid-template-columns: auto auto auto; | |
| 65 | 41 | } |
| 66 | 42 | |
| 67 | 43 | .activitypub-settings-tab.active { |
| 68 | 44 | box-shadow: inset 0 -3px #3582c4; |
| @@ -72,28 +48,13 @@ | ||
| 72 | 48 | .activitypub-settings-tab { |
| 73 | 49 | display: block; |
| 74 | 50 | text-decoration: none; |
| 75 | 51 | color: inherit; |
| 76 | - padding: 0.5rem 1rem 1rem; | |
| 52 | + padding: .5rem 1rem 1rem; | |
| 77 | 53 | margin: 0 1rem; |
| 78 | - transition: box-shadow 0.5s ease-in-out; | |
| 79 | - white-space: nowrap; | |
| 54 | + transition: box-shadow .5s ease-in-out; | |
| 80 | 55 | } |
| 81 | 56 | |
| 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 | - | |
| 96 | 57 | .wp-header-end { |
| 97 | 58 | visibility: hidden; |
| 98 | 59 | margin: -2px 0 0; |
| 99 | 60 | } |
| @@ -103,27 +64,8 @@ | ||
| 103 | 64 | text-decoration: underline; |
| 104 | 65 | color: #2271b1; |
| 105 | 66 | } |
| 106 | 67 | |
| 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 | - | |
| 126 | 68 | .activitypub-settings-accordion { |
| 127 | 69 | border: 1px solid #c3c4c7; |
| 128 | 70 | } |
| 129 | 71 | |
| @@ -164,8 +106,15 @@ | ||
| 164 | 106 | -webkit-user-select: auto; |
| 165 | 107 | user-select: auto; |
| 166 | 108 | } |
| 167 | 109 | |
| 110 | +.activitypub-settings-accordion-trigger { | |
| 111 | + color: #2c3338; | |
| 112 | + cursor: pointer; | |
| 113 | + font-weight: 400; | |
| 114 | + text-align: left; | |
| 115 | +} | |
| 116 | + | |
| 168 | 117 | .activitypub-settings-accordion-trigger .title { |
| 169 | 118 | pointer-events: none; |
| 170 | 119 | font-weight: 600; |
| 171 | 120 | flex-grow: 1; |
| @@ -174,15 +123,15 @@ | ||
| 174 | 123 | .activitypub-settings-accordion-trigger .icon, |
| 175 | 124 | .activitypub-settings-accordion-viewed .icon { |
| 176 | 125 | border: solid #50575e medium; |
| 177 | 126 | border-width: 0 2px 2px 0; |
| 178 | - height: 0.5rem; | |
| 127 | + height: .5rem; | |
| 179 | 128 | pointer-events: none; |
| 180 | 129 | position: absolute; |
| 181 | 130 | right: 1.5em; |
| 182 | 131 | top: 50%; |
| 183 | 132 | transform: translateY(-70%) rotate(45deg); |
| 184 | - width: 0.5rem; | |
| 133 | + width: .5rem; | |
| 185 | 134 | } |
| 186 | 135 | |
| 187 | 136 | .activitypub-settings-accordion-trigger[aria-expanded="true"] .icon { |
| 188 | 137 | transform: translateY(-30%) rotate(-135deg); |
| @@ -187,13 +136,8 @@ | ||
| 187 | 136 | .activitypub-settings-accordion-trigger[aria-expanded="true"] .icon { |
| 188 | 137 | transform: translateY(-30%) rotate(-135deg); |
| 189 | 138 | } |
| 190 | 139 | |
| 191 | -table.followings .dashicons { | |
| 192 | - font-size: 1em; | |
| 193 | - line-height: 1.7; | |
| 194 | -} | |
| 195 | - | |
| 196 | 140 | .activitypub-settings-accordion-trigger:active, |
| 197 | 141 | .activitypub-settings-accordion-trigger:hover { |
| 198 | 142 | background: #f6f7f7; |
| 199 | 143 | } |
| @@ -218,14 +162,15 @@ | ||
| 218 | 162 | height: 80px; |
| 219 | 163 | position: relative; |
| 220 | 164 | display: block; |
| 221 | 165 | margin-bottom: 40px; |
| 222 | - background-image: rgb(168, 165, 175); | |
| 223 | - background-image: linear-gradient(180deg, #f00, #ff0); | |
| 166 | + background-image: rgb(168,165,175); | |
| 167 | + background-image: linear-gradient(180deg, red, yellow); | |
| 224 | 168 | background-size: cover; |
| 225 | 169 | } |
| 226 | 170 | |
| 227 | -.activitypub-settings .logo { | |
| 171 | +.activitypub-settings | |
| 172 | +.logo { | |
| 228 | 173 | height: 80px; |
| 229 | 174 | width: 80px; |
| 230 | 175 | position: relative; |
| 231 | 176 | top: 40px; |
| @@ -231,184 +176,24 @@ | ||
| 231 | 176 | top: 40px; |
| 232 | 177 | left: 40px; |
| 233 | 178 | } |
| 234 | 179 | |
| 235 | -.settings_page_activitypub .plugin-recommendations { | |
| 236 | - border-bottom: none; | |
| 237 | - margin-bottom: 0; | |
| 180 | +.settings_page_activitypub .box { | |
| 181 | + border: 1px solid #c3c4c7; | |
| 182 | + background-color: #fff; | |
| 183 | + padding: 1em 1.5em; | |
| 184 | + margin-bottom: 1.5em; | |
| 238 | 185 | } |
| 239 | 186 | |
| 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; | |
| 187 | +.settings_page_activitypub .activitypub-welcome-page .box label { | |
| 188 | + font-weight: bold; | |
| 245 | 189 | } |
| 246 | 190 | |
| 247 | -.activitypub-comment .dashboard-comment-wrap { | |
| 248 | - padding-inline-start: 63px; | |
| 191 | +.settings_page_activitypub .activitypub-welcome-page input { | |
| 192 | + font-size: 20px; | |
| 193 | + width: 95%; | |
| 249 | 194 | } |
| 250 | 195 | |
| 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 { | |
| 196 | +.settings_page_activitypub .plugin-recommendations { | |
| 197 | + border-bottom: none; | |
| 301 | 198 | 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 | - } | |
| 414 | 199 | } |