summaryrefslogtreecommitdiff
path: root/assets/css/scss/components/_masonry.scss
blob: 7952612f9cbfad1e3fd87b34a90cae8913bb1448 (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
//
// Masonry Styles //
//
.masonry {
	margin: 0 -15px -30px;
	.masonry-item {
		margin-bottom: 30px;
		padding: 0 15px;
	}
	//
	// Masonry - Columns //
	//
	&.masonry-column-1 {
		.masonry-item { width: 100%; }
	}
	&.masonry-column-2 {
		@include breakpoint-above(md) {
			.masonry-item { width: 50%; }
		}
	}
	&.masonry-column-3 {
		@include breakpoint-above(md) {
			.masonry-item { width: 50%; }
		}
		@include breakpoint-above(lg) {
			.masonry-item { width: 33.33%; }
		}
	}
	&.masonry-column-4 {
		@include breakpoint-above(sm) {
			.masonry-item { width: 50%; }
		}
		@include breakpoint-above(md) {
			.masonry-item { width: 33.33%; }
		}
		@include breakpoint-above(lg) {
			.masonry-item { width: 25%; }
		}
	}
	&.masonry-column-5 {
		@extend .column-4;
		@include breakpoint-above(xl) {
			.masonry-item { width: 20%; }
		}
	}
	&.masonry-column-6 {
		@extend .column-4;
		@include breakpoint-above(xl) {
			.masonry-item { width: 16.66%; }
		}
	}
	//
	// Masonry - Item Spacings //
	//
	&.masonry-spacing-0 {
		margin: 0;
		.masonry-item {
			margin: 0;
			padding: 0;
		}
	}
	&.masonry-spacing-6 {
		margin: 0 -3px -6px;
		.masonry-item {
			margin-bottom: 6px;
			padding: 0 3px;
		}
	}
	&.masonry-spacing-10 {
		margin: 0 -5px -10px;
		.masonry-item {
			margin-bottom: 10px;
			padding: 0 5px;
		}
	}
	&.masonry-spacing-20 {
		margin: 0 -10px -20px;
		.masonry-item {
			margin-bottom: 20px;
			padding: 0 10px;
		}
	}
	&.masonry-spacing-40 {
		margin: 0 -20px -40px;
		.masonry-item {
			margin-bottom: 40px;
			padding: 0 20px;
		}
	}
	&.masonry-spacing-50 {
		margin: 0 -25px -50px;
		.masonry-item {
			margin-bottom: 50px;
			padding: 0 25px;
		}
	}
}