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: 20fdef3c6a246a3cb830da01c3744055ca07f1dc (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
/*-----------------------*
		stack
*-----------------------*/
.stack-base {
	margin-top: 0;
	margin-bottom: 0;
}

.stack {
	margin-top: $default-stack;
}

.no-stack {
	margin-top: 0;
}
.unset-stack {
	margin-top: unset;
	margin-bottom: unset;
}

main * {
	@extend .stack-base;
}

main {
	* {
		+ h1, + h2, + h3, + h4, + h5, + h6,
		+ p,
		+ hr,
		+ table,
		+ ul,
		+ ol,
		+ dl,
		+ blockquote,
		+ pre,
		+ figure {
			@extend .stack;
		}
	}

	li > ul,
	li > ol {
		@extend .unset-stack;
	}
}

figure > figcaption {
	@extend .no-stack;
}