aboutsummaryrefslogtreecommitdiff
path: root/semantic/src/themes/default/collections/grid.variables
blob: d2860726ae2fe268253820bb116601eebc263b30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/*******************************
             Grid
*******************************/

/* Inherited From Site */

// @mobileBreakpoint
// @tabletBreakpoint
// @computerBreakpoint
// @largeMonitorBreakpoint
// @widescreenMonitorBreakpoint

/*******************************
            Grid
*******************************/

@minWidth: 320px;

@gutterWidth: 2rem;
@rowSpacing: 2rem;

@tableWidth: e(%("calc(100%% + %d)", @gutterWidth));
@columnMaxImageWidth: 100%;

@consecutiveGridDistance: (@rowSpacing / 2);

/*******************************
           Variations
*******************************/

/*--------------
     Relaxed
---------------*/

@relaxedGutterWidth: 3rem;
@veryRelaxedGutterWidth: 5rem;

/*--------------
     Divided
---------------*/

@dividedBorder: -1px 0 0 0 @borderColor;
@verticallyDividedBorder: 0 -1px 0 0 @borderColor;

@dividedInvertedBorder: -1px 0 0 0 @whiteBorderColor;
@verticallyDividedInvertedBorder: 0 -1px 0 0 @whiteBorderColor;

/*--------------
    Celled
---------------*/

@celledMargin: 1em 0;
@celledWidth: 1px;
@celledBorderColor: @solidBorderColor;

@celledPadding: 1em;
@celledRelaxedPadding: 1.5em;
@celledVeryRelaxedPadding: 2em;

@celledGridDivider: 0 0 0 @celledWidth @celledBorderColor;
@celledRowDivider: 0 (-@celledWidth) 0 0 @celledBorderColor;
@celledColumnDivider: (-@celledWidth) 0 0 0 @celledBorderColor;


/*--------------
    Stackable
---------------*/

@stackableRowSpacing: @rowSpacing;
@stackableGutter: @gutterWidth;
@stackableMobileBorder: 1px solid @borderColor;
@stackableInvertedMobileBorder: 1px solid @whiteBorderColor;

/*--------------
    Compact
---------------*/
@compactGutterWidth: @gutterWidth / 2;
@compactRowSpacing: @rowSpacing / 2;
@compactCelledRelaxedPadding: @celledRelaxedPadding / 2;
@compactCelledVeryRelaxedPadding: @celledVeryRelaxedPadding / 2;

/*------------------
    Very Compact
------------------*/
@veryCompactGutterWidth: @compactGutterWidth / 2;
@veryCompactRowSpacing: @compactRowSpacing / 2;
@veryCompactCelledRelaxedPadding: @compactCelledRelaxedPadding / 2;
@veryCompactCelledVeryRelaxedPadding: @compactCelledVeryRelaxedPadding / 2;


/*******************************
             Legacy
*******************************/

/*--------------
     Page
---------------*/

/* Legacy (DO NOT USE)
 */
@mobileWidth: auto;
@mobileMargin: 0;
@mobileGutter: 0;

@tabletWidth: auto;
@tabletMargin: 0;
@tabletGutter: 2em;

@computerWidth: auto;
@computerMargin: 0;
@computerGutter: 3%;

@largeMonitorWidth: auto;
@largeMonitorMargin: 0;
@largeMonitorGutter: 15%;

@widescreenMonitorWidth: auto;
@widescreenMargin: 0;
@widescreenMonitorGutter: 23%;