mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
[Glitch] Add high-contrast theme
This commit is contained in:
parent
caebf69e77
commit
f7a076eded
3
app/javascript/flavours/glitch/styles/contrast.scss
Normal file
3
app/javascript/flavours/glitch/styles/contrast.scss
Normal file
@ -0,0 +1,3 @@
|
||||
@import 'contrast/variables';
|
||||
@import 'index';
|
||||
@import 'contrast/diff';
|
14
app/javascript/flavours/glitch/styles/contrast/diff.scss
Normal file
14
app/javascript/flavours/glitch/styles/contrast/diff.scss
Normal file
@ -0,0 +1,14 @@
|
||||
// components.scss
|
||||
.compose-form {
|
||||
.compose-form__modifiers {
|
||||
.compose-form__upload {
|
||||
&-description {
|
||||
input {
|
||||
&::placeholder {
|
||||
opacity: 1.0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
// Dependent colors
|
||||
$black: #000000;
|
||||
|
||||
$classic-base-color: #282c37;
|
||||
$classic-primary-color: #9baec8;
|
||||
$classic-secondary-color: #d9e1e8;
|
||||
|
||||
$ui-base-color: $classic-base-color !default;
|
||||
$ui-primary-color: $classic-primary-color !default;
|
||||
$ui-secondary-color: $classic-secondary-color !default;
|
||||
|
||||
// Differences
|
||||
$ui-highlight-color: #2b5fd9;
|
||||
|
||||
$darker-text-color: lighten($ui-primary-color, 20%) !default;
|
||||
$dark-text-color: lighten($ui-primary-color, 12%) !default;
|
||||
$secondary-text-color: lighten($ui-secondary-color, 6%) !default;
|
||||
$action-button-color: #8d9ac2;
|
||||
|
||||
$inverted-text-color: $black !default;
|
||||
$lighter-text-color: darken($ui-base-color,6%) !default;
|
||||
$light-text-color: darken($ui-primary-color, 40%) !default;
|
1
app/javascript/skins/glitch/contrast/common.scss
Normal file
1
app/javascript/skins/glitch/contrast/common.scss
Normal file
@ -0,0 +1 @@
|
||||
@import 'flavours/glitch/styles/contrast';
|
4
app/javascript/skins/glitch/contrast/names.yml
Normal file
4
app/javascript/skins/glitch/contrast/names.yml
Normal file
@ -0,0 +1,4 @@
|
||||
en:
|
||||
skins:
|
||||
glitch:
|
||||
contrast: High contrast
|
Loading…
Reference in New Issue
Block a user