gasap.less 6.33 KB
Newer Older
agnez's avatar
start  
agnez committed
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
/* gasap uikit overwrites */
.tm-main{
	background-color: #ffffff;
}
.tm-header{
	border: none;
}
.uk-block {
  padding-bottom: 20px;
  padding-top: 30px;
}
.uk-button {
	border-radius: 12px;
	padding: 5px 30px;
	margin: 1em auto;
}

@bleu-ciel:#f5f5f5;

h1, h2, h3, h4, h5, h6{
	color: @global-muted-color;
}
h1, h2{
	text-align: center;
}
agnez's avatar
agnez committed
26 27 28
	h2.textegauche{
		text-align: left;		
	}	
agnez's avatar
start  
agnez committed
29 30 31 32 33 34 35 36 37 38 39

.uk-grid >  {
	h1, h2, h3, h4, h5, h6{
		margin: 0 0 15px;
	}
}

h2{
	color: @global-muted-color;
	font-weight: bold;
}
agnez's avatar
agnez committed
40 41 42 43 44 45 46
.uk-slider{
	a, 
	img {
	  display: block;
	  margin: 0 auto;
	}
}
agnez's avatar
start  
agnez committed
47

agnez's avatar
agnez committed
48
.uk-panel.uk-panel-box.gasap-panel-box{
agnez's avatar
start  
agnez committed
49
	text-align: center;
agnez's avatar
agnez committed
50
	color: @global-muted-color;
agnez's avatar
start  
agnez committed
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 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
	padding:0 1em;
	background-color: white;
	border: 3px solid @global-success-background;
	img.attachment-post-thumbnail{
		margin : 1em auto;
	}
	&.uk-panel-header .uk-panel-title{
		background-color: @global-success-background;
		padding:0.7em 1em 1.5em;
		margin-left: -.9em;
		margin-right: -.9em;

	}
	&.uk-panel-box-secondary{
		border-color:@global-danger-background;
		&.uk-panel-header .uk-panel-title{
			background-color: @global-danger-background;
		}		
	}
	div.textegauche{
		padding:1em 2em;
		text-align: left;		
	}	
}


/* gasap beans parent overwrites */
.tm-article-image{
	margin: 0;
}
main .uk-container{
	padding: 0;
}

/* snippets sur mesure  TODO no bg_img for small screen*/
#snippet_p2{
	background: url(images/bg_ferme.png) center bottom no-repeat @bleu-ciel;
	padding-bottom: 60px;
	background-size:100% auto;
}
#snippet_p6{
	background: url(images/bg_reseau.png) center bottom no-repeat @bleu-ciel;
	padding-bottom: 60px;
	background-size:100% auto;
}
#snippet_p8{
	background: url(images/bg_producteur.png) center bottom no-repeat @bleu-ciel;
	padding-bottom: 60px;
	background-size:100% auto;
}
#snippet_p12{
	background: url(images/bg_mangeurs.png) center bottom no-repeat @bleu-ciel;
	padding-bottom: 60px;
	background-size:100% auto;
}
#snippet_le_reseau{ /*p2*/
	background: url(images/bg_fleurs.png) center bottom no-repeat @bleu-ciel;
	padding-bottom: 100px;
	background-size:100% auto;
}
#snippet_trois_etapes, /*template part*/
#snippet_prod_engagements /*p8*/ {
	background: url(images/bg_buissons.png) center bottom no-repeat transparent;
	background-size:100% auto;
	padding-top: @global-grid-gutter-large;
	padding-bottom: 60px;
	.uk-panel.uk-panel-box hr{
		background: url(images/trois_etapes_separator.png) center center no-repeat transparent;
		color:transparent;
		border: none;
		height: 40px;
	}	
}
#snippet_reseau_pourquoi,/*p6*/
#snippet_les_engagements /*p12*/{
	border:1px solid @global-muted-color;
	border-width: 0 0 3px;
	padding-top: @global-grid-gutter-large;
	padding-bottom: @global-grid-gutter-large;
}
#snippet_charte /*p6*/{
	background: url(images/bg_poules.png) center bottom no-repeat transparent;
	background-size:100% auto;
	padding-bottom: 130px;
	padding-top: @global-grid-gutter-large;
}
#snippet_mange_chouette /*p12*/ {
	background: url(images/bg_cereal2.png) center bottom no-repeat transparent;
	background-size:100% auto;
	padding-top: @global-grid-gutter-large;
	padding-bottom: 60px;
	h3{
		text-align: center;
	}
	img.attachment-thumbnail{
		margin: 1em auto;
		display: block;
	}
}
#snippet_avantages, /*p12*/
#snippet_avantages_prod {
agnez's avatar
agnez committed
152
	background: url(images/bg_avantages.png) center bottom no-repeat @bleu-ciel;
