diff options
| author | 2024-01-28 13:16:14 +0100 | |
|---|---|---|
| committer | 2024-01-28 13:16:14 +0100 | |
| commit | 6422e181e7a6c1127e52e7278ac5f017f9c304d7 (patch) | |
| tree | 9f10b0b2c8abb6e984401de96901a460fe672004 /pydis_site/static/css/resources/resources.css | |
| parent | Bump python-dotenv from 1.0.0 to 1.0.1 (#1212) (diff) | |
| parent | Dark: Use a darker pydis blurple everywhere (diff) | |
Merge pull request #1176 from hedyhli/gdwr-dark-theme
Dark theme
Diffstat (limited to 'pydis_site/static/css/resources/resources.css')
| -rw-r--r-- | pydis_site/static/css/resources/resources.css | 28 | 
1 files changed, 18 insertions, 10 deletions
diff --git a/pydis_site/static/css/resources/resources.css b/pydis_site/static/css/resources/resources.css index 96d06111..3bf5ade4 100644 --- a/pydis_site/static/css/resources/resources.css +++ b/pydis_site/static/css/resources/resources.css @@ -37,7 +37,7 @@ i.has-icon-padding {      display: none;  }  #tab-content p.is-active { -display: block; +    display: block;  }  /* Disable highlighting for all text in the filters. */ @@ -154,11 +154,15 @@ i.is-primary {  }  /* When hovering title anchors, just make the color a lighter primary, not black. */ -.resource-box a:hover { +[data-theme="light"] .resource-box a:hover {      filter: brightness(120%);      color: #7289DA;  } +[data-theme="dark"] .resource-box a:hover { +    color: white; +} +  /* Set default display to inline-flex, for centering. */  span.filter-box-tag {      display: none; @@ -195,22 +199,26 @@ button.delete {  }  /* Colors for delete button x's */ -button.delete.is-primary::before, -button.delete.is-primary::after { +[data-theme="light"] button.delete.is-primary::before, +[data-theme="light"] button.delete.is-primary::after {      background-color: #2a45a2;  } -button.delete.is-success::before, -button.delete.is-success::after { +[data-theme="light"] button.delete.is-success::before, +[data-theme="light"] button.delete.is-success::after {      background-color: #2c9659;  } -button.delete.is-danger::before, -button.delete.is-danger::after { +[data-theme="light"] button.delete.is-danger::before, +[data-theme="light"] button.delete.is-danger::after {      background-color: #c32841;  } -button.delete.is-info::before, -button.delete.is-info::after { +[data-theme="light"] button.delete.is-info::before, +[data-theme="light"] button.delete.is-info::after {      background-color: #237fbd;  } +[data-theme="dark"] button.delete::before, +[data-theme="dark"] button.delete::after { +    background-color: #FFFFFF; +}  /* Give outlines to active tags */  span.filter-box-tag,  |