Debian Codegraph @

vendor/static/bulma/sass/components/level.sass

raw
1 @import "../utilities/mixins"
2
3 $level-item-spacing: ($block-spacing * 0.5) !default
4
5 .level
6 @extend %block
7 align-items: center
8 justify-content: space-between
9 code
10 border-radius: $radius
11 img
12 display: inline-block
13 vertical-align: top
14 // Modifiers
15 &.is-mobile
16 display: flex
17 .level-left,
18 .level-right
19 display: flex
20 .level-left + .level-right
21 margin-top: 0
22 .level-item
23 &:not(:last-child)
24 margin-bottom: 0
25 +ltr-property("margin", $level-item-spacing)
26 &:not(.is-narrow)
27 flex-grow: 1
28 // Responsiveness
29 +tablet
30 display: flex
31 & > .level-item
32 &:not(.is-narrow)
33 flex-grow: 1
34
35 .level-item
36 align-items: center
37 display: flex
38 flex-basis: auto
39 flex-grow: 0
40 flex-shrink: 0
41 justify-content: center
42 .title,
43 .subtitle
44 margin-bottom: 0
45 // Responsiveness
46 +mobile
47 &:not(:last-child)
48 margin-bottom: $level-item-spacing
49
50 .level-left,
51 .level-right
52 flex-basis: auto
53 flex-grow: 0
54 flex-shrink: 0
55 .level-item
56 // Modifiers
57 &.is-flexible
58 flex-grow: 1
59 // Responsiveness
60 +tablet
61 &:not(:last-child)
62 +ltr-property("margin", $level-item-spacing)
63
64 .level-left
65 align-items: center
66 justify-content: flex-start
67 // Responsiveness
68 +mobile
69 & + .level-right
70 margin-top: 1.5rem
71 +tablet
72 display: flex
73
74 .level-right
75 align-items: center
76 justify-content: flex-end
77 // Responsiveness
78 +tablet
79 display: flex