Making WordPress.org

Changeset 12665


Ignore:
Timestamp:
06/20/2023 03:52:20 AM (18 months ago)
Author:
dd32
Message:

Make: Use more specific CSS for matching slack URLS.

Props desrosj.
Fixes #6877.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/style.css

    r12592 r12665  
    77
    88/* Show a Slack icon in front of Slack links. */
    9 a[href*=".slack.com"] {
     9a[href^="https://wordpress.slack.com"] {
    1010    word-break: break-all;
    1111    display: inline-block; /* So that the slack link doesn't break unless absolutely needed. */
    1212}
    13 a[href*=".slack.com"]::before {
     13a[href^="https://wordpress.slack.com"]::before {
    1414    content: '';
    1515    display: inline-block;
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/style.css

    r4666 r12665  
    66
    77/* Show a Slack icon in front of Slack links. */
    8 a[href*="//wordpress.slack.com"] {
     8a[href^="https://wordpress.slack.com"] {
    99    padding-left: 16px;
    1010    background: url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB3aWR0aD0iMjU2IiBoZWlnaHQ9IjI1NiIgdmlld0JveD0iMCAwIDI1NiAyNTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPjxwYXRoIGQ9Ik0xNjUuOTY0IDE1LjgzOEMxNjIuMDc0IDMuODYzIDE0OS4yMTItMi42OSAxMzcuMjQgMS4yMDJjLTExLjk3NiAzLjg5LTE4LjUzIDE2Ljc1Mi0xNC42MzcgMjguNzI1bDU4Ljk0NyAxODEuMzY1YzQuMDQ4IDExLjE4NyAxNi4xMzIgMTcuNDczIDI3LjczMiAxNC4xMzUgMTIuMS0zLjQ4MyAxOS40NzUtMTYuMzM0IDE1LjYxNC0yOC4yMTdMMTY1Ljk2NCAxNS44MzgiIGZpbGw9IiNERkEyMkYiLz48cGF0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DQ1IDEwNi40MjIuODk2IDExOC4wMjJjMy40OCAxMi4wOTggMTYuMzMyIDE5LjQ3NCAyOC4yMTcgMTUuNjEzbDE4MS4zNy01OC45MyIgZmlsbD0iIzcyQzVDRCIvPjxwYXRoIGQ9Ik01Mi44MjIgMTI1LjkzM2MxMS44MDUtMy44MzYgMjcuMDI1LTguNzgyIDQzLjM1NC0xNC4wODYtNS4zMjMtMTYuMzktMTAuMjczLTMxLjYyMi0xNC4wODQtNDMuMzUybC00My4zNiAxNC4wOTIgMTQuMDkgNDMuMzQ2IiBmaWxsPSIjMjQ4QzczIi8+PHBhdGggZD0iTTE0NC4xNiA5Ni4yNTZsNDMuMzU2LTE0LjA4OGMtNS4zMjYtMTYuMzkzLTEwLjI3Ni0zMS42My0xNC4wOS00My4zNkwxMzAuMDcgNTIuOWwxNC4wOSA0My4zNTYiIGZpbGw9IiM2MjgwM0EiLz48L3N2Zz4=) no-repeat 0 1px;
     
    2020/* Handbook-specific styles */
    2121
    22 .post-type-archive-handbook .postcontent a[href*="//"]:not([href*="wordpress.org"]):not([href*="wordpress.slack.com"]),
    23 .single-handbook .postcontent a[href*="//"]:not([href*="wordpress.org"]):not([href*="wordpress.slack.com"]) {
     22.post-type-archive-handbook .postcontent a[href*="//"]:not([href*="wordpress.org"]):not([href^="https://wordpress.slack.com"]),
     23.single-handbook .postcontent a[href*="//"]:not([href*="wordpress.org"]):not([href^="https://wordpress.slack.com"]) {
    2424    padding-left: 16px;
    2525    background: url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggZmlsbD0iIzI2N0RCMiIgZD0iTTE2LjUgNS44Yy0xLjEuOS0yIDItMS43IDMuMS40IDEuMiAxLjggMS43IDIuNSAzLjUuMi0uNSAxLjMtMy4zLS44LTYuNnpNOCAxMC4xYy0xLjQuNy0xLjYgMS42LTEuOCAyLjUuNiAxLjIgMy4zLjkgMy4yIDUgMy4zLTEuNCA0LTMuMiA0LjEtNC43IDAtMS41LS4zLTIuNS0zLjYtMy4xLTMuMy0uNS00LjctMi4xLTMuMy0zLjIuOS0uNyAxLjYgMS40IDMuMSAxLjItMS41LTEuNC0uOC00LjIgMC01LjYtMy40LjEtNi4yIDIuNS03LjIgNS42IDEgMS4xIDIuNyAyIDUuNSAyLjN6bTExLS4xYzAgNS00IDktOSA5cy05LTQtOS05IDQtOSA5LTkgOSA0IDkgOXoiLz48L3N2Zz4=) no-repeat 0 1px;
     
    2727}
    2828
    29 .post-type-archive-handbook .postcontent a[href*="//"]:not([href*="wordpress.org"]):not([href*="wordpress.slack.com"]):hover,
    30 .single-handbook .postcontent a[href*="//"]:not([href*="wordpress.org"]):not([href*="wordpress.slack.com"]):hover {
     29.post-type-archive-handbook .postcontent a[href*="//"]:not([href*="wordpress.org"]):not([href^="https://wordpress.slack.com"]):hover,
     30.single-handbook .postcontent a[href*="//"]:not([href*="wordpress.org"]):not([href^="https://wordpress.slack.com"]):hover {
    3131    background-image: url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggZmlsbD0iI2Q1NGUyMSIgZD0iTTE2LjUgNS44Yy0xLjEuOS0yIDItMS43IDMuMS40IDEuMiAxLjggMS43IDIuNSAzLjUuMi0uNSAxLjMtMy4zLS44LTYuNnpNOCAxMC4xYy0xLjQuNy0xLjYgMS42LTEuOCAyLjUuNiAxLjIgMy4zLjkgMy4yIDUgMy4zLTEuNCA0LTMuMiA0LjEtNC43IDAtMS41LS4zLTIuNS0zLjYtMy4xLTMuMy0uNS00LjctMi4xLTMuMy0zLjIuOS0uNyAxLjYgMS40IDMuMSAxLjItMS41LTEuNC0uOC00LjIgMC01LjYtMy40LjEtNi4yIDIuNS03LjIgNS42IDEgMS4xIDIuNyAyIDUuNSAyLjN6bTExLS4xYzAgNS00IDktOSA5cy05LTQtOS05IDQtOSA5LTkgOSA0IDkgOXoiLz48L3N2Zz4=);
    3232}
Note: See TracChangeset for help on using the changeset viewer.