Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_stack.scss « foundation « scss « src - github.com/thingsym/hugo-theme-techdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d9feb149d7f8b32ecf88a6c93fc56fb8f9d13b5c (plain)
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
@use '../variable';

/*-----------------------*
		stack
*-----------------------*/
:root {
	--const-stack: #{variable.$default-stack};
	--stack-top: #{variable.$default-stack};
	--stack-bottom: 0;
	--first-stack-top: 0;
	--first-stack-bottom: 0;
	--last-stack-top: 0;
	--last-stack-bottom: 0;
}

.first-stack,
%first-stack {
	margin-top: var(--first-stack-top, unset);
	margin-bottom: var(--first-stack-bottom, unset);
}

.stack,
%stack {
	margin-top: var(--stack-top, unset);
	margin-bottom: var(--stack-bottom, unset);
}

.last-stack,
%last-stack {
	margin-top: var(--last-stack-top, unset);
	margin-bottom: var(--last-stack-bottom, unset);
}

.stack-multi--by2,
%stack-multi--by2 {
	margin-top: calc(var(--first-stack-top, unset) * 2);
	margin-bottom: calc(var(--first-stack-bottom, unset) * 2);
}

.stack-multi--by4,
%stack-multi--by4 {
	margin-top: calc(var(--first-stack-top, unset) * 4);
	margin-bottom: calc(var(--first-stack-bottom, unset) * 4);
}

.stack-divi--by2,
%stack-divi--by2 {
	margin-top: calc(var(--first-stack-top, unset) / 2);
	margin-bottom: calc(var(--first-stack-bottom, unset) / 2);
}

.none-stack,
%none-stack {
	margin-top: 0;
}

.unset-stack,
%unset-stack {
	margin-top: unset;
}

.reverse-stack
%reverse-stack {
	margin-top: var(--stack-bottom, unset);
	margin-bottom: var(--stack-top, unset);
}