Skip to content

Commit

Permalink
#52 Cleanup: only load shared CSS once
Browse files Browse the repository at this point in the history
  • Loading branch information
drweissbrot committed Jun 18, 2023
1 parent c810380 commit 79ad527
Show file tree
Hide file tree
Showing 16 changed files with 15 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
@import '/hud/focused-player/name-and-stats/data-row/data-row-item-shared.css';
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<script src="/hud/focused-player/name-and-stats/data-row/data-row.js"></script>
<style src="/hud/focused-player/name-and-stats/data-row/data-row.css" scoped></style>
<template src="/hud/focused-player/name-and-stats/data-row/data-row.html"></template>

<style src="/hud/focused-player/name-and-stats/data-row/data-row-item-shared.css"></style>
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import '/hud/focused-player/name-and-stats/data-row/data-row-item-shared.css';

.grenades {
display: flex;
align-items: center;
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
@import '/hud/focused-player/name-and-stats/data-row/data-row-item-shared.css';
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<script src="/hud/sidebars/sidebar/player/additional-stats/additional-stats.js"></script>
<style src="/hud/sidebars/sidebar/player/additional-stats/additional-stats.css" scoped></style>
<template src="/hud/sidebars/sidebar/player/additional-stats/additional-stats.html"></template>

<style src="/hud/sidebars/sidebar/player/additional-stats/additional-stats-item-shared.css"></style>
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
@import '/hud/sidebars/sidebar/player/additional-stats/additional-stats-shared.css';
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
@import '/hud/sidebars/sidebar/player/additional-stats/additional-stats-shared.css';
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import '/hud/sidebars/sidebar/player/additional-stats/additional-stats-shared.css';

.value.--bad {
color: var(--sidebar-bad-kd-ratio-color);
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import '/hud/sidebars/sidebar/player/additional-stats/additional-stats-shared.css';

.value.--good {
color: var(--sidebar-good-kd-ratio-color);
}
2 changes: 0 additions & 2 deletions src/themes/fennec/top-bar/team/bomb-timer/bomb-timer.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import '/hud/top-bar/team/panel-shared.css';

.bomb-timer-wrapper {
max-height: var(--top-bar-half-row-height);
}
Expand Down
2 changes: 0 additions & 2 deletions src/themes/fennec/top-bar/team/match-point/match-point.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import '/hud/top-bar/team/panel-shared.css';

.match-point-wrapper {
max-height: var(--top-bar-row-height);
}
Expand Down
2 changes: 0 additions & 2 deletions src/themes/fennec/top-bar/team/name/name.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import '/hud/top-bar/team/panel-shared.css';

.name-wrapper {
font-size: 2.5rem;
max-height: var(--top-bar-row-height);
Expand Down
2 changes: 0 additions & 2 deletions src/themes/fennec/top-bar/team/round-winner/round-winner.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import '/hud/top-bar/team/panel-shared.css';

.round-winner-wrapper {
max-height: var(--top-bar-row-height);
}
Expand Down
5 changes: 5 additions & 0 deletions src/themes/fennec/top-bar/team/team.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<script src="/hud/top-bar/team/team.js"></script>
<style src="/hud/top-bar/team/team.css" scoped></style>
<template src="/hud/top-bar/team/team.html"></template>

<style src="/hud/top-bar/team/panel-shared.css"></style>
2 changes: 0 additions & 2 deletions src/themes/fennec/top-bar/team/timeout/timeout.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import '/hud/top-bar/team/panel-shared.css';

.timeout-wrapper {
max-height: calc(2 * var(--top-bar-row-height));
}
Expand Down

0 comments on commit 79ad527

Please sign in to comment.