Skip to content

Commit

Permalink
Cull unused CSS classes
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalp committed Jul 6, 2024
1 parent 7a88612 commit 639cabd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 111 deletions.
102 changes: 2 additions & 100 deletions frontend/src/style/misago/threads-lists.less
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@

// Link to page
.threads-list-item-goto-page {
margin-left: @thread-goto-page-link-gutter;
margin-left: @thread-goto-page-link-margin;
padding: @thread-goto-page-link-padding;

border-radius: @border-radius-small;
Expand All @@ -194,10 +194,6 @@
}
}

.threads-list-item-title + .threads-list-item-goto-page {
margin-left: @thread-goto-page-link-margin;
}

// Thread status flags
.threads-list-item-col-flags {
padding-left: @grid-gutter-width / 2;
Expand Down Expand Up @@ -323,36 +319,6 @@
}
}

// Subscription and checkbox
.threads-list-item-col-checkbox {
padding-left: @grid-gutter-width / 2;

.btn-icon {
display: flex;
align-items: center;
justify-content: center;

padding: 0;
height: @thread-avatar-image-size;
width: @thread-avatar-image-size;

.material-icon {
position: static;
margin: 0;
height: auto;
width: auto;

font-size: 24px;
line-height: 24px;
}
}
}

// Make list responsive
.threads-list-item-col-checkbox-sm {
display: none;
}

@media screen and (max-width: @screen-sm-max) {
// Remove vertical center align
.threads-list-item {
Expand All @@ -379,8 +345,7 @@

// Hide some cols used on large displays,
.threads-list-item-col-posters,
.threads-list-item-col-replies-zero,
.threads-list-item-col-checkbox {
.threads-list-item-col-replies-zero {
display: none;
}

Expand All @@ -406,34 +371,13 @@

padding-left: @grid-gutter-width / 2;
}

// Reveal checkbox in top row, make it smol
.threads-list-item-col-checkbox-sm {
display: block;
padding-left: @grid-gutter-width / 2;

.btn-icon {
padding: 2px 6px;

.material-icon {
font-size: 12px;
}
}
}
}

@media screen and (max-width: @screen-xs-max) {
// Make card full-width
.threads-list {
margin-left: @grid-gutter-width * -0.5;
margin-right: @grid-gutter-width * -0.5;

.list-group,
.list-group-item {
border-radius: 0;
border-left: 0;
border-right: 0;
}
}

// Remove top margin from bottom row itself
Expand Down Expand Up @@ -500,48 +444,6 @@
}
}

// Make thread buttons flash when thread is busy
.threads-list-item-is-busy .btn-icon {
opacity: 0.8;
animation: busy 0.75s linear infinite;
}

@keyframes busy {
50% {
opacity: 0.5;
}
}

// Make threads list ui preview line height 1
.threads-list-item .ui-preview-text {
line-height: 1;
}

// Threads list update prompt
.threads-list-update-prompt {
padding: 0;
}

.threads-list-update-prompt-btn {
padding: @padding-large-vertical @padding-large-horizontal;

background: @update-threads-prompt-bg;
color: @update-threads-prompt-color;
border: none;
border-radius: @list-group-border-radius @list-group-border-radius 0 0;
}

.threads-list-update-prompt-btn:hover,
.threads-list-update-prompt-btn:focus {
background: @update-threads-prompt-hover-bg;
color: @update-threads-prompt-hover-color;
}

.threads-list-update-prompt-btn:active {
background: @update-threads-prompt-active-bg;
color: @update-threads-prompt-active-color;
}

// New threads poll message
.threads-list-poll-new {
padding: 0;
Expand Down
9 changes: 0 additions & 9 deletions frontend/src/style/misago/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -300,15 +300,6 @@
@thread-last-activity-size: 16px;
@thread-last-activity-size-xs: 13px;

@update-threads-prompt-bg: lighten(@brand-primary, 52%);
@update-threads-prompt-color: darken(@brand-primary, 10%);

@update-threads-prompt-hover-bg: lighten(@brand-primary, 55%);
@update-threads-prompt-hover-color: @brand-primary;

@update-threads-prompt-active-bg: lighten(@brand-primary, 45%);
@update-threads-prompt-active-color: lighten(@brand-primary, 10%);

//== Posts list
//

Expand Down
2 changes: 1 addition & 1 deletion misago/static/misago/css/misago.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion misago/static/misago/css/misago.css.map

Large diffs are not rendered by default.

0 comments on commit 639cabd

Please sign in to comment.