main

mattermost/focalboard

Last updated at: 29/12/2023 09:49

gallery.scss

TLDR

This file defines the styles for a gallery component.

Classes

.Gallery

This class defines the styles for the gallery component. It sets the display to flex, wraps the children elements, adds overflow and margin-top properties, among others.

.octo-gallery-new

This class defines the styles for a new gallery item. It sets the border, border-radius, color, cursor, width, and height properties, as well as the display, flex-direction, and margin properties. It also includes styles for the selected and hover states.

.gallery-hidden-cards

This class defines the styles for hidden cards in the gallery. It sets the margin-left property.

.Gallery {
    display: flex;
    flex-wrap: wrap;
    overflow: auto;
    margin-top: 10px;

    .octo-gallery-new {
        border: 1px solid rgba(var(--center-channel-color-rgb), 0.09);
        border-radius: var(--default-rad);
        color: rgba(var(--center-channel-color-rgb), 0.3);
        cursor: pointer;
        width: 280px;
        min-height: 160px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;

        &.selected {
            background-color: rgba(90, 200, 255, 0.2);
        }

        &:hover {
            background-color: rgba(var(--center-channel-color-rgb), 0.05);
        }
    }

    .gallery-hidden-cards {
        margin-left: 6px;
    }
}