1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | @type : 'element';
|
16 | @element : 'container';
|
17 |
|
18 | @import (multiple) '../../theme.config';
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | .ui.container {
|
26 | display: block;
|
27 | max-width: @maxWidth;
|
28 | }
|
29 |
|
30 |
|
31 | @media only screen and (max-width: @largestMobileScreen) {
|
32 | .ui.ui.ui.container:not(.fluid) {
|
33 | width: @mobileWidth;
|
34 | margin-left: @mobileGutter;
|
35 | margin-right: @mobileGutter;
|
36 | }
|
37 | & when (@variationContainerGrid) or (@variationContainerRelaxed) {
|
38 | .ui.ui.ui.grid.container {
|
39 | width: @mobileGridWidth;
|
40 | }
|
41 | & when (@variationContainerRelaxed) {
|
42 | .ui.ui.ui.relaxed.grid.container {
|
43 | width: @mobileRelaxedGridWidth;
|
44 | }
|
45 | .ui.ui.ui.very.relaxed.grid.container {
|
46 | width: @mobileVeryRelaxedGridWidth;
|
47 | }
|
48 | }
|
49 | }
|
50 | }
|
51 |
|
52 |
|
53 | @media only screen and (min-width: @tabletBreakpoint) and (max-width: @largestTabletScreen) {
|
54 | .ui.ui.ui.container:not(.fluid) {
|
55 | width: @tabletWidth;
|
56 | margin-left: @tabletGutter;
|
57 | margin-right: @tabletGutter;
|
58 | }
|
59 | & when (@variationContainerGrid) or (@variationContainerRelaxed) {
|
60 | .ui.ui.ui.grid.container {
|
61 | width: @tabletGridWidth;
|
62 | }
|
63 | & when (@variationContainerRelaxed) {
|
64 | .ui.ui.ui.relaxed.grid.container {
|
65 | width: @tabletRelaxedGridWidth;
|
66 | }
|
67 | .ui.ui.ui.very.relaxed.grid.container {
|
68 | width: @tabletVeryRelaxedGridWidth;
|
69 | }
|
70 | }
|
71 | }
|
72 | }
|
73 |
|
74 |
|
75 | @media only screen and (min-width: @computerBreakpoint) and (max-width: @largestSmallMonitor) {
|
76 | .ui.ui.ui.container:not(.fluid) {
|
77 | width: @computerWidth;
|
78 | margin-left: @computerGutter;
|
79 | margin-right: @computerGutter;
|
80 | }
|
81 | & when (@variationContainerGrid) or (@variationContainerRelaxed) {
|
82 | .ui.ui.ui.grid.container {
|
83 | width: @computerGridWidth;
|
84 | }
|
85 | & when (@variationContainerRelaxed) {
|
86 | .ui.ui.ui.relaxed.grid.container {
|
87 | width: @computerRelaxedGridWidth;
|
88 | }
|
89 | .ui.ui.ui.very.relaxed.grid.container {
|
90 | width: @computerVeryRelaxedGridWidth;
|
91 | }
|
92 | }
|
93 | }
|
94 | }
|
95 |
|
96 |
|
97 | @media only screen and (min-width: @largeMonitorBreakpoint) {
|
98 | .ui.ui.ui.container:not(.fluid) {
|
99 | width: @largeMonitorWidth;
|
100 | margin-left: @largeMonitorGutter;
|
101 | margin-right: @largeMonitorGutter;
|
102 | }
|
103 | & when (@variationContainerGrid) or (@variationContainerRelaxed) {
|
104 | .ui.ui.ui.grid.container {
|
105 | width: @largeMonitorGridWidth;
|
106 | }
|
107 | & when (@variationContainerRelaxed) {
|
108 | .ui.ui.ui.relaxed.grid.container {
|
109 | width: @largeMonitorRelaxedGridWidth;
|
110 | }
|
111 | .ui.ui.ui.very.relaxed.grid.container {
|
112 | width: @largeMonitorVeryRelaxedGridWidth;
|
113 | }
|
114 | }
|
115 | }
|
116 | }
|
117 |
|
118 |
|
119 |
|
120 |
|
121 |
|
122 | & when (@variationContainerText) {
|
123 |
|
124 | .ui.text.container {
|
125 | font-family: @textFontFamily;
|
126 | max-width: @textWidth;
|
127 | line-height: @textLineHeight;
|
128 | font-size: @textSize;
|
129 | }
|
130 | }
|
131 |
|
132 | & when (@variationContainerFluid) {
|
133 |
|
134 | .ui.fluid.container {
|
135 | width: 100%;
|
136 | }
|
137 | }
|
138 |
|
139 |
|
140 |
|
141 |
|
142 | & when (@variationContainerAligned) {
|
143 | .ui[class*="left aligned"].container {
|
144 | text-align: left;
|
145 | }
|
146 | .ui[class*="center aligned"].container {
|
147 | text-align: center;
|
148 | }
|
149 | .ui[class*="right aligned"].container {
|
150 | text-align: right;
|
151 | }
|
152 | }
|
153 | & when (@variationContainerJustified) {
|
154 | .ui.justified.container {
|
155 | text-align: justify;
|
156 | hyphens: auto;
|
157 | }
|
158 | }
|
159 |
|
160 | .loadUIOverrides();
|