Dotclear

source: admin/style/scss/partials/_blog_theme.scss @ 3355:5619cd4c8c5d

Revision 3355:5619cd4c8c5d, 3.5 KB checked in by franck <carnet.franck.paul@…>, 9 years ago (diff)

Switch admin CSS to Sass/Compass?, 1st step

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

Sites map