Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiny screens: Make unit cells more compact in u.w.o #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions wesmere/sass/wmlunits/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -316,5 +316,6 @@ ul.navbar div.popupheader {

.spritebg {
background-size: $unit-sprite-size;
background-repeat: no-repeat;
}
}
12 changes: 11 additions & 1 deletion wesmere/sass/wmlunits/_unit_tree.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ table.units {

td.empty {
background: $units-table-bg;

@include media-tiny-screen-constraint {
display: none;
}
}

.raceheader {
Expand Down Expand Up @@ -70,11 +74,17 @@ td.empty {
border: 1px solid $units-table-border;

// Align contents to the cell top unless it's a cell that spans more than
// one unit advancement branch -- those should be centered.
// one unit advancement branch -- those should be centered in non-tiny screens.
&:not([rowspan]) {
vertical-align: top;
}

&:[rowspan] {
@include media-tiny-screen-constraint {
vertical-align: top;
}
}

& > a {
font-size: 1.25em;
font-weight: bold;
Expand Down