agnez's avatar
start  
agnez committed
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
	padding-bottom: 100px;
	padding-top: 30px;
	background-size:100% auto;	
	.uk-grid > div{
		margin-left: 35px;
		margin-right: -35px;
		 h3{
			background: url(images/puce_plus.png) left center no-repeat transparent;
			min-height: 30px;
			padding-left: 35px;
			margin-left: -35px;
			margin-bottom: -15px;
			text-align: left;
		}
	}	
}
#snippet_creer_integrer{
	background: url(images/bg_cereal.png) center bottom no-repeat @bleu-ciel;
	background-size: contain;
	padding-top: 30px;
	padding-bottom: 110px;
}
#snippet_prod_comment, /*p8*/
#snippet_mangeurs_comment /*p12*/{
	background: url(images/bg_legumes.png) center center no-repeat transparent;
	background-size:90% auto;
	padding-top: @global-grid-gutter-large;
}
#snippet_reseau_pourquoi {
	padding-top: @global-grid-gutter-large;
	padding-bottom: @global-grid-gutter-large;
	img{
		margin:0 auto;
		display: block;
	}
	h3{
		text-align: left;
	}
	.uk-pull-1-2{
		text-align: right;
		h3{
			text-align: right;
		}
	}
}
agnez's avatar
agnez committed
198 199
#snippet_devenir_benevole,
#snippet_presse{
agnez's avatar
agnez committed
200 201 202 203 204 205 206 207 208 209 210 211 212 213
	color: white;
	background-color:@global-muted-color;
	> div{
		background: url(images/devenir_benevole.png) right bottom no-repeat @global-muted-color;
		background-size:auto 80%;
		margin: 0 3em;
		> div{
			padding:3em 0 2em;
		}
	}
	h2{
		color: white;
	}	
}
agnez's avatar
agnez committed
214 215
#snippet_presse{
	> div{
agnez's avatar
agnez committed
216 217
		background: url(images/presse.png) right bottom no-repeat @global-muted-color;
		background-size:auto 80%;
agnez's avatar
agnez committed
218 219
		}
}
agnez's avatar
agnez committed
220 221 222 223
#snippet_partenaires{
	>div{
		padding:3em 0 2em;
	}
agnez's avatar
start  
agnez committed
224
}
agnez's avatar
agnez committed
225 226 227 228 229 230 231
#newsslider{
	.uk-overlay-panel > div{
		max-width: 60%;
	}
}
#snippet_six_news{
	padding: 3em 0;
agnez's avatar
agnez committed
232 233 234 235 236 237 238 239 240 241 242 243 244
	figure{
		img.wp-post-image{
			opacity:0.5;
		}
		&:hover{
			img.wp-post-image{
				opacity:1;
			}
			.uk-overlay-panel{
				opacity:0;
			} 		
		}
	}	
agnez's avatar
agnez committed
245
}
agnez's avatar
agnez committed
246 247 248 249 250 251 252 253 254
#snippet_la_carte{
	.uk-panel-box {
		background: #fafafa none repeat scroll 0 0;
		border: 1px solid #e5e5e5;
		border-radius: 4px;
		color: #666;
		padding: 15px;
	}	
}
agnez's avatar
agnez committed
255 256 257 258
#snippet_contact_calendrier{
	background-color: @bleu-ciel;
	padding: 3em 0;
}
agnez's avatar
start  
agnez committed
259 260 261 262 263 264 265
#gasap-footer{
	background-color: @global-muted-color;
	color: white;
	h4{
		color: white;
		text-align: left;
	}
agnez's avatar
agnez committed
266
	#nl_form{
agnez's avatar
agnez committed
267 268
		background-color: @global-muted-color;
		border: 1px solid white;
agnez's avatar
agnez committed
269 270
		input{
			display: inline;
agnez's avatar
agnez committed
271 272 273
			background-color: @global-muted-color;
			border:none;
			color:white;
agnez's avatar
agnez committed
274
		}
agnez's avatar
agnez committed
275 276 277 278 279 280 281 282
		.uk-form-icon{
			float: right;
			padding: .7em 0;
		}
		.uk-form *::-moz-placeholder,
		.uk-form-icon > [class*="uk-icon-"]{
			color:white;
		}		
agnez's avatar
agnez committed
283
	}	
agnez's avatar
start  
agnez committed
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316
}
.largeur1{
	max-width:950px;
	margin: 0 auto;
}
.largeur2{
	max-width:750px;
	margin: 0 auto;
}
.largeur3{
	max-width:535px;
	margin: 0 auto;
}

@media (min-width: 480px) {
	.largeur1,
	.largeur2,
	.largeur3{
		width:100%;
	}
}
@media screen and ( max-width: 782px ) {
	.largeur1{
		width: 90%;
		max-width:700px;
	}	
	.largeur2{
		width: 70%;
		max-width:600px;
	}
	.largeur3{
		max-width:535px;
	}		
agnez's avatar
agnez committed
317
	.uk-panel.uk-panel-box.gasap-panel-box{
agnez's avatar
start  
agnez committed
318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337
		margin-bottom: 1em;
	}
}
@media (min-width: 960px) {
				
}


/*divers*/
#snippet_trois_boutons,
#snippet_les_engagements, /*p12*/
#snippet_p87,
.textecenter {
	text-align: center;
}

p.edit-link{
	margin-top: -1em;
	padding-bottom: 1em;
}