mirror of
https://github.com/jgthms/bulma
synced 2026-03-18 03:14:30 -07:00
140 lines
2.3 KiB
SCSS
140 lines
2.3 KiB
SCSS
@use "sass/utilities/mixins" as mx;
|
|
|
|
.bd-brand {
|
|
padding: 3rem;
|
|
}
|
|
|
|
.bd-logos {
|
|
--size: 15rem;
|
|
|
|
> * {
|
|
align-items: center;
|
|
border-radius: 2em;
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
.bd-logos-label {
|
|
margin-bottom: 0 !important;
|
|
}
|
|
|
|
%bd-logos-tile {
|
|
grid-column: span 2;
|
|
justify-content: center;
|
|
height: var(--size);
|
|
width: var(--size);
|
|
}
|
|
|
|
.bd-logos-color {
|
|
@extend %bd-logos-tile;
|
|
}
|
|
|
|
.bd-logos-codes {
|
|
align-items: stretch !important;
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
grid-column: span 4;
|
|
}
|
|
|
|
.bd-logos-code {
|
|
align-items: center;
|
|
display: flex;
|
|
flex-grow: 1;
|
|
grid-column: span 2;
|
|
|
|
p:first-child {
|
|
color: var(--bulma-text-light);
|
|
}
|
|
|
|
p:nth-child(2) {
|
|
flex-grow: 1;
|
|
margin-right: 1em;
|
|
text-align: right;
|
|
}
|
|
|
|
p:last-child {
|
|
}
|
|
}
|
|
|
|
.bd-logos-item {
|
|
@extend %bd-logos-tile;
|
|
|
|
background-size: cover;
|
|
position: relative;
|
|
|
|
&.is-transparent {
|
|
background-color: var(--bulma-text-80);
|
|
background-image: repeating-linear-gradient(
|
|
45deg,
|
|
transparent,
|
|
transparent 10px,
|
|
hsla(0, 0%, 100%, 0.4) 0,
|
|
hsla(0, 0%, 100%, 0.4) 20px
|
|
),
|
|
repeating-linear-gradient(
|
|
-45deg,
|
|
transparent,
|
|
transparent 10px,
|
|
hsla(0, 0%, 100%, 0.4) 0,
|
|
hsla(0, 0%, 100%, 0.4) 20px
|
|
);
|
|
grid-column: span 2;
|
|
}
|
|
|
|
&:hover {
|
|
.bd-logos-download {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.bd-logos-download {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: rgba(0, 0, 0, 0.8);
|
|
border-radius: 2em;
|
|
opacity: 0;
|
|
transition-duration: var(--bulma-duration);
|
|
transition-property: opacity;
|
|
|
|
.title {
|
|
color: var(--bulma-link-invert) !important;
|
|
}
|
|
}
|
|
|
|
@include mx.touch {
|
|
.bd-logos {
|
|
> * {
|
|
justify-content: center;
|
|
margin-bottom: 1.5rem !important;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
}
|
|
|
|
.bd-logos-label {
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
@include mx.desktop {
|
|
.bd-logos {
|
|
display: grid;
|
|
grid-gap: 1rem;
|
|
grid-template-columns: repeat(7, calc(var(--size) / 2));
|
|
grid-template-rows: repeat(4, var(--size));
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
max-width: 936px;
|
|
|
|
> * {
|
|
align-items: center;
|
|
border-radius: 2em;
|
|
display: flex;
|
|
}
|
|
}
|
|
}
|