summaryrefslogtreecommitdiff
path: root/website/static/sass/components/_spotlight.scss
blob: 90c6c5b267bce8c2e562e75fd32f967fe676439a (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
///
/// Stellar by HTML5 UP
/// html5up.net | @ajlkn
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
///

/* Spotlight */

	.spotlight {
		@include vendor('display', 'flex');
		@include vendor('align-items', 'center');
		margin: 0 0 _size(element-margin) 0;

		.content {
			@include vendor('flex', '1');

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

			header {
				&.major {
					margin: 0 0 _size(element-margin) 0;
				}
			}
		}

		.image {
			display: inline-block;
			margin-left: 4em;
			padding: 0.65em;
			border-radius: 100%;
			border: solid 1px;

			img {
				display: block;
				border-radius: 100%;
				width: 16em;
			}
		}

		@include breakpoint(medium) {
			@include vendor('flex-direction', 'column-reverse');
			text-align: center;

			.content {
				@include vendor('flex', '0 1 auto');
				width: 100%;

				header {
					&.major {
						h2 {
							&:after {
								margin-left: auto;
								margin-right: auto;
							}
						}
					}
				}
			}

			.image {
				@include vendor('flex', '0 1 auto');
				margin-left: 0;
				margin-bottom: _size(element-margin);
			}
		}

		@include breakpoint(small) {
			.image {
				padding: 0.35em;

				img {
					width: 12em;
				}
			}
		}
	}

	@mixin color-spotlight($p: null) {
		.spotlight {
			.image {
				border-color: _palette($p, border);
			}
		}
	}

	@include color-spotlight;