Sha256: c0a9f33a2e2f5b1329d3ab349488625210a42e3f848d60f4470ac5cd8023ded4
Contents?: true
Size: 1.56 KB
Versions: 1
Compression:
Stored size: 1.56 KB
Contents
.level { @include block; align-items: center; justify-content: space-between; code { border-radius: $radius; } img { display: inline-block; vertical-align: top; } // Modifiers &.is-mobile { display: flex; .level-left, .level-right { display: flex; } .level-left + .level-right { margin-top: 0; } .level-item { &:not(:last-child) { margin-bottom: 0; } &:not(.is-narrow) { flex-grow: 1; } } } // Responsiveness @include tablet { display: flex; & > .level-item { &:not(.is-narrow) { flex-grow: 1; } } } } .level-item { align-items: center; display: flex; flex-basis: auto; flex-grow: 0; flex-shrink: 0; justify-content: center; .title, .subtitle { margin-bottom: 0; } // Responsiveness @include mobile { &:not(:last-child) { margin-bottom: 0.75rem; } } } .level-left, .level-right { flex-basis: auto; flex-grow: 0; flex-shrink: 0; .level-item { // Modifiers &.is-flexible { flex-grow: 1; } // Responsiveness @include tablet { &:not(:last-child) { margin-right: 0.75rem; } } } } .level-left { align-items: center; justify-content: flex-start; // Responsiveness @include mobile { & + .level-right { margin-top: 1.5rem; } } @include tablet { display: flex; } } .level-right { align-items: center; justify-content: flex-end; // Responsiveness @include tablet { display: flex; } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hux-0.0.1 | core/components/_level.scss |