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

RevLine 
[3355]1/* prelude */
2
3#prelude {
[3365]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;
[3439]24               &:hover,
25               &:focus {
[3365]26                    background: $white;
27               }
28          }
29     }
[3355]30}
31
[3439]32
[3355]33/* si le prélude est affiché on repousse les trucs dessous */
34
35#wrapper.with-prelude {
[3365]36     padding-top: 1em;
[3355]37}
38
39#help-button.with-prelude,
40#collapser.with-prelude {
[3365]41     top: 1em;
[3355]42}
43
[3439]44
[3355]45/* header global h1, form#top-info-blog, ul#top-info-user */
46
[3439]47#header {
48     a {
49          color: $white;
50     }
51     img {
52          vertical-align: middle;
53          padding-left: .5em;
54     }
[3355]55}
56
57
58/* h1 */
59
60h1 {
[3365]61     text-indent: 100%;
62     width: 16.5em;
63     a {
64          position: absolute;
65          top: 0;
66          left: 0;
67          width: 150px;
[3439]68          height: 36px; // was 3em;
[3365]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     }
[3355]82}
83
[3439]84
[3355]85/* top-info-blog */
86
[3439]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     }
[3355]106}
107
108
109/* top-info-user */
110
111#top-info-user {
[3409]112     padding-right: .5em;
[3365]113     list-style-type: none;
114     text-align: right;
[3439]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     }
[3355]133}
134
[3365]135
136/* ------------------------------------------------------------------------------------
[3439]137                                                                           UN POIL DE MEDIA QUERIES
[3365]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