Subversion-Projekte lars-tiefland.ci

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
875 lars 1
 
2
@mixin dtb-two-stop-gradient($fromColor, $toColor) {
3
	background-color: $toColor; /* Fallback */
4
	background-image: -webkit-linear-gradient(top, $fromColor 0%, $toColor 100%); /* Chrome 10+, Saf5.1+, iOS 5+ */
5
	background-image:    -moz-linear-gradient(top, $fromColor 0%, $toColor 100%); /* FF3.6 */
6
	background-image:     -ms-linear-gradient(top, $fromColor 0%, $toColor 100%); /* IE10 */
7
	background-image:      -o-linear-gradient(top, $fromColor 0%, $toColor 100%); /* Opera 11.10+ */
8
	background-image:         linear-gradient(top, $fromColor 0%, $toColor 100%);
9
	filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#{nth( $fromColor, 1 )}', EndColorStr='#{nth( $toColor, 1 )}');
10
}
11
 
12
@mixin dtb-radial-gradient ($fromColor, $toColor ) {
13
	background: $toColor; /* Fallback */
14
	background:     -ms-radial-gradient(center, ellipse farthest-corner, $fromColor 0%, $toColor 100%); /* IE10 Consumer Preview */
15
	background:    -moz-radial-gradient(center, ellipse farthest-corner, $fromColor 0%, $toColor 100%); /* Firefox */
16
	background:      -o-radial-gradient(center, ellipse farthest-corner, $fromColor 0%, $toColor 100%); /* Opera */
17
	background: -webkit-gradient(radial, center center, 0, center center, 497, color-stop(0, $fromColor), color-stop(1, $toColor)); /* Webkit (Safari/Chrome 10) */
18
	background: -webkit-radial-gradient(center, ellipse farthest-corner, $fromColor 0%, $toColor 100%); /* Webkit (Chrome 11+) */
19
	background: radial-gradient(ellipse farthest-corner at center, $fromColor 0%, $toColor 100%); /* W3C Markup, IE10 Release Preview */
20
}
21
 
22
 
23
@mixin dtb-fixed-collection {
24
	// Fixed positioning feature
25
	&.fixed {
26
		position: fixed;
27
		top: 50%;
28
		left: 50%;
29
		margin-left: -75px;
30
 
31
		&.two-column {
32
			margin-left: -150px;
33
		}
34
 
35
		&.three-column {
36
			margin-left: -225px;
37
		}
38
 
39
		&.four-column {
40
			margin-left: -300px;
41
		}
42
	}
43
 
44
	// Multi-column layout feature
45
	-webkit-column-gap: 8px;
46
	   -moz-column-gap: 8px;
47
	    -ms-column-gap: 8px;
48
	     -o-column-gap: 8px;
49
	column-gap: 8px;
50
 
51
	> * {
52
		-webkit-column-break-inside: avoid;
53
		break-inside: avoid;
54
	}
55
 
56
	&.two-column {
57
		width: 300px;
58
		padding-bottom: 1px;
59
 
60
		-webkit-column-count: 2;
61
		   -moz-column-count: 2;
62
		    -ms-column-count: 2;
63
		     -o-column-count: 2;
64
		column-count: 2;
65
	}
66
 
67
	&.three-column {
68
		width: 450px;
69
		padding-bottom: 1px;
70
 
71
		-webkit-column-count: 3;
72
		   -moz-column-count: 3;
73
		    -ms-column-count: 3;
74
		     -o-column-count: 3;
75
		column-count: 3;
76
	}
77
 
78
	&.four-column {
79
		width: 600px;
80
		padding-bottom: 1px;
81
 
82
		-webkit-column-count: 4;
83
		   -moz-column-count: 4;
84
		    -ms-column-count: 4;
85
		     -o-column-count: 4;
86
		column-count: 4;
87
	}
88
}