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

_section.scss « components « sass « assets « static - github.com/curttimson/hugo-theme-massively.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c99b5a4e8503dd54699800184b41a86f69d6f1a2 (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
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
///
/// Massively by HTML5 UP
/// html5up.net | @ajlkn
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
///

/* Section/Article */

	section, article {
		&.special {
			text-align: center;
		}
	}

	header {
		cursor: default;

		> .date {
			display: block;
			font-size: 0.8rem;
			height: 1;
			margin: 0 0 (_size(element-margin) * 0.5) 0;
			position: relative;
		}

		> p {
			font-style: italic;
		}

		> h1 + p {
			font-size: 1.1rem;
			margin-top: -0.5rem;
			line-height: 2;
		}

		> h2 + p {
			font-size: 1rem;
			margin-top: -0.75rem;
		}

		> h3 + p {
			font-size: 0.9rem;
			margin-top: -0.75rem;
		}

		> h4 + p {
			font-size: 0.8rem;
			margin-top: -0.75rem;
		}

		&.major {
			margin: 0 0 (_size(element-margin) * 2) 0;
			text-align: center;

			> :last-child {
				margin-bottom: 0;
			}

			> p {
				margin-top: 0;
				text-align: center;
			}

			> .date {
				font-size: 1rem;
				margin: 0 0 (_size(element-margin) * 2) 0;

				&:before, &:after {
					content: '';
					display: block;
					position: absolute;
					top: 50%;
					width: calc(50% - 6rem);
					border-top: solid 2px;
				}

				&:before {
					left: 0;
				}

				&:after {
					right: 0;
				}
			}
		}

		@include breakpoint(medium) {
			br {
				display: none;
			}
		}

		@include breakpoint(small) {
			&.major {
				margin: 0 0 _size(element-margin) 0;
			}
		}
	}

	@mixin color-section($p: null) {
		header {
			&.major {
				.date {
					&:before, &:after {
						border-top-color: _palette($p, border);
					}
				}
			}
		}
	}

	@include color-section;