mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-27 04:41:37 +01:00
b85dec2b97
- Updates scss variables file to use better-named variables for black/white/etc - Arranges the "mastodon classic" colors into variables - Remove all references to `$color-*` naming, replacing with new This does not in itself introduce "theme" support, but: - It would probably be easier to start working on theme support after this change and others - Even without the goal of themes, these changes make it more clear how the colors are being used. There is almost definitely some edge case in here where I've guessed the intent/context of some color usage incorrectly, but it still seems like a net improvement.
248 lines
4.2 KiB
SCSS
248 lines
4.2 KiB
SCSS
.admin-wrapper {
|
|
display: flex;
|
|
justify-content: center;
|
|
height: 100%;
|
|
|
|
.sidebar-wrapper {
|
|
flex: 1;
|
|
height: 100%;
|
|
background: $ui-base-color;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.sidebar {
|
|
width: 240px;
|
|
height: 100%;
|
|
padding: 0;
|
|
overflow-y: auto;
|
|
|
|
.logo {
|
|
display: block;
|
|
margin: 40px auto;
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
|
|
ul {
|
|
list-style: none;
|
|
border-radius: 4px 0 0 4px;
|
|
overflow: hidden;
|
|
margin-bottom: 20px;
|
|
|
|
a {
|
|
display: block;
|
|
padding: 15px 25px;
|
|
color: rgba($primary-text-color, 0.7);
|
|
text-decoration: none;
|
|
transition: all 200ms linear;
|
|
border-radius: 4px 0 0 4px;
|
|
|
|
i.fa {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
&:hover {
|
|
color: $primary-text-color;
|
|
background-color: darken($ui-base-color, 5%);
|
|
transition: all 100ms linear;
|
|
}
|
|
|
|
&.selected {
|
|
background: darken($ui-base-color, 2%);
|
|
border-radius: 4px 0 0;
|
|
}
|
|
}
|
|
|
|
ul {
|
|
background: darken($ui-base-color, 4%);
|
|
border-radius: 0 0 0 4px;
|
|
margin: 0;
|
|
|
|
a {
|
|
border: 0;
|
|
|
|
&.selected {
|
|
color: $primary-text-color;
|
|
background-color: $ui-highlight-color;
|
|
border-bottom: 0;
|
|
border-radius: 0;
|
|
|
|
&:hover {
|
|
background-color: lighten($ui-highlight-color, 5%);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.content-wrapper {
|
|
flex: 2;
|
|
overflow: auto;
|
|
}
|
|
|
|
.content {
|
|
max-width: 700px;
|
|
padding: 20px 15px;
|
|
padding-top: 60px;
|
|
padding-left: 25px;
|
|
|
|
h2 {
|
|
color: $ui-secondary-color;
|
|
font-size: 24px;
|
|
line-height: 28px;
|
|
font-weight: 400;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
& > p {
|
|
font-size: 14px;
|
|
line-height: 18px;
|
|
color: $ui-secondary-color;
|
|
margin-bottom: 20px;
|
|
|
|
strong {
|
|
color: $primary-text-color;
|
|
font-weight: 500;
|
|
}
|
|
}
|
|
|
|
hr {
|
|
margin: 20px 0;
|
|
border: 0;
|
|
background: transparent;
|
|
border-bottom: 1px solid $ui-base-color;
|
|
}
|
|
}
|
|
|
|
.simple_form {
|
|
max-width: 400px;
|
|
|
|
.label_input {
|
|
label.select {
|
|
width: 50%;
|
|
}
|
|
|
|
select {
|
|
width: 50%;
|
|
float: right;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 600px) {
|
|
display: block;
|
|
overflow-y: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
.sidebar-wrapper,
|
|
.content-wrapper {
|
|
flex: 0 0 auto;
|
|
height: auto;
|
|
overflow: initial;
|
|
}
|
|
|
|
.sidebar {
|
|
width: 100%;
|
|
padding: 10px 0;
|
|
height: auto;
|
|
|
|
.logo {
|
|
margin: 20px auto;
|
|
}
|
|
}
|
|
|
|
.content {
|
|
padding-top: 20px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.filters {
|
|
display: flex;
|
|
margin-bottom: 20px;
|
|
|
|
.filter-subset {
|
|
flex: 0 0 auto;
|
|
margin-right: 40px;
|
|
|
|
ul {
|
|
margin-top: 5px;
|
|
list-style: none;
|
|
|
|
li {
|
|
display: inline-block;
|
|
margin-right: 5px;
|
|
}
|
|
}
|
|
|
|
strong {
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
font-size: 12px;
|
|
}
|
|
|
|
a {
|
|
display: inline-block;
|
|
color: rgba($primary-text-color, 0.7);
|
|
text-decoration: none;
|
|
text-transform: uppercase;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
border-bottom: 2px solid $ui-base-color;
|
|
|
|
&:hover {
|
|
color: $primary-text-color;
|
|
border-bottom: 2px solid lighten($ui-base-color, 5%);
|
|
}
|
|
|
|
&.selected {
|
|
color: $ui-highlight-color;
|
|
border-bottom: 2px solid $ui-highlight-color;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.report-accounts {
|
|
display: flex;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.report-accounts__item {
|
|
flex: 1 1 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
& > strong {
|
|
display: block;
|
|
margin-bottom: 10px;
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
line-height: 18px;
|
|
color: $ui-secondary-color;
|
|
}
|
|
|
|
&:first-child {
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.account-card {
|
|
flex: 1 1 auto;
|
|
}
|
|
}
|
|
|
|
.report-status {
|
|
display: flex;
|
|
margin-bottom: 10px;
|
|
|
|
.activity-stream {
|
|
flex: 2 0 0;
|
|
margin-right: 20px;
|
|
}
|
|
}
|
|
|
|
.report-status__actions {
|
|
flex: 0 0 auto;
|
|
}
|