Dotclear

source: admin/style/scss/partials/_blog_theme.scss @ 3468:5f0bb79dfa96

Revision 3468:5f0bb79dfa96, 3.0 KB checked in by franck <carnet.franck.paul@…>, 9 years ago (diff)

Fix button’s position for activated theme on theme list

Line 
1/* pour les alignements verticaux */
2
3#theme-new,
4#theme-activate,
5#theme-deactivate,
6#theme-update {
7     margin-left: -10px;
8     margin-right: -10px;
9}
10
11.box.theme {
12     margin: 5px;
13     padding: 10px 10px 5px 10px;
14     border: 1px solid #dfdfdf;
15     position: relative;
16     &:hover {
17          background: #ecf0f1 url(texture.png);
18     }
19     input {
20          margin-bottom: 1em;
21     }
22}
23
24.module-name,
25.module-name label {
26     margin-bottom: .5em;
27     color: #676e78;
28}
29
30.module-sshot {
31     text-align: center;
32     img {
33          padding: 5px;
34          background: #f7f7f7;
35          box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
36          border: 3px solid #fff;
37          max-width: 100%;
38     }
39}
40
41.module-actions {
42     margin-top: 1em;
43}
44
45.bloc-toggler {
46     text-align: right;
47     img {
48          opacity: .4;
49          &:hover {
50               opacity: 1;
51          }
52     }
53     a:focus img {
54          opacity: 1;
55     }
56}
57
58span.module-version:before {
59     content: "- ";
60}
61
62.toggle-bloc .mod-more {
63     display: block;
64     margin-left: 0;
65}
66
67.module-name input[type="checkbox"] {
68     margin-bottom: 0;
69}
70
71
72/**
73Les screenshots des thèmes ont deux tailles possibles :
74- dans Ajouter des thèmes : 240px (+ 10 padding image + 20 padding boîte + 6 bordure + 2 ombrage = 278)
75- dans Thèmes installés : 280px (+ 10 padding-image + 20 padding-boîte + 2 ombrage = 318)
76On adapte largeur et hauteur en fonction
77*/
78
79#theme-new .box.theme,
80#theme-update .box.theme {
81     /* Ajouter un thème */
82     width: 278px;
83     min-height: 275px;
84}
85
86#theme-new .module-sshot img {
87     /* Pour ceux qui n'ont pas de miniature on contraint l'image */
88     max-width: 240px;
89     max-height: 210px;
90     overflow: hidden;
91}
92
93#theme-deactivate .box.theme {
94     /* Thèmes désactivés */
95     width: 278px;
96     &:hover {
97          background: transparent url(dc_logos/sq-logo-32.png) no-repeat top right;
98     }
99}
100
101#theme-activate .box.theme {
102     /* Thèmes installés */
103     width: 318px;
104     min-height: 304px;
105     max-width: 100%;
106}
107
108
109/* si js est là, les infos viennent par dessus le screenshot */
110
111.with-js #theme-new {
112     .module-infos.toggle-bloc,
113     .module-actions.toggle-bloc {
114          position: absolute;
115          left: 10px;
116          width: 239px;
117          margin: 0;
118          padding: 10px;
119          background: rgba(250, 250, 250, .95);
120     }
121     .module-infos.toggle-bloc {
122          top: 128px;
123          height: 80px;
124          border-top: 1px solid #e3e3e3;
125     }
126     .module-actions.toggle-bloc {
127          top: 208px;
128          height: 40px;
129          border-bottom: 1px solid #e3e3e3;
130     }
131}
132
133.with-js .module-sshot:hover {
134     cursor: pointer;
135}
136
137
138/* mise en forme pour la boîte du thème courant */
139
140.box.current-theme {
141     /* Thème courant */
142     width: 646px;
143     margin: 5px;
144     padding: 20px 18px 6px;
145     background: #fff url(texture.png);
146     border: 1px solid #eee;
147     border-radius: .5em;
148     min-height: 326px;
149     box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
150     position: relative;
151     .module-sshot:hover {
152          cursor: auto;
153     }
154     .module-sshot img {
155          float: left;
156          margin-right: 2em;
157          border: 9px solid #fff;
158          padding: 5px;
159          max-width: 308px;
160          max-height: 273px;
161     }
162     .module-name {
163          color: #D33800;
164          font-size: 1.5em;
165          margin-bottom: 1em;
166     }
167     .module-actions {
168          display: flex;
169          flex-wrap: wrap;
170     }
171}
172
173.current-actions {
174     width: auto;
175     overflow: hidden;
176     padding-top: 2em;
177     background: transparent url(../images/minus-theme.png) no-repeat left top;
178}
Note: See TracBrowser for help on using the repository browser.

Sites map