Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Meow committed Dec 17, 2024
1 parent 6ca1c4b commit 16540f5
Show file tree
Hide file tree
Showing 35 changed files with 103 additions and 112 deletions.
12 changes: 8 additions & 4 deletions assets/css/common/measurements.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ $max-limited-desktop-width: 1150px;
$min-desktop-width: 800px;
$limited-layout-width: 980px;
$min-desktop-thumb-width: 700px;
$image-tiny-size: 64px;
$image-small-size: 128px;
$image-medium-size: 256px;
$image-large-size: 512px;

:root {
--medium-layout-width: $medium-layout-width;
Expand All @@ -22,10 +26,10 @@ $min-desktop-thumb-width: 700px;
--padding-normal: 1em;
--centered-margin: 24px;
--normal-margin: 12px;
--image-tiny-size: 64px;
--image-small-size: 128px;
--image-medium-size: 256px;
--image-large-size: 512px;
--image-tiny-size: $image-tiny-size;
--image-small-size: $image-small-size;
--image-medium-size: $image-medium-size;
--image-large-size: $image-large-size;
--header-height: 36px;
--header-field-height: 28px;
--header-sub-height: 32px;
Expand Down
8 changes: 4 additions & 4 deletions assets/css/common/mixins.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@define-mixin image-alt-size $name, $size {
@media (min-width: $(size)) {
@media (min-width: $size) {
img[alt="$(name)"] {
max-height: $(size) !important;
max-width: $(size) !important;
max-height: $size !important;
max-width: $size !important;
}
}
}
Expand Down Expand Up @@ -67,7 +67,7 @@
background: $(color);
}

/* 16x16 checkerboard */
/* 16x16 checkerboard */
@define-mixin img-checkerboard-background {
img {
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAGUlEQVR42mP474AKGdDhCFGALoChYWQoAACpW7+B5lv5BwAAAABJRU5ErkJggg==");
Expand Down
22 changes: 12 additions & 10 deletions assets/css/elements/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ h4 {
margin-bottom: 0.5em;
}

/* Slightly dirty, no clean way to strip top margins off headers though */
/* Slightly dirty, no clean way to strip top margins off headers though */
.remove-top-margin {
margin-top: 0;
}
Expand Down Expand Up @@ -201,7 +201,7 @@ hr {
background: var(--danger-light-color);
border-color: var(--danger-color);
}
/* Make HTML lists with multi-line text readable */
/* Make HTML lists with multi-line text readable */
.rule ul {
margin: 0;
padding: 5px 20px;
Expand Down Expand Up @@ -237,7 +237,7 @@ hr {
}
}

/* Text Editor */
/* Text Editor */
blockquote {
margin: 1em 2em;
border: 1px dotted var(--foreground-color);
Expand All @@ -253,13 +253,13 @@ blockquote .paragraph:last-child {
margin-bottom: 0;
}

/* Prevent blockquote from gaining far too much indentation and breaking. */
/* Prevent blockquote from gaining far too much indentation and breaking. */
blockquote blockquote blockquote blockquote blockquote blockquote {
margin: 1em 0;
padding: 1em 2px;
}

/* Horizontal space is at a high premium on mobile. */
/* Horizontal space is at a high premium on mobile. */
@media (max-width: $min-desktop-width) {
blockquote {
margin: 1em 4px;
Expand Down Expand Up @@ -329,10 +329,12 @@ blockquote blockquote blockquote blockquote blockquote blockquote {
margin-bottom: 6px;
}

@mixin image-alt-size tiny, var(--image-tiny-size);
@mixin image-alt-size small, var(--image-small-size);
@mixin image-alt-size medium, var(--image-medium-size);
@mixin image-alt-size large, var(--image-large-size);
/* We need to use $variables here because @media tags
* do not work with CSS3 custom properties (variables) */
@mixin image-alt-size tiny, $image-tiny-size;
@mixin image-alt-size small, $image-small-size;
@mixin image-alt-size medium, $image-medium-size;
@mixin image-alt-size large, $image-large-size;

/* code styling */
/* You might be asking what's up with this silly mixin
Expand Down Expand Up @@ -443,7 +445,7 @@ i.favicon-home {
display: inline-block;
}

/* changelog */
/* changelog */
.commit-sha {
background: var(--assistant-color);
border: 1px solid var(--assistant-border-color);
Expand Down
4 changes: 2 additions & 2 deletions assets/css/elements/burger.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
display: none;
}

/* content sliding open */
/* content sliding open */
#container.open {
@mixin transform-n-animation open, 0.4s, translate(210px, 0);
}
Expand All @@ -23,7 +23,7 @@
}
}

/* content closing */
/* content closing */
#container.close {
animation: close 0.3s ease-in-out;
}
Expand Down
4 changes: 2 additions & 2 deletions assets/css/elements/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
color: var(--unread-message-color);
}

/* For text preceded by an icon */
/* For text preceded by an icon */
.fa__text {
padding-left: 6px;
}
Expand Down Expand Up @@ -98,7 +98,7 @@ select.header__input:focus optgroup {
.header__search__button,
.header__search__button:visited {
border: none;
/* Chrome loves extra padding for some reason */
/* Chrome loves extra padding for some reason */
padding-top: 0;
padding-bottom: 0;
line-height: var(--header-field-height);
Expand Down
4 changes: 2 additions & 2 deletions assets/css/elements/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ nav {
}

/* Use the following two classes to center content when user has layout centering enabled: */
/* TODO replace this bullshit naming, this is not actually BEM at all and makes no sense */
/* TODO replace this bullshit naming, this is not actually BEM at all and makes no sense */
#container.layout--center-aligned .center--layout {
justify-content: center;
margin-left: auto;
Expand Down Expand Up @@ -188,7 +188,7 @@ nav {
justify-content: center;
}

/* Mostly for the header */
/* Mostly for the header */
.flex--start-bunched {
justify-content: flex-start;
}
Expand Down
2 changes: 1 addition & 1 deletion assets/css/elements/media.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ a.media-box__header--link:hover {
background-color: var(--success-color);
}

/* TODO: properly fix this */
/* TODO: properly fix this */
.media-box__content .image-container {
width: 100%;
height: 100%;
Expand Down
4 changes: 2 additions & 2 deletions assets/css/elements/shame.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* For more shame related to this, see the <style> element inside app/views/adverts/index.html.slim */
/* Until HTML/CSS includes a native way to resize iframes based on their content, we do this approximation with viewport units. */
/* For more shame related to this, see the <style> element inside app/views/adverts/index.html.slim */
/* Until HTML/CSS includes a native way to resize iframes based on their content, we do this approximation with viewport units. */
.ad-sandbox {
height: 18vw;
max-height: 113px;
Expand Down
2 changes: 1 addition & 1 deletion assets/css/themes/dark-blue.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ $image-overlay-background-color: #000000;

/* Put any color variable overrides here.
*
* Note: due to (probably unintentional) behavior of Vite,
* Note: due to (intentional and bad) behavior of Vite,
* this needs to contain something unique that the other
* themes do not have, as Vite does not compile what it considers
* "inputs with identical contents", and it does not seem to care
Expand Down
2 changes: 1 addition & 1 deletion assets/css/themes/dark-cyan.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ $image-overlay-background-color: #000000;

/* Put any color variable overrides here.
*
* Note: due to (probably unintentional) behavior of Vite,
* Note: due to (intentional and bad) behavior of Vite,
* this needs to contain something unique that the other
* themes do not have, as Vite does not compile what it considers
* "inputs with identical contents", and it does not seem to care
Expand Down
2 changes: 1 addition & 1 deletion assets/css/themes/dark-green.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ $image-overlay-background-color: #000000;

/* Put any color variable overrides here.
*
* Note: due to (probably unintentional) behavior of Vite,
* Note: due to (intentional and bad) behavior of Vite,
* this needs to contain something unique that the other
* themes do not have, as Vite does not compile what it considers
* "inputs with identical contents", and it does not seem to care
Expand Down
2 changes: 1 addition & 1 deletion assets/css/themes/dark-orange.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ $image-overlay-background-color: #000000;

/* Put any color variable overrides here.
*
* Note: due to (probably unintentional) behavior of Vite,
* Note: due to (intentional and bad) behavior of Vite,
* this needs to contain something unique that the other
* themes do not have, as Vite does not compile what it considers
* "inputs with identical contents", and it does not seem to care
Expand Down
2 changes: 1 addition & 1 deletion assets/css/themes/dark-pink.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ $image-overlay-background-color: #000000;

/* Put any color variable overrides here.
*
* Note: due to (probably unintentional) behavior of Vite,
* Note: due to (intentional and bad) behavior of Vite,
* this needs to contain something unique that the other
* themes do not have, as Vite does not compile what it considers
* "inputs with identical contents", and it does not seem to care
Expand Down
2 changes: 1 addition & 1 deletion assets/css/themes/dark-purple.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ $image-overlay-background-color: #000000;

/* Put any color variable overrides here.
*
* Note: due to (probably unintentional) behavior of Vite,
* Note: due to (intentional and bad) behavior of Vite,
* this needs to contain something unique that the other
* themes do not have, as Vite does not compile what it considers
* "inputs with identical contents", and it does not seem to care
Expand Down
2 changes: 1 addition & 1 deletion assets/css/themes/dark-red.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ $image-overlay-background-color: #000000;

/* Put any color variable overrides here.
*
* Note: due to (probably unintentional) behavior of Vite,
* Note: due to (intentional and bad) behavior of Vite,
* this needs to contain something unique that the other
* themes do not have, as Vite does not compile what it considers
* "inputs with identical contents", and it does not seem to care
Expand Down
2 changes: 1 addition & 1 deletion assets/css/themes/dark-silver.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ $image-overlay-background-color: #000000;

/* Put any color variable overrides here.
*
* Note: due to (probably unintentional) behavior of Vite,
* Note: due to (intentional and bad) behavior of Vite,
* this needs to contain something unique that the other
* themes do not have, as Vite does not compile what it considers
* "inputs with identical contents", and it does not seem to care
Expand Down
2 changes: 1 addition & 1 deletion assets/css/themes/dark-yellow.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ $image-overlay-background-color: #000000;

/* Put any color variable overrides here.
*
* Note: due to (probably unintentional) behavior of Vite,
* Note: due to (intentional and bad) behavior of Vite,
* this needs to contain something unique that the other
* themes do not have, as Vite does not compile what it considers
* "inputs with identical contents", and it does not seem to care
Expand Down
2 changes: 1 addition & 1 deletion assets/css/themes/light-blue.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ $image-overlay-background-color: #000000;

/* Put any color variable overrides here.
*
* Note: due to (probably unintentional) behavior of Vite,
* Note: due to (intentional and bad) behavior of Vite,
* this needs to contain something unique that the other
* themes do not have, as Vite does not compile what it considers
* "inputs with identical contents", and it does not seem to care
Expand Down
2 changes: 1 addition & 1 deletion assets/css/themes/light-cyan.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ $image-overlay-background-color: #000000;

/* Put any color variable overrides here.
*
* Note: due to (probably unintentional) behavior of Vite,
* Note: due to (intentional and bad) behavior of Vite,
* this needs to contain something unique that the other
* themes do not have, as Vite does not compile what it considers
* "inputs with identical contents", and it does not seem to care
Expand Down
2 changes: 1 addition & 1 deletion assets/css/themes/light-green.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ $image-overlay-background-color: #000000;

/* Put any color variable overrides here.
*
* Note: due to (probably unintentional) behavior of Vite,
* Note: due to (intentional and bad) behavior of Vite,
* this needs to contain something unique that the other
* themes do not have, as Vite does not compile what it considers
* "inputs with identical contents", and it does not seem to care
Expand Down
2 changes: 1 addition & 1 deletion assets/css/themes/light-orange.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ $image-overlay-background-color: #000000;

/* Put any color variable overrides here.
*
* Note: due to (probably unintentional) behavior of Vite,
* Note: due to (intentional and bad) behavior of Vite,
* this needs to contain something unique that the other
* themes do not have, as Vite does not compile what it considers
* "inputs with identical contents", and it does not seem to care
Expand Down
2 changes: 1 addition & 1 deletion assets/css/themes/light-pink.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ $image-overlay-background-color: #000000;

/* Put any color variable overrides here.
*
* Note: due to (probably unintentional) behavior of Vite,
* Note: due to (intentional and bad) behavior of Vite,
* this needs to contain something unique that the other
* themes do not have, as Vite does not compile what it considers
* "inputs with identical contents", and it does not seem to care
Expand Down
2 changes: 1 addition & 1 deletion assets/css/themes/light-purple.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ $image-overlay-background-color: #000000;

/* Put any color variable overrides here.
*
* Note: due to (probably unintentional) behavior of Vite,
* Note: due to (intentional and bad) behavior of Vite,
* this needs to contain something unique that the other
* themes do not have, as Vite does not compile what it considers
* "inputs with identical contents", and it does not seem to care
Expand Down
2 changes: 1 addition & 1 deletion assets/css/themes/light-red.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ $image-overlay-background-color: #000000;

/* Put any color variable overrides here.
*
* Note: due to (probably unintentional) behavior of Vite,
* Note: due to (intentional and bad) behavior of Vite,
* this needs to contain something unique that the other
* themes do not have, as Vite does not compile what it considers
* "inputs with identical contents", and it does not seem to care
Expand Down
2 changes: 1 addition & 1 deletion assets/css/themes/light-silver.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ $image-overlay-background-color: #000000;

/* Put any color variable overrides here.
*
* Note: due to (probably unintentional) behavior of Vite,
* Note: due to (intentional and bad) behavior of Vite,
* this needs to contain something unique that the other
* themes do not have, as Vite does not compile what it considers
* "inputs with identical contents", and it does not seem to care
Expand Down
2 changes: 1 addition & 1 deletion assets/css/themes/light-yellow.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ $image-overlay-background-color: #000000;

/* Put any color variable overrides here.
*
* Note: due to (probably unintentional) behavior of Vite,
* Note: due to (intentional and bad) behavior of Vite,
* this needs to contain something unique that the other
* themes do not have, as Vite does not compile what it considers
* "inputs with identical contents", and it does not seem to care
Expand Down
2 changes: 1 addition & 1 deletion assets/css/views/commissions.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Category Tag */
/* Category Tag */
.commission__category {
border: 1px solid;
display: inline-block;
Expand Down
2 changes: 1 addition & 1 deletion assets/css/views/posts.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Post diffs */
/* Post diffs */
del.differ {
width: 670px;
background: var(--danger-light-color);
Expand Down
6 changes: 3 additions & 3 deletions assets/css/views/profiles.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
}

.profile-top__name-and-links {
/* Allow options extra space on high width even when name is short */
/* Allow options extra space on high width even when name is short */
flex: 1 1 0%;
}

/* Lessen h1's margins because it's not butting up against text */
/* Lessen h1's margins because it's not butting up against text */
h1.profile-top__name-header {
margin-top: 10px;
margin-bottom: 0;
Expand Down Expand Up @@ -47,7 +47,7 @@ td.table--stats__sparkline {

.profile-top__options__column {
flex: 0 0 auto;
/* Override terrible browser styling */
/* Override terrible browser styling */
list-style: none;
padding: 0;
margin: 0.5em 2em 0.5em 0;
Expand Down
Loading

0 comments on commit 16540f5

Please sign in to comment.