Skip to content

Commit

Permalink
fix fucked css 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ember-ruby committed Apr 27, 2024
1 parent 644b940 commit 03e12c1
Showing 1 changed file with 42 additions and 17 deletions.
59 changes: 42 additions & 17 deletions app/javascript/flavours/glitch/styles/components/media.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,56 @@
gap: 2px;
}

.media-gallery__alt__button {
.media-gallery__label-container {
display: flex;
color: $white;
background: rgba($black, 0.65);
padding: 2px 6px;
border-radius: 4px;
font-size: 11px;
font-weight: 700;
z-index: 1;
pointer-events: none;
line-height: 18px;
}

.media-gallery__alt__label {
display: block;
color: $white;
background: rgba($black, 0.65);
padding: 2px 6px;
font-size: 11px;
font-weight: 600;
opacity: 0.9;
transition: opacity 0.1s ease;
font-weight: 700;
line-height: 18px;
border: none;
border-radius: 2px;
border-radius: 4px;
z-index: 1;

&:hover,
&:focus {
background-color: rgba($black, 0.9);
}
}

.media-gallery__gifv__label {
color: $primary-text-color;
background: rgba($base-overlay-background, 0.5);
margin-right: 4px;
display: flex;
align-items: center;
justify-content: center;
color: $white;
background: rgba($black, 0.65);
backdrop-filter: blur(10px) saturate(180%) contrast(75%) brightness(70%);
padding: 2px 6px;
border-radius: 4px;
font-size: 11px;
font-weight: 700;
z-index: 1;
pointer-events: none;
line-height: 18px;

.icon {
width: 15px;
height: 15px;
}
}

.media-gallery__gifv {
Expand Down Expand Up @@ -161,15 +195,6 @@
}
}

.media-gallery__gifv {
height: 100%;
overflow: hidden;
position: relative;
width: 100%;
display: flex;
justify-content: center;
}

.media-gallery__item-gifv-thumbnail {
cursor: zoom-in;
height: 100%;
Expand Down

0 comments on commit 03e12c1

Please sign in to comment.