Dotclear

source: admin/style/scss/partials/_header.scss @ 3439:640a478849cf

Revision 3439:640a478849cf, 2.5 KB checked in by franck <carnet.franck.paul@…>, 9 years ago (diff)

Prettify scss code

Line 
1/* prelude */
2
3#prelude {
4     line-height: 1.5;
5     margin: 0;
6     padding: 0;
7     overflow: hidden;
8     position: absolute;
9     top: 3em;
10     left: 0;
11     background: $light-blue;
12     width: 100%;
13     z-index: 100;
14     li {
15          list-style-type: none;
16          margin: 0;
17          background: transparent;
18          display: inline;
19          a {
20               padding: 3px 16px 3px 8px;
21               background: $light-blue;
22               color: $black;
23               text-decoration: underline;
24               &:hover,
25               &:focus {
26                    background: $white;
27               }
28          }
29     }
30}
31
32
33/* si le prélude est affiché on repousse les trucs dessous */
34
35#wrapper.with-prelude {
36     padding-top: 1em;
37}
38
39#help-button.with-prelude,
40#collapser.with-prelude {
41     top: 1em;
42}
43
44
45/* header global h1, form#top-info-blog, ul#top-info-user */
46
47#header {
48     a {
49          color: $white;
50     }
51     img {
52          vertical-align: middle;
53          padding-left: .5em;
54     }
55}
56
57
58/* h1 */
59
60h1 {
61     text-indent: 100%;
62     width: 16.5em;
63     a {
64          position: absolute;
65          top: 0;
66          left: 0;
67          width: 150px;
68          height: 36px; // was 3em;
69          color: $white;
70          background: transparent url(dc_logos/b-dotclear120.png) no-repeat 0 6px;
71          transition: none;
72          &:hover,
73          &:focus {
74               background-position: 0 -94px;
75               background-color: transparent;
76               transition: none;
77          }
78          &:link {
79               transition-timing-function: ease-in-out;
80          }
81     }
82}
83
84
85/* top-info-blog */
86
87#top-info-blog {
88     select {
89          max-width: 20em;
90     }
91     a {
92          margin-left: 1.5em;
93     }
94     input[type=submit] {
95          background: $black;
96          border-color: $gray-semi-dark;
97          margin-left: .33em;
98     }
99     input[type=submit]:hover {
100          background: $gray-semi-dark;
101     }
102     p {
103          display: inline-block;
104          margin: 0;
105     }
106}
107
108
109/* top-info-user */
110
111#top-info-user {
112     padding-right: .5em;
113     list-style-type: none;
114     text-align: right;
115     li {
116          display: inline-block;
117          margin-left: .5em;
118          padding-left: .5em;
119          border-left: 1px solid $gray-semi-dark;
120          &:first-child {
121               border-left: none;
122          }
123     }
124     a.active {
125          border-width: 0;
126          border-radius: 4px;
127          margin: 0;
128          padding: 2px 8px 3px;
129          background-color: $secondary-background;
130          color: $secondary-color;
131          font-weight: bold;
132     }
133}
134
135
136/* ------------------------------------------------------------------------------------
137                                                                           UN POIL DE MEDIA QUERIES
138------------------------------------------------------------------------------------ */
139
140@media screen and (max-width: $xxs-screen) {
141     h1,
142     h1 a {
143          padding: 0;
144     }
145}
146
147@media screen and (max-width: $xs-screen) {
148     h1 a:link {
149          background: transparent url(dc_logos/b-dotclear120.png) no-repeat -270px 6px;
150     }
151     h1 a:hover,
152     h1 a:focus {
153          background: url(dc_logos/b-dotclear120.png) no-repeat -270px -94px;
154     }
155}
Note: See TracBrowser for help on using the repository browser.

Sites map