Projekt

Allgemein

Profil

GX-Bug #50812 » _footer.scss

Torben Wark, 23.03.2017 13:01

 
1
/* Footer
2
   ========================================================================== */
3

    
4
#footer {
5
	@include background($gx-footer-bg,
6
	                    $gx-footer-bg-image-url,
7
	                    $gx-footer-bg-image-position,
8
	                    $gx-footer-bg-image-repeat,
9
	                    $gx-footer-bg-image-size,
10
	                    $gx-footer-bg-image-attachment);
11
	
12
	color: $gx-footer-color;
13
	
14
	h4 {
15
		color:     $gx-footer-color;
16
		font-size: 16px;
17
		display:   block;
18
		padding:   8px 0;
19
		margin:    0;
20
		@include thick-heading();
21
	}
22
	
23
	// footer header including newsletter form
24
	
25
	.footer-header {
26
		@include background($gx-footer-header-bg,
27
		                    $gx-footer-header-bg-image-url,
28
		                    $gx-footer-header-bg-image-position,
29
		                    $gx-footer-header-bg-image-repeat,
30
		                    $gx-footer-header-bg-image-size,
31
		                    $gx-footer-header-bg-image-attachment);
32
		
33
		color:          $gx-footer-header-color;
34
		min-height:     $gx-footer-header-min-height;
35
		padding-top:    floor($grid-gutter-width / 2);
36
		padding-bottom: 0;
37
		
38
		.form-group {
39
			margin-bottom: 0;
40
			> div {
41
				@media (min-width: $screen-sm-min) {
42
					padding: 0 floor($grid-gutter-width / 4);
43
				}
44
			}
45
			.form-control,
46
			.btn {
47
				margin-bottom: floor($grid-gutter-width / 2);
48
			}
49
		}
50
	}
51
	
52
	// main footer area
53
	
54
	.inside {
55
		padding:       $grid-gutter-width floor($grid-gutter-width / 2) 0;
56
		min-height:    ($gx-footer-min-height - 100);
57
		border-bottom: 1px solid $gx-footer-boxes-border-color;
58
		
59
		// right borders
60
		
61
		> .row > div {
62
			margin-bottom: $grid-gutter-width;
63
			@media (min-width: $screen-sm-min) {
64
				&:nth-of-type(2n + 1) {
65
					border-right: 1px solid $gx-footer-boxes-border-color;
66
				}
67
			}
68
			@media (min-width: $screen-lg-min) {
69
				&:nth-of-type(2n + 2) {
70
					border-right: 1px solid $gx-footer-boxes-border-color;
71
				}
72
				&:last-of-type {
73
					border-right-color: transparent;
74
				}
75
			}
76
		}
77
		
78
		.row {
79
			.footer-col-1, .footer-col-2, .footer-col-3, .footer-col-4 {
80
				p {
81
					line-height: $gx-footer-line-height;
82
				}
83
				
84
				a {
85
					&:not(.social-media-icons a) {
86
						color: $gx-footer-link-color;
87
					}
88
				}
89
			}
90
			
91
			.footer-col-1 {
92
				@media (min-width: $screen-sm-min) {
93
					min-height: ($gx-footer-min-height - 100);
94
				}
95
				
96
				@if ($gx-hide-footer-col-1 == true) {
97
					display: none;
98
				} @else {
99
					@include make-xs-column($gx-footer-col-1-xs);
100
					@include make-sm-column($gx-footer-col-1-sm);
101
					@include make-lg-column($gx-footer-col-1-lg);
102
				}
103
			}
104
			
105
			.footer-col-2 {
106
				@media (min-width: $screen-sm-min) {
107
					min-height: ($gx-footer-min-height - 100);
108
				}
109
				
110
				@if ($gx-hide-footer-col-2 == true) {
111
					display: none;
112
				} @else {
113
					@include make-xs-column($gx-footer-col-2-xs);
114
					@include make-sm-column($gx-footer-col-2-sm);
115
					@include make-lg-column($gx-footer-col-2-lg);
116
				}
117
			}
118
			
119
			.footer-col-3 {
120
				@media (min-width: $screen-sm-min) {
121
					min-height: ($gx-footer-min-height - 100);
122
				}
123
				
124
				@if ($gx-hide-footer-col-3 == true) {
125
					display: none;
126
				} @else {
127
					@include make-xs-column($gx-footer-col-3-xs);
128
					@include make-sm-column($gx-footer-col-3-sm);
129
					@include make-lg-column($gx-footer-col-3-lg);
130
				}
131
			}
132
			
133
			.footer-col-4 {
134
				@media (min-width: $screen-sm-min) {
135
					min-height: ($gx-footer-min-height - 100);
136
				}
137
				
138
				@if ($gx-hide-footer-col-4 == true) {
139
					display: none;
140
				} @else {
141
					@include make-xs-column($gx-footer-col-4-xs);
142
					@include make-sm-column($gx-footer-col-4-sm);
143
					@include make-lg-column($gx-footer-col-4-lg);
144
				}
145
			}
146
		}
147
	}
