|
| 1 | +/* based on Fomantic UI header module, with just the parts extracted that we use. If you find any |
| 2 | + unused rules here after refactoring, please remove them. */ |
| 3 | + |
| 4 | +.ui.segment { |
| 5 | + position: relative; |
| 6 | + margin: 1rem 0; |
| 7 | + padding: 1em 1em; |
| 8 | + border-radius: 0.28571429rem; |
| 9 | + border: 1px solid var(--color-secondary); |
| 10 | + background: var(--color-box-body); |
| 11 | + color: var(--color-text); |
| 12 | +} |
| 13 | +.ui.segment:first-child { |
| 14 | + margin-top: 0; |
| 15 | +} |
| 16 | +.ui.segment:last-child { |
| 17 | + margin-bottom: 0; |
| 18 | +} |
| 19 | + |
| 20 | +.ui.grid.segment { |
| 21 | + margin: 1rem 0; |
| 22 | + border-radius: 0.28571429rem; |
| 23 | +} |
| 24 | + |
| 25 | +.ui.segment.tab:last-child { |
| 26 | + margin-bottom: 1rem; |
| 27 | +} |
| 28 | + |
| 29 | +.ui.segments { |
| 30 | + flex-direction: column; |
| 31 | + position: relative; |
| 32 | + margin: 1rem 0; |
| 33 | + border: 1px solid var(--color-secondary); |
| 34 | + border-radius: 0.28571429rem; |
| 35 | + background: var(--color-box-body); |
| 36 | + color: var(--color-text); |
| 37 | +} |
| 38 | +.ui.segments:first-child { |
| 39 | + margin-top: 0; |
| 40 | +} |
| 41 | +.ui.segments:last-child { |
| 42 | + margin-bottom: 0; |
| 43 | +} |
| 44 | + |
| 45 | +.ui.segments > .segment { |
| 46 | + top: 0; |
| 47 | + bottom: 0; |
| 48 | + border-radius: 0; |
| 49 | + margin: 0; |
| 50 | + width: auto; |
| 51 | + box-shadow: none; |
| 52 | + border: none; |
| 53 | + border-top: 1px solid var(--color-secondary); |
| 54 | +} |
| 55 | +.ui.segments:not(.horizontal) > .segment:first-child { |
| 56 | + top: 0; |
| 57 | + bottom: 0; |
| 58 | + border-top: none; |
| 59 | + margin-top: 0; |
| 60 | + margin-bottom: 0; |
| 61 | + border-radius: 0.28571429rem 0.28571429rem 0 0; |
| 62 | +} |
| 63 | + |
| 64 | +.ui.segments:not(.horizontal) > .segment:last-child { |
| 65 | + top: 0; |
| 66 | + bottom: 0; |
| 67 | + margin-top: 0; |
| 68 | + margin-bottom: 0; |
| 69 | + border-radius: 0 0 0.28571429rem 0.28571429rem; |
| 70 | +} |
| 71 | + |
| 72 | +.ui.segments:not(.horizontal) > .segment:only-child { |
| 73 | + border-radius: 0.28571429rem; |
| 74 | +} |
| 75 | + |
| 76 | +.ui.segments > .ui.segments { |
| 77 | + border-top: 1px solid var(--color-secondary); |
| 78 | + margin: 1rem 1rem; |
| 79 | +} |
| 80 | +.ui.segments > .segments:first-child { |
| 81 | + border-top: none; |
| 82 | +} |
| 83 | +.ui.segments > .segment + .segments:not(.horizontal) { |
| 84 | + margin-top: 0; |
| 85 | +} |
| 86 | + |
| 87 | +.ui.horizontal.segments { |
| 88 | + display: flex; |
| 89 | + flex-direction: row; |
| 90 | + background-color: transparent; |
| 91 | + padding: 0; |
| 92 | + margin: 1rem 0; |
| 93 | + border-radius: 0.28571429rem; |
| 94 | + border: 1px solid var(--color-secondary); |
| 95 | +} |
| 96 | + |
| 97 | +.ui.horizontal.segments > .segment { |
| 98 | + margin: 0; |
| 99 | + min-width: 0; |
| 100 | + border-radius: 0; |
| 101 | + border: none; |
| 102 | + box-shadow: none; |
| 103 | + border-left: 1px solid var(--color-secondary); |
| 104 | +} |
| 105 | + |
| 106 | +.ui.segments > .horizontal.segments:first-child { |
| 107 | + border-top: none; |
| 108 | +} |
| 109 | +.ui.horizontal.segments:not(.stackable) > .segment:first-child { |
| 110 | + border-left: none; |
| 111 | +} |
| 112 | +.ui.horizontal.segments > .segment:first-child { |
| 113 | + border-radius: 0.28571429rem 0 0 0.28571429rem; |
| 114 | +} |
| 115 | +.ui.horizontal.segments > .segment:last-child { |
| 116 | + border-radius: 0 0.28571429rem 0.28571429rem 0; |
| 117 | +} |
| 118 | + |
| 119 | +.ui.clearing.segment:after { |
| 120 | + content: ""; |
| 121 | + display: block; |
| 122 | + clear: both; |
| 123 | +} |
| 124 | + |
| 125 | +.ui[class*="left aligned"].segment { |
| 126 | + text-align: left; |
| 127 | +} |
| 128 | +.ui[class*="center aligned"].segment { |
| 129 | + text-align: center; |
| 130 | +} |
| 131 | + |
| 132 | +.ui.secondary.segment { |
| 133 | + background: var(--color-secondary-bg); |
| 134 | + color: var(--color-text-light); |
| 135 | +} |
| 136 | + |
| 137 | +.ui.attached.segment { |
| 138 | + top: 0; |
| 139 | + bottom: 0; |
| 140 | + border-radius: 0; |
| 141 | + margin: 0 -1px; |
| 142 | + width: calc(100% + 2px); |
| 143 | + max-width: calc(100% + 2px); |
| 144 | + box-shadow: none; |
| 145 | + border: 1px solid var(--color-secondary); |
| 146 | + background: var(--color-box-body); |
| 147 | + color: var(--color-text); |
| 148 | +} |
| 149 | +.ui.attached:not(.message) + .ui.attached.segment:not(.top) { |
| 150 | + border-top: none; |
| 151 | +} |
| 152 | + |
| 153 | +.ui[class*="top attached"].segment { |
| 154 | + bottom: 0; |
| 155 | + margin-bottom: 0; |
| 156 | + top: 0; |
| 157 | + margin-top: 1rem; |
| 158 | + border-radius: 0.28571429rem 0.28571429rem 0 0; |
| 159 | +} |
| 160 | +.ui.segment[class*="top attached"]:first-child { |
| 161 | + margin-top: 0; |
| 162 | +} |
| 163 | + |
| 164 | +.ui.segment[class*="bottom attached"] { |
| 165 | + bottom: 0; |
| 166 | + margin-top: 0; |
| 167 | + top: 0; |
| 168 | + margin-bottom: 1rem; |
| 169 | + border-radius: 0 0 0.28571429rem 0.28571429rem; |
| 170 | +} |
| 171 | +.ui.segment[class*="bottom attached"]:last-child { |
| 172 | + margin-bottom: 1rem; |
| 173 | +} |
| 174 | + |
| 175 | +.ui.fitted.segment:not(.horizontally) { |
| 176 | + padding-top: 0; |
| 177 | + padding-bottom: 0; |
| 178 | +} |
| 179 | +.ui.fitted.segment:not(.vertically) { |
| 180 | + padding-left: 0; |
| 181 | + padding-right: 0; |
| 182 | +} |
| 183 | + |
| 184 | +.ui.segments .segment, |
| 185 | +.ui.segment { |
| 186 | + font-size: 1rem; |
| 187 | +} |
| 188 | + |
| 189 | +.ui.error.segment { |
| 190 | + border-color: var(--color-error-border) !important; |
| 191 | +} |
| 192 | + |
| 193 | +.ui.warning.segment { |
| 194 | + border-color: var(--color-warning-border) !important; |
| 195 | +} |
0 commit comments