Skip to content

Commit

Permalink
move vatsim mods, fix mobile category list
Browse files Browse the repository at this point in the history
  • Loading branch information
williammck committed Feb 20, 2023
1 parent ee305a3 commit 8738290
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 32 deletions.
33 changes: 1 addition & 32 deletions common/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -537,35 +537,4 @@ html body #main-outlet {
box-shadow: none;
}

.names span.group--Tech a {
color: #DC2E17;
}

.names span.group--Staff a {
color: #DC2E17;
}

.names span.group--BoG a {
color: #DC2E17;
}

.names span.group--Supervisor a {
color: #DC2E17;
}

.names span.group--vatsim_staff a {
color: #DC2E17;
}

.names span.group--community_team a {
color: #DC2E17;
}

.names span.group--VSOA a {
color: #DC2E17;
}

.names span.group--virtualairline a {
color: #DC2E17;
}

@import "vatsim";
6 changes: 6 additions & 0 deletions scss/vatsim/_group-colors.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@each $group, $color in $vatsim-group-colors {
.names .group--#{$group} a {
color: #{$color};
}
}

5 changes: 5 additions & 0 deletions scss/vatsim/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import "variables";
@import "group-colors";
@import "mobile-categories";
@import "overrides";

20 changes: 20 additions & 0 deletions scss/vatsim/_mobile-categories.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.mobile-view {
.subcategory-list {

.parent-category {
display: inline-block;
padding: 6px 12px;
background-color: var(--secondary);
border-radius: 0.5em;
}

.category-list-item {
background-color: var(--secondary);
border-top: 0 !important;
border-bottom: 0 !important;
outline: 1px solid var(--secondary);
border-radius: 12px;
}

}
}
8 changes: 8 additions & 0 deletions scss/vatsim/_overrides.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.navigation-container {
margin-top: 0;
}

.mobile-view .navigation-categories .navigation-container {
margin-top: 1em;
}

12 changes: 12 additions & 0 deletions scss/vatsim/_variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
$vatsim-staff-color: #dc2e17;

$vatsim-group-colors: (
"Tech": $vatsim-staff-color,
"Staff": $vatsim-staff-color,
"BoG": $vatsim-staff-color,
"Supervisor": $vatsim-staff-color,
"vatsim_staff": $vatsim-staff-color,
"community_team": $vatsim-staff-color,
"VSOA": $vatsim-staff-color,
"virtualairline": $vatsim-staff-color
);

0 comments on commit 8738290

Please sign in to comment.