148
	
149
	// social media icon bar
150
	
151
	.social-media-icons {
152
		position:   absolute;
153
		list-style: none;
154
		padding:    0;
155
		margin:     0;
156
		top:        -50px;
157
		> li {
158
			display:       block;
159
			float:         left;
160
			padding-left:  0;
161
			padding-right: 10px;
162
			a {
163
				display:        table-cell;
164
				vertical-align: middle;
165
				text-align:     center;
166
				width:          40px;
167
				height:         40px;
168
				background:     #000000;
169
				color:          #FFFFFF;
170
				font-size:      22px;
171
				&.facebook {
172
					background-color: $gx-facebook;
173
					&:hover {
174
						background: #FFFFFF;
175
						color:      $gx-facebook;
176
					}
177
				}
178
				&.twitter {
179
					background-color: $gx-twitter;
180
					&:hover {
181
						background: #FFFFFF;
182
						color:      $gx-twitter;
183
					}
184
				}
185
				&.instagram {
186
					background-color: $gx-instagram;
187
					&:hover {
188
						background: #FFFFFF;
189
						color:      $gx-instagram;
190
					}
191
				}
192
				&.youtube {
193
					background-color: $gx-youtube;
194
					&:hover {
195
						background: #FFFFFF;
196
						color:      $gx-youtube;
197
					}
198
				}
199
				&.googleplus {
200
					background-color: $gx-googleplus;
201
					&:hover {
202
						background: #FFFFFF;
203
						color:      $gx-googleplus;
204
					}
205
				}
206
				&.pinterest {
207
					background-color: $gx-pinterest;
208
					&:hover {
209
						background: #FFFFFF;
210
						color:      $gx-pinterest;
211
					}
212
				}
213
				&.linkedin {
214
					background-color: $gx-linkedin;
215
					&:hover {
216
						background: #FFFFFF;
217
						color:      $gx-linkedin;
218
					}
219
				}
220
				&.vimeo {
221
					background-color: $gx-vimeo;
222
					&:hover {
223
						background: #FFFFFF;
224
						color:      $gx-vimeo;
225
					}
226
				}
227
				&.tumblr {
228
					background-color: $gx-tumblr;
229
					&:hover {
230
						background: #FFFFFF;
231
						color:      $gx-tumblr;
232
					}
233
				}
234
				&.flickr {
235
					background-color: $gx-flickr;
236
					&:hover {
237
						background: #FFFFFF;
238
						color:      $gx-flickr;
239
					}
240
				}
241
				@include border-radius(50%);
242
			}
243
		}
244
	}
245
	
246
	// bottom row with copyright
247
	
248
	.footer-bottom {
249
		text-align:  center;
250
		padding-top: 15px;
251
		min-height:  50px;
252
		clear:       both;
253
	}
254
	
255
	// panels inside footer
256
	// it's possible to show boxes with panel html in footer
257
	
258
	.panel {
259
		background: transparent;
260
		border:     none;
261
		@include box-shadow(none);
262
		.panel-heading,
263
		.panel-heading,
264
		.panel-body {
265
			border:     none;
266
			background: transparent;
267
			@include box-shadow(none);
268
			color:      $gx-footer-color;
269
			padding:    0;
270
		}
271
		.panel-heading {
272
			text-transform: uppercase;
273
			padding:        0;
274
			font-size:      $font-size-base;
275
			.panel-title {
276
				@include thick-heading();
277
			}
278
		}
279
		.panel-body {
280
			ul,
281
			li {
282
				list-style:  none;
283
				line-height: $gx-footer-line-height;
284
				margin:      0;
285
				padding:     0;
286
				a {
287
					color:   $gx-footer-link-color;
288
					display: block;
289
					padding: 0;
290
				}
291
			}
292
			
293
			li {
294
				padding: 2px 0;
295
				
296
				&:first-child {
297
					padding: 0;
298
				}
299
			}
300
		}
301
	}
302
	
303
	// navigation elements
304
	
305
	.nav > li > a {
306
		&:hover {
307
			background:      transparent;
308
			color:           #333333;
309
			text-decoration: underline;
310
		}
311
	}
312
}
    (1-1/1)