source: spip-zone/_plugins_/spipr-dane-config/trunk/css/spipr-dane-config.less.html @ 114426

Last change on this file since 114426 was 114426, checked in by johan.pustoch@…, 11 months ago

On mets les règles dans la css du plugin spipr-dane
eviter un warning dans le pipeline

File size: 3.6 KB
Line 
1#CACHE{3600*100,cache-client}
2#HTTP_HEADER{Content-Type: text/css; charset=iso-8859-15}
3#HTTP_HEADER{Vary: Accept-Encoding}
4
5// -----------------------------------------------------
6//  Plugin SPIPr-Dane-Config
7//  Squelette spipr-dane-config.less.html
8//  (c) 2019 Dominique Lepaisant
9//  Distribue sous licence GPL3
10// -----------------------------------------------------
11@import "css/variables.less";
12@import "css/mixins.less";
13
14
15/////////////////////
16// Recuperation des metas
17/////////////////////
18
19// ajuster le chemin des images en fonction d'une mutu ou non
20[(#SET{url_image, #URL_SITE_SPIP/})]
21[(#EVAL{_DIR_SITE}|!={#EVAL{_DIR_RACINE}}|oui)
22[(#SET{url_image, #EVAL{_DIR_SITE}|replace{sites}})]
23[(#SET{url_image, /#GET{url_image}#EVAL{_DIR_SITE}})]
24]
25
26//// Body ////
27body {
28[    background-color: (#CONFIG{sdc/body/background-color});
29][(#CONFIG{sdc/body/background-image}|oui)
30     background-image: url("#GET{url_image}squelettes/images/#CONFIG{sdc/body/background-image}");
31[    background-repeat: (#CONFIG{sdc/body/background-repeat});
32][   background-position: (#CONFIG{sdc/body/background-position});
33][   background-attachment: (#CONFIG{sdc/body/background-attachment});
34][   background-size: (#CONFIG{sdc/body/background-size});
35]]}
36
37//// Header ////
38#header {
39    [(#CONFIG{sdc/header/largeur_background}|oui)
40    .container{]
41    [    background-color: (#CONFIG{sdc/header/background-color});
42    ][(#CONFIG{sdc/header/background-image}|oui)
43         background-image: url("#GET{url_image}squelettes/images/#CONFIG{sdc/header/background-image}");
44    [    background-repeat: (#CONFIG{sdc/header/background-repeat});
45    ][   background-position: (#CONFIG{sdc/header/background-position});
46    ][   background-attachment: (#CONFIG{sdc/header/background-attachment});
47    ][   background-size: (#CONFIG{sdc/header/background-size});
48    ]]
49    [(#CONFIG{sdc/header/largeur_background}|oui)
50    }]
51    header h1#logo_site_spip {[
52        font-family: '(#CONFIG{sdc/title/font-family})', Arial, Helvetica, sans-serif;][
53        font-size: (#CONFIG{sdc/title/font-size})em;][
54        color: (#CONFIG{sdc/title/color});
55        #slogan_site_spip { color: (#CONFIG{sdc/title/color});}][
56        .spip_logos{ float: (#CONFIG{sdc/header/position_logo});margin:0 0 0 25px;}]
57    }
58}
59
60// Adapter la couleur des icones a la couleur des liens
61#nav{
62   .menu-container,
63    .menu-conteneur {
64        .nav .item.item-picto > a{
65            & when (@navbarLinkColor = @black) {
66                background-image: url("/#GET{url_image}plugins/squelette/spipr_dane/css/img/sprite-black.png");
67                & when(@navbarLinkColorHover = @white) {
68                    background-image: url("/#GET{url_image}plugins/squelette/spipr_dane/css/img/sprite.png");
69                }
70            }
71            & when (@navbarLinkColor = @white) {
72                background-image: url("/#GET{url_image}plugins/squelette/spipr_dane/css/img/sprite-white.png");
73                & when(@navbarLinkColorHover = @black) {
74                    background-image: url("/#GET{url_image}plugins/squelette/spipr_dane/css/img/sprite-inverse.png");
75                }
76            }
77        }
78    }
79
80}
81
82//// Footer ////
83#footer {
84[    background-color: (#CONFIG{sdc/footer/background-color});
85][(#CONFIG{sdc/footer/background-image}|oui)
86     background-image: url("#GET{url_image}squelettes/images/#CONFIG{sdc/footer/background-image}");
87[    background-repeat: (#CONFIG{sdc/footer/background-repeat});
88][   background-position: (#CONFIG{sdc/footer/background-position});
89][   background-attachment: (#CONFIG{sdc/footer/background-attachment});
90][   background-size: (#CONFIG{sdc/footer/background-size});
91]]
92}
Note: See TracBrowser for help on using the repository browser.