simplesamlphp / simplesamlphp/simplesamlphp-assets-base
Theme colour overrides
まだ誰も着手していません。
- 主要言語
- 言語のデータがありません
- スター
- 0
- フォーク
- 2
- 平均マージ
- 8分
- マージ済み PR(30日)
- 3
説明
The #db0100 colour is hard-coded in several places in the SCSS, making it quite difficult for theme developers to override.
Doing something like:
:root {
--simplesamlphp-color: #db0100;
}
and then referencing it elsewhere as e.g.:
.pure-button-red {
background-color: var(--simplesamlphp-color);
color: #fff;
}
would make it much easier to override the colour consistently by simply declaring an additional <style> element in _head.twig with the new --simplesamlphp-color variable definition. The same could be done with the other colours that are used.
I'd do this as a pull request, but I think this repo has complexity I do not understand :-)
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
SCSS アセットでハードコードされた #db0100 の値を検索し、テーマのオーバーライドを行う場所として提案されている _head.twig を調査してください。繰り返し使用されている色を、一貫してオーバーライド可能な変数に置き換え、適切な場合は他の色も含めてください。_head.twig のスタイル宣言によって、影響を受けるすべてのアセット全体のテーマカラーを変更できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- scss
- 領域
- frontend
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 65/100