chore: move panel button match scss#7550
Conversation
There was a problem hiding this comment.
Pull request overview
This PR migrates Lakesideview skin SCSS for panels, buttons, matches, and tournament-related colors into the Lua-Modules stylesheet bundle so the styling is provided by module-loaded CSS rather than the skin.
Changes:
- Added global CSS custom properties for Team Portal button theming (light/dark).
- Added panel color variables and attempted “wiki theme color included” detection logic.
- Added match/tournament color variables (light/dark) for the main page.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
| stylesheets/commons/TeamPortal.scss | Introduces button-related CSS variables intended for Team Portal button styling. |
| stylesheets/commons/Panels.scss | Adds panel color variables and a theme-detection mechanism for selecting wiki colors vs defaults. |
| stylesheets/commons/Mainpage.scss | Adds match/tournament CSS variables for main page UI elements across themes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| $button-border-color-focus--light: var( --clr-wiki-theme-20 ); | ||
| $button-border-color-focus--dark: var( --clr-wiki-theme-40 ); | ||
| $button-color--light: var( --clr-on-primary ); | ||
| $button-color--dark: #ffffff; | ||
| $button-secondary-background-color-hover--light: hsl( from var( --clr-primary ) h s l / 0.08 ); | ||
| $button-secondary-background-color-hover--dark: hsl( from var( --clr-primary ) h s l / 0.08 ); | ||
| $button-secondary-color--light: var( --clr-primary-30 ); | ||
| $button-secondary-color--dark: var( --clr-primary-80 ); | ||
| $button-error-color--light: var( --clr-semantic-negative-40 ); | ||
| $button-error-color--dark: var( --clr-semantic-negative-80 ); | ||
|
|
||
| $button-new-primary-color--light: var( --clr-wiki-theme-40 ); | ||
| $button-new-primary-color--dark: var( --clr-wiki-theme-30 ); |
ebbd8bf to
3b38599
Compare
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
3b38599 to
93bdbfb
Compare
| border-radius: 0.5rem 0.5rem 0 0; | ||
| min-height: 3rem; | ||
| padding: 0 1rem; | ||
| font-size: 1rem; |
There was a problem hiding this comment.
| font-size: 1rem; | |
| font-weight: bold; |
Adding font-weight bold because of remove css above
| .panel-box-heading { | ||
| display: flex; | ||
| align-items: center; | ||
| background-color: var( --clr-wiki-theme-primary, var( --wiki-color-medium ) ); |
There was a problem hiding this comment.
| background-color: var( --clr-wiki-theme-primary ); |
Remove unnecessary fallback
|
|
||
| /* Panel box */ | ||
| /* Default values */ | ||
| .theme--light { | ||
| --panel-box-border-color: color-mix( in srgb, #000000 16%, var( --clr-wiki-primary-container ) ); | ||
| --panel-box-color: var( --clr-wiki-on-primary-container ); | ||
| --panel-header-background-color: var( --clr-wiki-primary-container ); | ||
| } | ||
|
|
||
| .theme--dark { | ||
| --panel-box-border-color: var( --clr-surface-3 ); | ||
| --panel-box-color: var( --clr-wiki-on-primary-container ); | ||
| --panel-header-background-color: color-mix( in srgb, #000000 20%, var( --clr-wiki-theme-20 ) ); | ||
| } | ||
|
|
||
| /* If theme was in the known list */ | ||
| $themes: sun, tuliptree, redviolet, gigas, forest; | ||
|
|
||
| @each $theme in $themes { | ||
| html[data-wiki-theme='#{$theme}'].theme--light { | ||
| --panel-box-border-color: var( --clr-#{$theme}-80 ); | ||
| --panel-box-color: var( --clr-#{$theme}-10 ); | ||
| --panel-header-background-color: var( --clr-#{$theme}-90 ); | ||
| } | ||
|
|
||
| html[data-wiki-theme='#{$theme}'].theme--dark { | ||
| --panel-box-border-color: var( --clr-#{$theme}-30 ); | ||
| --panel-box-color: var( --clr-#{$theme}-90 ); | ||
| --panel-header-background-color: var( --clr-#{$theme}-20 ); | ||
| } | ||
| } | ||
|
|
There was a problem hiding this comment.
Delete, I remember now that this was for the previous panel boxes design
| html .panel-box { | ||
| margin-bottom: 10px; | ||
| border: 0.0625rem solid var( --panel-box-border-color, var( --wiki-bordercolor-light ) ); | ||
|
|
||
| &.wiki-bordercolor-light { | ||
| border-color: var( --panel-box-border-color, var( --wiki-bordercolor-light ) ); | ||
| } | ||
| } |
There was a problem hiding this comment.
Delete, move margin-bottom: 10px; to class below (I'll add this as a suggestion)
| .panel-box { | ||
| box-shadow: 0 0.0625rem 0.25rem 0 rgba( 0, 0, 0, 0.12 ); | ||
| border: 0; | ||
| border-radius: 0.5rem; |
There was a problem hiding this comment.
| border-radius: 0.5rem; | |
| margin-bottom: 0.625rem; |
Add margin from class above
| html .panel-box-heading { | ||
| font-size: 18px; | ||
| font-weight: bold; | ||
| padding: 5px 10px; | ||
| background-color: var( --panel-header-background-color, var( --wiki-color-light ) ); | ||
| border-bottom: 0.0625rem solid var( --panel-box-border-color, var( --wiki-bordercolor-light ) ); | ||
| color: var( --panel-box-color ); | ||
|
|
||
| &.wiki-bordercolor-light { | ||
| border-color: var( --panel-box-border-color, var( --wiki-bordercolor-light ) ); | ||
| } | ||
| } | ||
|
|
||
| .panel-box-heading:not( :first-child ) { | ||
| border-top: 1px solid; | ||
| border-top-color: inherit; | ||
| } | ||
|
|
||
| .panel-box-heading > small { | ||
| font-weight: bold; | ||
| } | ||
|
|
||
| .panel-box-body { | ||
| padding: 10px; | ||
| } |
There was a problem hiding this comment.
Delete, this is old code, the mainpage uses .mainpage-v2 . Moving the font-weight from panel-box-heading to the class below (I'll add this as a suggestion)
Summary
For
Panels.scssthere will be an additional attribute being added to<html/>element onlakesideviewskins for exposing the current wiki theme ondata-wiki-themeattribute.How did you test this change?
Deployed to my dev wiki (lakesideview + Lua-Modules changes): Compared the loaded css from production with dev. Production should still contain the removed css, and on dev the css should be on the loaded modules intead of the lakeside skin.
Dev Lakeside CSS
Dev LuaModule CSS