Skip to content

Commit

Permalink
Convert from px to rem for relative sizing.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattraykowski committed Dec 18, 2023
1 parent 1efdd2d commit d687bb2
Show file tree
Hide file tree
Showing 15 changed files with 234 additions and 217 deletions.
304 changes: 156 additions & 148 deletions css/svnsea2e.css

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions scss/components/_actors.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
header.sheet-header {
flex: 0 0 150px;
flex: 0 0 9.375rem;

flex-direction: column;

Expand All @@ -12,7 +12,7 @@ header.sheet-header {

.header-data {
& > .flex-group {
gap: 0.2em;
gap: 0.2rem;

& > * {
flex: auto;
Expand All @@ -21,7 +21,7 @@ header.sheet-header {

input {
text-align: center;
font-size: 0.9em;
font-size: 0.9rem;
}
}

Expand All @@ -34,11 +34,11 @@ header.sheet-header {
}

.wounds .pts {
padding-left: 10px;
padding-left: 0.625rem;
}

.wounds .pts.bigger {
padding-left: 37px;
padding-left: 2.375rem;
}

.raise-tracking {
Expand All @@ -49,12 +49,12 @@ header.sheet-header {
}
button {
width: 1.8rem;
font-size: 0.8em;
font-size: 0.8rem;
height: 1.8rem;
margin: 0;
padding: 0;
background-color: white;
border-radius: 1em;
border-radius: 1rem;
border: 0px;
box-shadow: 1px 1px 4px #771213;
}
Expand All @@ -68,8 +68,8 @@ header.sheet-header {
.danger-points {
input[type='text'] {
font-size: $f-s-4xl;
height: 1.3em;
width: 1.3em;
height: 1.3rem;
width: 1.3rem;
border: $brd-s-lg-dk;
border-radius: 2em;
text-align: center;
Expand Down
2 changes: 1 addition & 1 deletion scss/components/_chat.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
padding-right: $padding-md;

.message-sender {
padding-bottom: 2px;
padding-bottom: $padding-xs;
font-weight: bold;
text-indent: 0.4em;
line-height: 1.3em;
Expand Down
4 changes: 2 additions & 2 deletions scss/components/_dialogs.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.dialog-button .d10 {
height: 24px;
width: 24px;
height: 1.5rem;
width: 1.5rem;
border: 0;
}

Expand Down
2 changes: 1 addition & 1 deletion scss/components/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ form .form-group > label.icon-label {
}

.tox-edit-area {
padding: 0 8px;
padding: 0 $padding-md;
}
}
33 changes: 17 additions & 16 deletions scss/components/_sheet.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
& {
font-size: 18px;
font-size: $base-size;
}

img {
Expand Down Expand Up @@ -53,7 +53,7 @@ nav.sheet-tabs {
}

h1.charname {
height: 50px;
height: 3.125rem;
margin: $margin-sm;
text-indent: 0;

Expand All @@ -62,15 +62,15 @@ nav.sheet-tabs {
height: 100%;
margin: 0;
background: none;
text-indent: 15px;
text-indent: 1rem;
font-family: $f-header;
}
}

.herospts,
.wealth {
max-width: 30px;
margin-right: 10px;
max-width: 1.875rem;
margin-right: 0.625rem;
}
}

Expand All @@ -89,7 +89,7 @@ nav.sheet-tabs {
.secretsociety .tag {
flex-grow: 0.25;
flex-shrink: 0.25;
flex-basis: 10px;
flex-basis: 0.625rem;
}

.flexrow {
Expand All @@ -105,7 +105,7 @@ nav.sheet-tabs {

.details-list,
.tag-list {
line-height: 20px;
line-height: 1.25rem;
list-style: none;
margin: 0;
padding: 0;
Expand All @@ -120,19 +120,19 @@ nav.sheet-tabs {
margin: $margin-md 0;
padding: 0;
overflow-y: auto;
line-height: 30px;
line-height: 1.875rem;

.item-header {
font-weight: bold;
}

.item {
line-height: 24px;
padding: 3px 0;
line-height: 1.5rem;
padding: $padding-sm 0;
border-bottom: $brd-s-sm-lt;

.item-image {
flex: 0 0 24px;
flex: 0 0 1.5rem;
margin-right: $margin-sm;
}

Expand All @@ -145,7 +145,7 @@ nav.sheet-tabs {
}

.item-weight {
flex: 0 0 60px;
flex: 0 0 3.75rem;
border-left: $brd-s-sm-lt;
border-right: $brd-s-sm-lt;
}
Expand All @@ -157,11 +157,11 @@ nav.sheet-tabs {
}
// Item Control Buttons
.item-controls {
flex: 0 0 44px;
flex: 0 0 2.75rem;
justify-content: flex-end;

a {
flex: 0 0 22px;
flex: 0 0 1.375rem;
text-align: center;
color: $f-c-dk;
}
Expand All @@ -181,7 +181,7 @@ nav.sheet-tabs {
}

.item-controls {
flex: 0 0 86px;
flex: 0 0 5.375rem;
text-align: right;
}
}
Expand All @@ -190,13 +190,14 @@ nav.sheet-tabs {
.skill-name,
.trait-name {
font-weight: 600;
padding-left: 1.5rem;
// margin-left: $margin-md;
// margin-top: 5px;
}

.wound-title {
font-weight: 600;
margin-bottom: 10px;
margin-bottom: 0.625rem;
}

// Brute specific stuff
Expand Down
8 changes: 4 additions & 4 deletions scss/components/_sidebar.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#sidebar {
width: 320px;
width: 20rem;

h2,
h3,
Expand All @@ -15,17 +15,17 @@
.item.active {
color: #fff;
border: $brd-s-sm-lt;
box-shadow: 0 0 6px inset $c-sec;
box-shadow: 0 0 0.375rem inset $c-sec;
}
}

#sidebar-tabs {
border-bottom: $brd-s-sm-glow;
box-shadow: 0 0 10px $c-sec;
box-shadow: 0 0 0.625rem $c-sec;
}

.tabs .item.active {
text-shadow: 0 0 10px $c-sec;
text-shadow: 0 0 0.625rem $c-sec;
}

.sidebar-tab {
Expand Down
12 changes: 6 additions & 6 deletions scss/components/_tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
color: $f-c-lt;
background: none;
}
}

.item.active {
background: $c-sec;
text-shadow: none;
h2 {
color: $f-c-dk;
&.active {
background: $c-sec;
text-shadow: none;
h2 {
color: $f-c-dk;
}
}
}
}
12 changes: 6 additions & 6 deletions scss/global/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,22 @@ h2 {

h3 {
font-size: $f-s-xl;
text-indent: 10px;
text-indent: 0.625rem;
}

h4 {
font-size: $f-s-lg;
text-indent: 8px;
text-indent: 0.5rem;
}

h5 {
font-size: $f-s-md;
text-indent: 6px;
text-indent: 0.375rem;
}

h6 {
font-size: $f-s-norm;
text-indent: 4px;
text-indent: 0.25rem;
}

#calendar-time-container h1,
Expand Down Expand Up @@ -122,7 +122,7 @@ input[type='text']:hover,
input[type='text']:focus,
textarea:focus,
textarea:hover {
box-shadow: 0 0 8px $c-prim;
box-shadow: 0 0 0.5rem $c-prim;
}

input[type='range']::-moz-range-thumb,
Expand All @@ -146,7 +146,7 @@ input[type='range']::-webkit-slider-thumb {
#nav-toggle {
@include main-bg;
hover {
text-shadow: 0 0 10px $c-sec;
text-shadow: 0 0 0.625rem $c-sec;
}
}

Expand Down
2 changes: 1 addition & 1 deletion scss/global/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
justify-content: center;
align-items: center;
text-align: center;
padding: 2px;
padding: $padding-xs;
border: $no-border;
}

Expand Down
3 changes: 1 addition & 2 deletions scss/global/_window.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@
.rollable {
&:focus,
&:hover {
text-shadow: 0 0 10px $c-sec;
text-shadow: 0 0 0.625rem $c-sec;
cursor: pointer;
background-image: url('../icons/d10.svg');
background-size: 20px;
background-repeat: no-repeat;
padding-left: 20px;
}
}
8 changes: 8 additions & 0 deletions scss/svnsea2e.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@

@import 'components/sidebar';

body {
font-size: $base-size;
}

.sheet {
font-size: $base-size;
}

.dialog {
@import 'components/dialogs';
}
Expand Down
6 changes: 3 additions & 3 deletions scss/utils/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@
}

@mixin paint-bottom-border {
padding-bottom: 2px;
padding-bottom: $padding-xs;
background: url(../imgs/paint_border.png);
background-repeat: no-repeat;
background-size: 100% 6px;
background-size: 100% 0.375rem;
background-position: left bottom;
}

@mixin hover-highlight {
color: $f-c-lt;
border: $brd-s-sm-lt;
border-bottom: $brd-s-sm-glow;
box-shadow: 0 0 10px inset $c-sec;
box-shadow: 0 0 0.625rem inset $c-sec;
}

@mixin main-bg {
Expand Down
2 changes: 1 addition & 1 deletion scss/utils/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ $f-s-4xl: 6em;
/* -------------------------------------------- */

// Font Shadows
$txt-shadow-prim: 0 0 8px $c-sec;
$txt-shadow-prim: 0 0 0.5rem $c-sec;
Loading

0 comments on commit d687bb2

Please sign in to comment.