Révision e5461e73
Ajouté par Julien Enselme il y a environ 9 ans
drupal7/sites/all/themes/rubik/core.css | ||
---|---|---|
23 | 23 |
div.messages { |
24 | 24 |
color:#036; |
25 | 25 |
background-color:#f8f8f8; |
26 |
padding:9px 9px 9px 40px; |
|
26 | 27 |
border:1px solid #ccc; |
27 | 28 |
margin:0px 0px 10px; |
28 | 29 |
} |
... | ... | |
46 | 47 |
background-color:#ecf8f4; |
47 | 48 |
} |
48 | 49 |
|
50 |
table tr.merge-down td {border-bottom: 0;} |
|
51 |
table tr.merge-up td {border-top: 0;} |
|
52 |
table td.status-description { |
|
53 |
padding: 3px 40px; |
|
54 |
font-size: .9em; |
|
55 |
} |
|
56 |
|
|
49 | 57 |
div.error { border-color:#ffd4d0; } |
50 | 58 |
div.warning { border-color:#ffe4b0; } |
51 | 59 |
div.status { border-color:#dce8e4; } |
... | ... | |
201 | 209 |
.page-admin table tr.even td { |
202 | 210 |
background-color: #f9f9f9; |
203 | 211 |
} |
212 |
.page-admin table tr.odd, |
|
213 |
.page-admin table tr.odd td { |
|
214 |
background-color: #fff; |
|
215 |
} |
|
204 | 216 |
|
205 | 217 |
/* Use Drupal's default colors for Available Updates page statuses */ |
206 | 218 |
.page-admin table tr.warning, |
... | ... | |
251 | 263 |
padding:9px; |
252 | 264 |
} |
253 | 265 |
.form-wrapper { |
254 |
border: 1px solid #ddd; |
|
255 | 266 |
margin-bottom: 10px; |
256 | 267 |
} |
257 | 268 |
|
... | ... | |
310 | 321 |
color:#666; |
311 | 322 |
font-weight:bold; |
312 | 323 |
font-size:10px; |
313 |
text-transform:uppercase; |
|
314 | 324 |
} |
315 | 325 |
|
316 | 326 |
.form-item label.option { |
... | ... | |
318 | 328 |
font-size:11px; |
319 | 329 |
} |
320 | 330 |
|
331 |
input.button-add { |
|
332 |
background-position:-801px 50%; |
|
333 |
padding-left:25px; |
|
334 |
} |
|
335 |
|
|
336 |
input.button-add:active { background-position:-1201px 50%; } |
|
337 |
|
|
338 |
input.button-remove { |
|
339 |
background-position:-1601px 50%; |
|
340 |
padding-left:25px; |
|
341 |
} |
|
342 |
|
|
343 |
input.button-remove:active { background-position:-2001px 50%; } |
|
344 |
|
|
321 | 345 |
.form-item label.option input { vertical-align:middle; } |
322 | 346 |
|
323 | 347 |
.page-content .password-description, |
... | ... | |
356 | 380 |
padding:9px 10px 20px; |
357 | 381 |
display:none; |
358 | 382 |
} |
359 |
|
|
383 |
|
|
360 | 384 |
.page-content .form-item.form-type-checkbox .description { |
361 | 385 |
bottom: 150%; |
362 | 386 |
} |
363 | 387 |
|
364 | 388 |
.page-content .form-item:hover { |
365 |
z-index:1; |
|
389 |
z-index:10;
|
|
366 | 390 |
height:auto; /* Fix for flicker in IE7 */ |
367 | 391 |
} |
368 | 392 |
|
... | ... | |
380 | 404 |
z-index:0; |
381 | 405 |
} |
382 | 406 |
|
383 |
input.form-submit, a.button { display: inline-block;} |
|
407 |
input.form-submit, a.button, .form-actions #edit-cancel { display: inline-block;}
|
|
384 | 408 |
|
385 | 409 |
input.teaser-button, |
386 |
input.form-submit, a.button { |
|
410 |
input.form-submit, a.button, |
|
411 |
.form-actions #edit-cancel { |
|
387 | 412 |
cursor:pointer; |
388 |
padding:2px 10px;
|
|
413 |
padding:3px 10px;
|
|
389 | 414 |
color:#333; |
390 | 415 |
font-size:13px; |
391 | 416 |
text-align:center; |
... | ... | |
396 | 421 |
background:#fff url(images/buttons.png) -1px 50% no-repeat; |
397 | 422 |
} |
398 | 423 |
|
399 |
input.form-submit:hover, a.button:hover { |
|
424 |
input.form-submit:hover, |
|
425 |
a.button:hover, |
|
426 |
.form-actions #edit-cancel:hover { |
|
400 | 427 |
border-color:#ace; |
401 | 428 |
-webkit-box-shadow:#ace 0px 0px 5px; |
402 | 429 |
} |
403 | 430 |
|
404 |
input.form-submit:active, a.button:active { |
|
431 |
input.form-submit:active, |
|
432 |
a.button:active, |
|
433 |
.form-actions #edit-cancel:active { |
|
405 | 434 |
border-color:#666 #666 #555; |
406 | 435 |
background:#666 url(images/buttons.png) -401px 50% no-repeat; |
407 | 436 |
color:#222; |
... | ... | |
456 | 485 |
min-height:35px; |
457 | 486 |
} |
458 | 487 |
|
488 |
select.form-select { |
|
489 |
height: 28px; |
|
490 |
} |
|
491 |
|
|
459 | 492 |
input.form-autocomplete, |
460 | 493 |
input.form-text, |
494 |
input.form-file, |
|
461 | 495 |
textarea.form-textarea, |
462 | 496 |
select.form-select { |
463 | 497 |
padding:3px; |
... | ... | |
471 | 505 |
|
472 | 506 |
input.form-autocomplete:hover, |
473 | 507 |
input.form-text:hover, |
508 |
input.form-file:hover, |
|
474 | 509 |
textarea.form-textarea:hover, |
475 | 510 |
select.form-select:hover, |
476 | 511 |
input.form-autocomplete:focus, |
477 | 512 |
input.form-text:focus, |
513 |
input.form-file:focus, |
|
478 | 514 |
textarea.form-textarea:focus, |
479 | 515 |
select.form-select:focus { |
480 | 516 |
color:#333; |
... | ... | |
489 | 525 |
width:100%; |
490 | 526 |
} |
491 | 527 |
|
528 |
input.form-file { |
|
529 |
padding: 1px; |
|
530 |
margin-right: 3px; |
|
531 |
} |
|
532 |
|
|
492 | 533 |
html.js input.form-autocomplete { background-position:100% 7px; } |
493 | 534 |
html.js input.throbbing { background-position:100% -2px; } |
494 | 535 |
|
... | ... | |
597 | 638 |
margin-top:-10px; |
598 | 639 |
border-top:none; |
599 | 640 |
} |
600 |
.text-format-wrapper .filter-wrapper{ |
|
641 |
.text-format-wrapper .filter-wrapper {
|
|
601 | 642 |
border-top:1px solid #CCC; |
602 | 643 |
margin-top: 0; |
603 |
} |
|
644 |
} |
|
645 |
.text-format-wrapper .filter-wrapper .form-type-select .filter-list { |
|
646 |
max-height: 22px; |
|
647 |
} |
|
648 |
.text-format-wrapper .filter-wrapper .form-type-select, |
|
649 |
.text-format-wrapper .filter-wrapper .filter-guidelines { |
|
650 |
margin: 0; |
|
651 |
overflow: auto; |
|
652 |
} |
|
604 | 653 |
|
605 | 654 |
.filter-wrapper .fieldset-content, |
606 | 655 |
.fieldset .fieldset.filter-wrapper .fieldset-content { |
607 | 656 |
background:#f8f8f8; |
608 | 657 |
border-top:0px; |
609 |
height:20px; |
|
610 | 658 |
padding:5px 9px 4px; |
611 | 659 |
} |
612 | 660 |
|
... | ... | |
624 | 672 |
.filter-wrapper .filter-help { |
625 | 673 |
float:right; |
626 | 674 |
font-size:11px; |
627 |
padding:0px; |
|
675 |
margin:0; |
|
676 |
padding:0; |
|
628 | 677 |
} |
629 | 678 |
|
630 | 679 |
.form-type-date-popup label { |
... | ... | |
675 | 724 |
|
676 | 725 |
.form-wrapper.form-actions input.form-submit, .form-wrapper.form-actions a.button { margin-right:5px; } |
677 | 726 |
|
678 |
.form-layout-default .column-main .form-actions { display:none; } |
|
727 |
.form-layout-default .column-main .column-wrapper > .form-actions { display:none; }
|
|
679 | 728 |
.form-layout-default .column-side .form-actions { margin:0px 0px 10px; } |
680 | 729 |
.form-layout-default .column-side .form-actions input.form-submit, |
681 | 730 |
.form-layout-deafult .column-side .form-actions a.button { |
... | ... | |
688 | 737 |
.box-title { |
689 | 738 |
font-weight:normal; |
690 | 739 |
font-size:10px; |
691 |
text-transform:uppercase; |
|
692 | 740 |
|
693 | 741 |
background:#eee; |
694 | 742 |
border:1px solid #ddd; |
... | ... | |
916 | 964 |
border: 1px solid #CCCCCC; |
917 | 965 |
margin: 1em 0; |
918 | 966 |
position: relative; |
967 |
padding-top: 0; |
|
919 | 968 |
} |
920 | 969 |
|
921 | 970 |
/** |
... | ... | |
985 | 1034 |
color:#666; |
986 | 1035 |
background:#fff; |
987 | 1036 |
} |
1037 |
|
|
1038 |
/** |
|
1039 |
* Display Suite ==================================================== |
|
1040 |
*/ |
|
1041 |
|
|
1042 |
.field-formatter-settings-edit-form.ds-ft-processed { |
|
1043 |
-webkit-box-sizing: border-box; |
|
1044 |
-moz-box-sizing: border-box; |
|
1045 |
-ms-box-sizing: border-box; |
|
1046 |
box-sizing: border-box; |
|
1047 |
padding: 0.5em 1em 0; |
|
1048 |
} |
|
1049 |
.field-formatter-settings-edit-form.ds-ft-processed .ft-group { |
|
1050 |
overflow: auto; |
|
1051 |
margin-bottom: 1em !important; |
|
1052 |
border-bottom: 1px solid #CCC; |
|
1053 |
} |
|
1054 |
.field-formatter-settings-edit-form.ds-ft-processed .ft-group.fi { |
|
1055 |
border-bottom: 0; |
|
1056 |
} |
|
1057 |
.field-formatter-settings-edit-form.ds-ft-processed .ft-group > .form-item { |
|
1058 |
margin: 0.25em 1em 0.5em 0 !important; |
|
1059 |
} |
|
1060 |
.field-formatter-settings-edit-form.ds-ft-processed .ft-group > .form-item .description { |
|
1061 |
max-width: 120px !important; |
|
1062 |
} |
|
1063 |
.field-formatter-settings-edit-form.ds-ft-processed .ft-group > .form-item.form-type-checkbox { |
|
1064 |
clear: both; |
|
1065 |
margin-right: 0 !important; |
|
1066 |
} |
|
1067 |
.field-formatter-settings-edit-form.ds-ft-processed .ft-group.ow .form-type-textfield, |
|
1068 |
.field-formatter-settings-edit-form.ds-ft-processed .ft-group.fis .form-type-textfield, |
|
1069 |
.field-formatter-settings-edit-form.ds-ft-processed .ft-group.fi .form-type-textfield { |
|
1070 |
clear: left; |
|
1071 |
} |
|
1072 |
.field-formatter-settings-edit-form.ds-ft-processed .ft-group.ow .form-type-textfield ~ .form-type-textfield, |
|
1073 |
.field-formatter-settings-edit-form.ds-ft-processed .ft-group.fis .form-type-textfield ~ .form-type-textfield, |
|
1074 |
.field-formatter-settings-edit-form.ds-ft-processed .ft-group.fi .form-type-textfield ~ .form-type-textfield { |
|
1075 |
clear: none; |
|
1076 |
} |
|
1077 |
|
|
1078 |
/** |
|
1079 |
* Search API ==================================================== |
|
1080 |
*/ |
|
1081 |
|
|
1082 |
#facetapi-facet-display-form .fieldset-content > .form-item { |
|
1083 |
-webkit-box-sizing: border-box; |
|
1084 |
-moz-box-sizing: border-box; |
|
1085 |
-ms-box-sizing: border-box; |
|
1086 |
box-sizing: border-box; |
|
1087 |
float: left; |
|
1088 |
width: 50% !important; |
|
1089 |
} |
|
1090 |
|
|
1091 |
#facetapi-facet-display-form .fieldset-content .facetapi-sort-table { |
|
1092 |
-webkit-box-sizing: border-box; |
|
1093 |
-moz-box-sizing: border-box; |
|
1094 |
-ms-box-sizing: border-box; |
|
1095 |
box-sizing: border-box; |
|
1096 |
margin-top: 0 !important; |
|
1097 |
position: static !important; |
|
1098 |
width: 50% !important; |
|
1099 |
z-index: 1 !important; |
|
1100 |
} |
|
1101 |
|
|
1102 |
/** |
|
1103 |
* Sidebar Scroll ==================================================== |
|
1104 |
*/ |
|
1105 |
|
|
1106 |
#content .column-side .column-wrapper { |
|
1107 |
padding-bottom: 5px; |
|
1108 |
} |
|
1109 |
#content .column-side .column-wrapper.fixed { |
|
1110 |
background-color: #FFF; |
|
1111 |
-webkit-box-sizing: border-box; |
|
1112 |
-moz-box-sizing: border-box; |
|
1113 |
-m-box-sizing: border-box; |
|
1114 |
box-sizing: border-box; |
|
1115 |
display: inline-block; |
|
1116 |
position: fixed; |
|
1117 |
top: 5px; |
|
1118 |
z-index: 12; |
|
1119 |
} |
|
1120 |
|
|
1121 |
.admin-menu #content .column-side .column-wrapper.fixed { |
|
1122 |
top: 40px; |
|
1123 |
} |
|
1124 |
|
|
1125 |
/** |
|
1126 |
* Watchdog/dblog ================================================= |
|
1127 |
*/ |
|
1128 |
|
|
1129 |
#admin-dblog td {border-color: #ccc;} |
|
1130 |
#admin-dblog .dblog-notice td, #admin-dblog .dblog-notice .active {background-color:#ECF8FC;} |
|
1131 |
#admin-dblog .dblog-info td, #admin-dblog .dblog-info .active {background-color: #DFF2BF;} |
|
1132 |
#admin-dblog .dblog-warning td, #admin-dblog .dblog-warning .active {background-color: #FEEFB3;} |
|
1133 |
#admin-dblog .dblog-error td, #admin-dblog .dblog-error .active {background-color: #FFBABA;} |
|
1134 |
|
|
1135 |
/** |
|
1136 |
* Adminimal Administration Menu =============================================== |
|
1137 |
*/ |
|
1138 |
body.adminimal-menu { margin-top: 29px!important; } |
|
1139 |
|
|
1140 |
/** |
|
1141 |
* Breakpoints =============================================== |
|
1142 |
*/ |
|
1143 |
|
|
1144 |
#breakpoints-admin-breakpoints #edit-buttons input, |
|
1145 |
#breakpoints-admin-breakpoints #edit-buttons a { |
|
1146 |
margin-bottom: 1em; |
|
1147 |
margin-right: 1em; |
|
1148 |
} |
|
1149 |
|
|
1150 |
.breakpoints-group-operations-link { |
|
1151 |
display: inline-block; |
|
1152 |
cursor:pointer; |
|
1153 |
padding:3px 10px; |
|
1154 |
color:#333; |
|
1155 |
font-size:13px; |
|
1156 |
text-align:center; |
|
1157 |
font-weight:normal; |
|
1158 |
border-width:1px; |
|
1159 |
border-style:solid; |
|
1160 |
border-color:#ddd #ddd #ccc; |
|
1161 |
background:#fff url(images/buttons.png) -1px 50% no-repeat; |
|
1162 |
-webkit-border-radius: 3px; |
|
1163 |
-moz-border-radius: 3px; |
|
1164 |
border-radius: 3px; |
|
1165 |
-webkit-box-shadow: #ddd 0 1px 1px; |
|
1166 |
-moz-box-shadow: #ddd 0 1px 1px; |
|
1167 |
box-shadow: #ddd 0 1px 1px; |
|
1168 |
} |
|
1169 |
|
|
1170 |
.breakpoints-group-operations-link:hover { |
|
1171 |
border-color:#ace; |
|
1172 |
-webkit-box-shadow:#ace 0 0 5px; |
|
1173 |
-moz-box-shadow:#ace 0 0 5px; |
|
1174 |
box-shadow:#ace 0 0 5px; |
|
1175 |
} |
|
1176 |
|
|
1177 |
.breakpoints-group-operations-link:active { |
|
1178 |
border-color:#666 #666 #555; |
|
1179 |
background:#666 url(images/buttons.png) -401px 50% no-repeat; |
|
1180 |
color:#222; |
|
1181 |
text-shadow:#999 0 1px 0; |
|
1182 |
} |
|
1183 |
|
|
1184 |
/** |
|
1185 |
* Media ==================================================== |
|
1186 |
*/ |
|
1187 |
|
|
1188 |
.page-media-browser {overflow:hidden;} |
|
1189 |
|
|
1190 |
.page-media-browser #block-system-main {border: none;} |
|
1191 |
|
|
1192 |
.media-widget .preview { |
|
1193 |
background-color: #CCC; |
|
1194 |
min-width: 50px; |
|
1195 |
min-height: 50px; |
|
1196 |
} |
|
1197 |
|
|
1198 |
.media-widget .preview .media-item {margin: 0;} |
|
1199 |
.media-widget .preview.launcher > .form-item {padding: 0; border: 0;} |
|
1200 |
.media-widget.form-wrapper {margin-bottom: 0;} |
|
1201 |
.media-widget > .form-item:last-child {display: none;} |
|
1202 |
.field-widget-media-generic > div > .form-item { |
|
1203 |
border: 0; |
|
1204 |
padding: 0; |
|
1205 |
} |
|
1206 |
|
|
1207 |
.field-widget-media-generic .field-multiple-table thead .field-label {padding-left: 5px;} |
|
1208 |
|
|
1209 |
.media-item .label-wrapper label {display: block;} |
|
1210 |
|
|
1211 |
#media-browser-page {overflow: hidden;} |
|
1212 |
#media-browser-page .form-actions {margin-bottom: 0;} |
|
1213 |
|
|
1214 |
#media-browser-tabset {border: none;} |
|
1215 |
#media-browser-tabset #branding {padding: 8px 10px 2px 10px; height: 20px;} |
|
1216 |
#media-browser-tabset #branding h1 {margin-top: -3px;} |
|
1217 |
|
|
1218 |
#media-tabs-wrapper .tabs.primary {margin-right: 10px;} |
|
1219 |
|
|
1220 |
.media-browser-tab.ui-tabs-panel {border: none; padding-bottom: 0;} |
|
1221 |
|
|
1222 |
.view-media-default #edit-filename-wrapper {max-width: 200px;} |
|
1223 |
|
|
1224 |
|
drupal7/sites/all/themes/rubik/ie.css | ||
---|---|---|
1 |
/** |
|
2 |
* Add outline to filefield attach and space the button |
|
3 |
*/ |
|
4 |
.form-type-managed-file input.form-file { |
|
5 |
border: thin solid #DDDDDD !important; |
|
6 |
} |
|
7 |
|
|
8 |
.form-type-managed-file input.submit { |
|
9 |
margin-left: 5px; |
|
10 |
} |
drupal7/sites/all/themes/rubik/jquery.ui.theme.css | ||
---|---|---|
1 |
/** |
|
2 |
* @file |
|
3 |
* Seven styles for jQuery UI. |
|
4 |
* Overrides /misc/ui/ui.theme.css. |
|
5 |
*/ |
|
6 |
|
|
7 |
/** |
|
8 |
* Component containers |
|
9 |
*/ |
|
10 |
.ui-widget { |
|
11 |
background: #fff; |
|
12 |
} |
|
13 |
.ui-widget-content { |
|
14 |
border: solid 1px #ccc; |
|
15 |
} |
|
16 |
|
|
17 |
/** |
|
18 |
* Interaction states |
|
19 |
*/ |
|
20 |
.ui-state-default, |
|
21 |
.ui-state-hover, |
|
22 |
.ui-state-focus, |
|
23 |
.ui-state-active { |
|
24 |
outline: 0; |
|
25 |
} |
|
26 |
.ui-state-active { |
|
27 |
font-weight: bold; |
|
28 |
} |
|
29 |
|
|
30 |
/** |
|
31 |
* Interaction cues |
|
32 |
*/ |
|
33 |
.ui-state-highlight, |
|
34 |
.ui-widget-content .ui-state-highlight { |
|
35 |
color: #840; |
|
36 |
background: #fe6; |
|
37 |
border: solid 1px #ed5; |
|
38 |
} |
|
39 |
.ui-state-error, |
|
40 |
.ui-widget-content .ui-state-error { |
|
41 |
color: #fff; |
|
42 |
background: #e63; |
|
43 |
border-color: #d52; |
|
44 |
} |
|
45 |
.ui-state-disabled, |
|
46 |
.ui-widget-content .ui-state-disabled { |
|
47 |
opacity: .35; |
|
48 |
filter: Alpha(Opacity=35); |
|
49 |
} |
|
50 |
.ui-priority-secondary, |
|
51 |
.ui-widget-content .ui-priority-secondary { |
|
52 |
opacity: .7; |
|
53 |
filter: Alpha(Opacity=70); |
|
54 |
} |
|
55 |
|
|
56 |
/** |
|
57 |
* Icons |
|
58 |
*/ |
|
59 |
/* states and images */ |
|
60 |
.ui-icon { |
|
61 |
display: block; |
|
62 |
text-indent: -99999px; |
|
63 |
width: 16px; |
|
64 |
height: 16px; |
|
65 |
overflow: hidden; |
|
66 |
background-repeat: no-repeat; |
|
67 |
background-image: url(images/ui-icons-222222-256x240.png); |
|
68 |
} |
|
69 |
.ui-widget-content .ui-icon, |
|
70 |
.ui-widget-header .ui-icon { |
|
71 |
background-image: url(images/ui-icons-222222-256x240.png); |
|
72 |
} |
|
73 |
.ui-state-default .ui-icon { |
|
74 |
background-image: url(images/ui-icons-888888-256x240.png); |
|
75 |
} |
|
76 |
.ui-state-hover .ui-icon, |
|
77 |
.ui-state-focus .ui-icon, |
|
78 |
.ui-state-active .ui-icon { |
|
79 |
background-image: url(images/ui-icons-454545-256x240.png); |
|
80 |
} |
|
81 |
.ui-state-highlight .ui-icon { |
|
82 |
background-image: url(images/ui-icons-800000-256x240.png); |
|
83 |
} |
|
84 |
.ui-state-error .ui-icon, |
|
85 |
.ui-state-error-text .ui-icon { |
|
86 |
background-image: url(images/ui-icons-ffffff-256x240.png); |
|
87 |
} |
|
88 |
.ui-widget p .ui-icon { |
|
89 |
margin: 2px 3px 0 0; |
|
90 |
} |
|
91 |
|
|
92 |
/* positioning */ |
|
93 |
.ui-icon-carat-1-ne { background-position: -16px 0; } |
|
94 |
.ui-icon-carat-1-e { background-position: -32px 0; } |
|
95 |
.ui-icon-carat-1-se { background-position: -48px 0; } |
|
96 |
.ui-icon-carat-1-s { background-position: -64px 0; } |
|
97 |
.ui-icon-carat-1-sw { background-position: -80px 0; } |
|
98 |
.ui-icon-carat-1-w { background-position: -96px 0; } |
|
99 |
.ui-icon-carat-1-nw { background-position: -112px 0; } |
|
100 |
.ui-icon-carat-2-n-s { background-position: -128px 0; } |
|
101 |
.ui-icon-carat-2-e-w { background-position: -144px 0; } |
|
102 |
.ui-icon-triangle-1-n { background-position: 0 -16px; } |
|
103 |
.ui-icon-triangle-1-ne { background-position: -16px -16px; } |
|
104 |
.ui-icon-triangle-1-e { background-position: -32px -16px; } |
|
105 |
.ui-icon-triangle-1-se { background-position: -48px -16px; } |
|
106 |
.ui-icon-triangle-1-s { background-position: -64px -16px; } |
|
107 |
.ui-icon-triangle-1-sw { background-position: -80px -16px; } |
|
108 |
.ui-icon-triangle-1-w { background-position: -96px -16px; } |
|
109 |
.ui-icon-triangle-1-nw { background-position: -112px -16px; } |
|
110 |
.ui-icon-triangle-2-n-s { background-position: -128px -16px; } |
|
111 |
.ui-icon-triangle-2-e-w { background-position: -144px -16px; } |
|
112 |
.ui-icon-arrow-1-n { background-position: 0 -32px; } |
|
113 |
.ui-icon-arrow-1-ne { background-position: -16px -32px; } |
|
114 |
.ui-icon-arrow-1-e { background-position: -32px -32px; } |
|
115 |
.ui-icon-arrow-1-se { background-position: -48px -32px; } |
|
116 |
.ui-icon-arrow-1-s { background-position: -64px -32px; } |
|
117 |
.ui-icon-arrow-1-sw { background-position: -80px -32px; } |
|
118 |
.ui-icon-arrow-1-w { background-position: -96px -32px; } |
|
119 |
.ui-icon-arrow-1-nw { background-position: -112px -32px; } |
|
120 |
.ui-icon-arrow-2-n-s { background-position: -128px -32px; } |
|
121 |
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; } |
|
122 |
.ui-icon-arrow-2-e-w { background-position: -160px -32px; } |
|
123 |
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; } |
|
124 |
.ui-icon-arrowstop-1-n { background-position: -192px -32px; } |
|
125 |
.ui-icon-arrowstop-1-e { background-position: -208px -32px; } |
|
126 |
.ui-icon-arrowstop-1-s { background-position: -224px -32px; } |
|
127 |
.ui-icon-arrowstop-1-w { background-position: -240px -32px; } |
|
128 |
.ui-icon-arrowthick-1-n { background-position: 0 -48px; } |
|
129 |
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; } |
|
130 |
.ui-icon-arrowthick-1-e { background-position: -32px -48px; } |
|
131 |
.ui-icon-arrowthick-1-se { background-position: -48px -48px; } |
|
132 |
.ui-icon-arrowthick-1-s { background-position: -64px -48px; } |
|
133 |
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; } |
|
134 |
.ui-icon-arrowthick-1-w { background-position: -96px -48px; } |
|
135 |
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; } |
|
136 |
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; } |
|
137 |
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; } |
|
138 |
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; } |
|
139 |
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; } |
|
140 |
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; } |
|
141 |
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; } |
|
142 |
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; } |
|
143 |
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; } |
|
144 |
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; } |
|
145 |
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; } |
|
146 |
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; } |
|
147 |
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; } |
|
148 |
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; } |
|
149 |
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; } |
|
150 |
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; } |
|
151 |
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; } |
|
152 |
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; } |
|
153 |
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; } |
|
154 |
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; } |
|
155 |
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; } |
|
156 |
.ui-icon-arrow-4 { background-position: 0 -80px; } |
|
157 |
.ui-icon-arrow-4-diag { background-position: -16px -80px; } |
|
158 |
.ui-icon-extlink { background-position: -32px -80px; } |
|
159 |
.ui-icon-newwin { background-position: -48px -80px; } |
|
160 |
.ui-icon-refresh { background-position: -64px -80px; } |
|
161 |
.ui-icon-shuffle { background-position: -80px -80px; } |
|
162 |
.ui-icon-transfer-e-w { background-position: -96px -80px; } |
|
163 |
.ui-icon-transferthick-e-w { background-position: -112px -80px; } |
|
164 |
.ui-icon-folder-collapsed { background-position: 0 -96px; } |
|
165 |
.ui-icon-folder-open { background-position: -16px -96px; } |
|
166 |
.ui-icon-document { background-position: -32px -96px; } |
|
167 |
.ui-icon-document-b { background-position: -48px -96px; } |
|
168 |
.ui-icon-note { background-position: -64px -96px; } |
|
169 |
.ui-icon-mail-closed { background-position: -80px -96px; } |
|
170 |
.ui-icon-mail-open { background-position: -96px -96px; } |
|
171 |
.ui-icon-suitcase { background-position: -112px -96px; } |
|
172 |
.ui-icon-comment { background-position: -128px -96px; } |
|
173 |
.ui-icon-person { background-position: -144px -96px; } |
|
174 |
.ui-icon-print { background-position: -160px -96px; } |
|
175 |
.ui-icon-trash { background-position: -176px -96px; } |
|
176 |
.ui-icon-locked { background-position: -192px -96px; } |
|
177 |
.ui-icon-unlocked { background-position: -208px -96px; } |
|
178 |
.ui-icon-bookmark { background-position: -224px -96px; } |
|
179 |
.ui-icon-tag { background-position: -240px -96px; } |
|
180 |
.ui-icon-home { background-position: 0 -112px; } |
|
181 |
.ui-icon-flag { background-position: -16px -112px; } |
|
182 |
.ui-icon-calendar { background-position: -32px -112px; } |
|
183 |
.ui-icon-cart { background-position: -48px -112px; } |
|
184 |
.ui-icon-pencil { background-position: -64px -112px; } |
|
185 |
.ui-icon-clock { background-position: -80px -112px; } |
|
186 |
.ui-icon-disk { background-position: -96px -112px; } |
|
187 |
.ui-icon-calculator { background-position: -112px -112px; } |
|
188 |
.ui-icon-zoomin { background-position: -128px -112px; } |
|
189 |
.ui-icon-zoomout { background-position: -144px -112px; } |
|
190 |
.ui-icon-search { background-position: -160px -112px; } |
|
191 |
.ui-icon-wrench { background-position: -176px -112px; } |
|
192 |
.ui-icon-gear { background-position: -192px -112px; } |
|
193 |
.ui-icon-heart { background-position: -208px -112px; } |
|
194 |
.ui-icon-star { background-position: -224px -112px; } |
|
195 |
.ui-icon-link { background-position: -240px -112px; } |
|
196 |
.ui-icon-cancel { background-position: 0 -128px; } |
|
197 |
.ui-icon-plus { background-position: -16px -128px; } |
|
198 |
.ui-icon-plusthick { background-position: -32px -128px; } |
|
199 |
.ui-icon-minus { background-position: -48px -128px; } |
|
200 |
.ui-icon-minusthick { background-position: -64px -128px; } |
|
201 |
.ui-icon-close { background-position: -80px -128px; } |
|
202 |
.ui-icon-closethick { background-position: -96px -128px; } |
|
203 |
.ui-icon-key { background-position: -112px -128px; } |
|
204 |
.ui-icon-lightbulb { background-position: -128px -128px; } |
|
205 |
.ui-icon-scissors { background-position: -144px -128px; } |
|
206 |
.ui-icon-clipboard { background-position: -160px -128px; } |
|
207 |
.ui-icon-copy { background-position: -176px -128px; } |
|
208 |
.ui-icon-contact { background-position: -192px -128px; } |
|
209 |
.ui-icon-image { background-position: -208px -128px; } |
|
210 |
.ui-icon-video { background-position: -224px -128px; } |
|
211 |
.ui-icon-script { background-position: -240px -128px; } |
|
212 |
.ui-icon-alert { background-position: 0 -144px; } |
|
213 |
.ui-icon-info { background-position: -16px -144px; } |
|
214 |
.ui-icon-notice { background-position: -32px -144px; } |
|
215 |
.ui-icon-help { background-position: -48px -144px; } |
|
216 |
.ui-icon-check { background-position: -64px -144px; } |
|
217 |
.ui-icon-bullet { background-position: -80px -144px; } |
|
218 |
.ui-icon-radio-off { background-position: -96px -144px; } |
|
219 |
.ui-icon-radio-on { background-position: -112px -144px; } |
|
220 |
.ui-icon-pin-w { background-position: -128px -144px; } |
|
221 |
.ui-icon-pin-s { background-position: -144px -144px; } |
|
222 |
.ui-icon-play { background-position: 0 -160px; } |
|
223 |
.ui-icon-pause { background-position: -16px -160px; } |
|
224 |
.ui-icon-seek-next { background-position: -32px -160px; } |
|
225 |
.ui-icon-seek-prev { background-position: -48px -160px; } |
|
226 |
.ui-icon-seek-end { background-position: -64px -160px; } |
|
227 |
.ui-icon-seek-first { background-position: -80px -160px; } |
|
228 |
.ui-icon-stop { background-position: -96px -160px; } |
|
229 |
.ui-icon-eject { background-position: -112px -160px; } |
|
230 |
.ui-icon-volume-off { background-position: -128px -160px; } |
|
231 |
.ui-icon-volume-on { background-position: -144px -160px; } |
|
232 |
.ui-icon-power { background-position: 0 -176px; } |
|
233 |
.ui-icon-signal-diag { background-position: -16px -176px; } |
|
234 |
.ui-icon-signal { background-position: -32px -176px; } |
|
235 |
.ui-icon-battery-0 { background-position: -48px -176px; } |
|
236 |
.ui-icon-battery-1 { background-position: -64px -176px; } |
|
237 |
.ui-icon-battery-2 { background-position: -80px -176px; } |
|
238 |
.ui-icon-battery-3 { background-position: -96px -176px; } |
|
239 |
.ui-icon-circle-plus { background-position: 0 -192px; } |
|
240 |
.ui-icon-circle-minus { background-position: -16px -192px; } |
|
241 |
.ui-icon-circle-close { background-position: -32px -192px; } |
|
242 |
.ui-icon-circle-triangle-e { background-position: -48px -192px; } |
|
243 |
.ui-icon-circle-triangle-s { background-position: -64px -192px; } |
|
244 |
.ui-icon-circle-triangle-w { background-position: -80px -192px; } |
|
245 |
.ui-icon-circle-triangle-n { background-position: -96px -192px; } |
|
246 |
.ui-icon-circle-arrow-e { background-position: -112px -192px; } |
|
247 |
.ui-icon-circle-arrow-s { background-position: -128px -192px; } |
|
248 |
.ui-icon-circle-arrow-w { background-position: -144px -192px; } |
|
249 |
.ui-icon-circle-arrow-n { background-position: -160px -192px; } |
|
250 |
.ui-icon-circle-zoomin { background-position: -176px -192px; } |
|
251 |
.ui-icon-circle-zoomout { background-position: -192px -192px; } |
|
252 |
.ui-icon-circle-check { background-position: -208px -192px; } |
|
253 |
.ui-icon-circlesmall-plus { background-position: 0 -208px; } |
|
254 |
.ui-icon-circlesmall-minus { background-position: -16px -208px; } |
|
255 |
.ui-icon-circlesmall-close { background-position: -32px -208px; } |
|
256 |
.ui-icon-squaresmall-plus { background-position: -48px -208px; } |
|
257 |
.ui-icon-squaresmall-minus { background-position: -64px -208px; } |
|
258 |
.ui-icon-squaresmall-close { background-position: -80px -208px; } |
|
259 |
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; } |
|
260 |
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; } |
|
261 |
.ui-icon-grip-solid-vertical { background-position: -32px -224px; } |
|
262 |
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; } |
|
263 |
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; } |
|
264 |
.ui-icon-grip-diagonal-se { background-position: -80px -224px; } |
|
265 |
.ui-icon-carat-1-n { background-position: 0 0; } |
|
266 |
|
|
267 |
/** |
|
268 |
* Accordion |
|
269 |
*/ |
|
270 |
.ui-accordion { |
|
271 |
border: none; |
|
272 |
} |
|
273 |
.ui-accordion .ui-accordion-header { |
|
274 |
border: solid 1px #ccc; |
|
275 |
text-transform: uppercase; |
|
276 |
} |
|
277 |
.ui-accordion h3.ui-accordion-header, |
|
278 |
#block-system-main h3.ui-accordion-header { |
|
279 |
font-size: 1.1em; |
|
280 |
margin: 10px 0; |
|
281 |
} |
|
282 |
#block-system-main .ui-accordion h3.ui-state-active, |
|
283 |
.ui-accordion h3.ui-state-active { |
|
284 |
margin-bottom: 0; |
|
285 |
} |
|
286 |
.ui-accordion .ui-accordion-header a { |
|
287 |
display: block; |
|
288 |
} |
|
289 |
.ui-accordion .ui-accordion-content { |
|
290 |
padding: 1em 2.2em; |
|
291 |
border: solid 1px #ccc; |
|
292 |
border-top: 0; |
|
293 |
} |
|
294 |
|
|
295 |
/** |
|
296 |
* Tabs |
|
297 |
*/ |
|
298 |
.ui-tabs { |
|
299 |
padding: 0; |
|
300 |
} |
|
301 |
.ui-tabs .ui-tabs-nav { |
|
302 |
padding: 5px 10px 4px; |
|
303 |
margin: 0; |
|
304 |
line-height: 20px; |
|
305 |
border-bottom: solid 1px #ccc; |
|
306 |
-moz-border-radius-bottomleft: 0; |
|
307 |
-webkit-border-bottom-left-radius: 0; |
|
308 |
border-bottom-left-radius: 0; |
|
309 |
-moz-border-radius-bottomright: 0; |
|
310 |
-webkit-border-bottom-right-radius: 0; |
|
311 |
border-bottom-right-radius: 0; |
|
312 |
} |
|
313 |
.ui-tabs .ui-tabs-nav li { |
|
314 |
padding: 0 1em 0 10px; |
|
315 |
margin: 0; |
|
316 |
list-style: none; |
|
317 |
} |
|
318 |
.ui-tabs .ui-tabs-nav li a { |
|
319 |
float: none; |
|
320 |
padding: 0 10px; |
|
321 |
-moz-border-radius: 10px; |
|
322 |
-webkit-border-radius: 10px; |
|
323 |
border-radius: 10px; |
|
324 |
} |
|
325 |
.ui-tabs .ui-tabs-nav li.ui-tabs-selected a { |
|
326 |
color: #fff; |
|
327 |
background: #666; |
|
328 |
font-weight: normal; |
|
329 |
} |
|
330 |
|
|
331 |
/** |
|
332 |
* Overlays |
|
333 |
*/ |
|
334 |
.ui-widget-overlay { |
|
335 |
background: #000; |
|
336 |
opacity: .70; |
|
337 |
filter: Alpha(Opacity=70); |
|
338 |
} |
|
339 |
|
|
340 |
/** |
|
341 |
* Dialogs |
|
342 |
*/ |
|
343 |
.ui-dialog { |
|
344 |
background: white; |
|
345 |
padding: 0 0 10px 0; |
|
346 |
border-radius: 6px 6px 5px 5px; |
|
347 |
box-shadow: #111 0px 0px 10px; |
|
348 |
-moz-border-radius: 6px 6px 5px 5px; |
|
349 |
-moz-box-shadow: #111 0px 0px 10px; |
|
350 |
-webkit-border-radius: 6px 6px 5px 5px; |
|
351 |
-webkit-box-shadow: #111 0px 0px 10px; |
|
352 |
border: 0; |
|
353 |
} |
|
354 |
.ui-dialog .ui-dialog-titlebar { |
|
355 |
font-weight: bold; |
|
356 |
background: #e1e2dc; |
|
357 |
} |
|
358 |
.ui-dialog .ui-dialog-buttonpane { |
|
359 |
border-width: 0; |
|
360 |
} |
|
361 |
.ui-dialog .ui-dialog-buttonpane button { |
|
362 |
cursor: pointer; |
|
363 |
padding: 4px 17px; |
|
364 |
color: #5a5a5a; |
|
365 |
text-align: center; |
|
366 |
font-family: "Lucida Grande", Verdana, sans-serif; |
|
367 |
font-weight: normal; |
|
368 |
font-size: 1em; |
|
369 |
border: 1px solid #e4e4e4; |
|
370 |
border-bottom: 1px solid #b4b4b4; |
|
371 |
border-left-color: #D2D2D2; |
|
372 |
border-right-color: #D2D2D2; |
|
373 |
background: url(images/buttons.png) 0 0 repeat-x; |
|
374 |
-moz-border-radius: 20px; |
|
375 |
-webkit-border-radius: 20px; |
|
376 |
border-radius: 20px; |
|
377 |
} |
|
378 |
.ui-dialog .ui-dialog-buttonpane button:active { |
|
379 |
background: #666; |
|
380 |
color: #fff; |
|
381 |
border-color: #555; |
|
382 |
text-shadow: #222 0px -1px 0px; |
|
383 |
} |
|
384 |
.overlay { |
|
385 |
padding-right: 26px; |
|
386 |
} |
|
387 |
.overlay .ui-dialog-titlebar { |
|
388 |
background: transparent; |
|
389 |
} |
|
390 |
|
|
391 |
/** |
|
392 |
* Slider |
|
393 |
*/ |
|
394 |
.ui-slider { |
|
395 |
border: solid 1px #ccc; |
|
396 |
} |
|
397 |
.ui-slider .ui-slider-range { |
|
398 |
background: #e4e4e4; |
|
399 |
} |
|
400 |
.ui-slider .ui-slider-handle { |
|
401 |
border: 1px solid #e4e4e4; |
|
402 |
border-bottom: 1px solid #b4b4b4; |
|
403 |
border-left-color: #D2D2D2; |
|
404 |
border-right-color: #D2D2D2; |
|
405 |
background: url(images/buttons.png) 0 0 repeat-x; |
|
406 |
-moz-border-radius: 4px; |
|
407 |
-webkit-border-radius: 4px; |
|
408 |
border-radius: 4px; |
|
409 |
} |
|
410 |
.ui-slider a.ui-state-active, |
|
411 |
.ui-slider .ui-slider-handle:active { |
|
412 |
background: #666; |
|
413 |
color: #fff; |
|
414 |
border: solid 1px #555; |
|
415 |
} |
|
416 |
|
|
417 |
/** |
|
418 |
* Progress Bar |
|
419 |
*/ |
|
420 |
.ui-progressbar { |
|
421 |
background: #e4e4e4; |
|
422 |
height: 1.4em; |
|
423 |
} |
|
424 |
.ui-progressbar .ui-progressbar-value { |
|
425 |
background: #0072b9 url(../../misc/progress.gif); |
|
426 |
height: 1.5em; |
|
427 |
} |
|
428 |
|
|
429 |
/** |
|
430 |
* Date Picker |
|
431 |
*/ |
|
432 |
.ui-datepicker { |
|
433 |
border: none; |
|
434 |
} |
|
435 |
.ui-datepicker td span, .ui-datepicker td a { |
|
436 |
text-align: center; |
|
437 |
} |
|
438 |
.ui-datepicker .ui-state-highlight { |
|
439 |
background: #E4E4E4; |
|
440 |
border-color: #D2D2D2; |
|
441 |
color: #000; |
|
442 |
} |
|
443 |
.ui-datepicker .ui-state-active { |
|
444 |
border: 1px solid #D2D2D2; |
|
445 |
color: #000; |
|
446 |
} |
|
447 |
.page-content .form-type-date-popup .description { |
|
448 |
bottom: 100%; |
|
449 |
right: -50%; |
|
450 |
margin-bottom: 0; |
|
451 |
} |
drupal7/sites/all/themes/rubik/js/rubik.js | ||
---|---|---|
3 | 3 |
*/ |
4 | 4 |
(function($) { |
5 | 5 |
Drupal.behaviors.rubik = {}; |
6 |
Drupal.behaviors.rubik.attach = function(context) { |
|
6 |
Drupal.behaviors.rubik.attach = function(context, settings) {
|
|
7 | 7 |
// If there are both main column and side column buttons, only show the main |
8 | 8 |
// column buttons if the user scrolls past the ones to the side. |
9 |
$('div.form:has(div.column-main div.form-actions):not(.rubik-processed)').each(function() { |
|
9 |
$('div.form:has(div.column-main div.form-actions):not(.rubik-processed)', context).each(function() {
|
|
10 | 10 |
var form = $(this); |
11 | 11 |
var offset = $('div.column-side div.form-actions', form).height() + $('div.column-side div.form-actions', form).offset().top; |
12 | 12 |
$(window).scroll(function () { |
13 | 13 |
if ($(this).scrollTop() > offset) { |
14 |
$('div.column-main div.form-actions', form).show();
|
|
14 |
$('div.column-main .column-wrapper > div.form-actions#edit-actions', form).show();
|
|
15 | 15 |
} |
16 | 16 |
else { |
17 |
$('div.column-main div.form-actions', form).hide();
|
|
17 |
$('div.column-main .column-wrapper > div.form-actions#edit-actions', form).hide();
|
|
18 | 18 |
} |
19 | 19 |
}); |
20 | 20 |
form.addClass('rubik-processed'); |
... | ... | |
25 | 25 |
// Target exists, add click handler. |
26 | 26 |
if ($('#' + id).size() > 0) { |
27 | 27 |
$(this).click(function() { |
28 |
toggleable = $('#' + id); |
|
28 |
var toggleable = $('#' + id);
|
|
29 | 29 |
toggleable.toggle(); |
30 | 30 |
$(this).toggleClass('toggler-active'); |
31 | 31 |
return false; |
... | ... | |
39 | 39 |
// Mark as processed. |
40 | 40 |
$(this).addClass('rubik-processed'); |
41 | 41 |
}); |
42 |
}; |
|
43 |
$(document).ready(function() { |
|
44 |
// If there's no active secondary tab, make the first one show. |
|
42 |
|
|
43 |
// If there's no active secondary tab, make the first one show. |
|
45 | 44 |
var activeli = $('.primary-tabs li.active .secondary-tabs li.active'); |
46 |
if (activeli.length == 0) { |
|
45 |
if (activeli.length === 0) {
|
|
47 | 46 |
$('.primary-tabs li.active .secondary-tabs li:first-child a').css('display', 'block'); |
48 | 47 |
} |
49 |
}); |
|
48 |
|
|
49 |
$('.secondary-tabs li a, .secondary-tabs', context).bind('focus blur', function(){ |
|
50 |
$(this).parents('.secondary-tabs').toggleClass('focused'); |
|
51 |
}); |
|
52 |
|
|
53 |
// Sticky sidebar |
|
54 |
// Disable this functionality if the user chooses. |
|
55 |
var disableSticky = settings.rubik.disable_sticky; |
|
56 |
if ($('#content .column-side .column-wrapper').length !== 0 && !disableSticky) { |
|
57 |
var rubikColumn = $('#content .column-side .column-wrapper', context); |
|
58 |
if(rubikColumn && rubikColumn.offset()){ |
|
59 |
var rubikStickySidebar = rubikColumn.offset().top; |
|
60 |
$(window).scroll(function(){ |
|
61 |
if( $(window).scrollTop() > rubikStickySidebar ) { |
|
62 |
rubikColumn.each(function() { |
|
63 |
$(this).addClass("fixed"); |
|
64 |
$(this).width($(this).parent().width()); |
|
65 |
}); |
|
66 |
} else { |
|
67 |
rubikColumn.each(function() { |
|
68 |
$(this).removeClass("fixed"); |
|
69 |
$(this).width($(this).parent().width()); |
|
70 |
}); |
|
71 |
} |
|
72 |
}); |
|
73 |
} |
|
74 |
|
|
75 |
// Move fields to sidebar. |
|
76 |
$('.rubik_sidebar_field', context).once('rubik', function() { |
|
77 |
$('.column-side .column-wrapper').append($(this)); |
|
78 |
}); |
|
79 |
} |
|
80 |
|
|
81 |
}; |
|
50 | 82 |
})(jQuery); |
drupal7/sites/all/themes/rubik/page.tpl.php | ||
---|---|---|
1 |
<?php if (theme_get_setting('rubik_show_branding')): ?> |
|
1 | 2 |
<div id='branding'><div class='limiter clearfix'> |
2 | 3 |
<div class='breadcrumb clearfix'><?php print $breadcrumb ?></div> |
3 | 4 |
<?php if (!$overlay && isset($secondary_menu)) : ?> |
4 | 5 |
<?php print theme('links', array('links' => $secondary_menu, 'attributes' => array('class' => 'links secondary-menu'))) ?> |
5 | 6 |
<?php endif; ?> |
6 | 7 |
</div></div> |
8 |
<?php endif; ?> |
|
7 | 9 |
|
8 | 10 |
<div id='page-title'><div class='limiter clearfix'> |
9 | 11 |
<div class='tabs clearfix'> |
drupal7/sites/all/themes/rubik/rubik.info | ||
---|---|---|
13 | 13 |
stylesheets[screen][] = core.css |
14 | 14 |
stylesheets[screen][] = icons.css |
15 | 15 |
stylesheets[screen][] = style.css |
16 |
stylesheets[screen][] = jquery.ui.theme.css |
|
16 | 17 |
stylesheets[print][] = print.css |
17 | 18 |
|
18 | 19 |
; Support shortcut module links |
19 | 20 |
settings[shortcut_module_link] = 1 |
20 | 21 |
settings[rubik_inline_field_descriptions] = 0 |
21 | 22 |
|
23 |
; By default sidebar in forms is enabled |
|
24 |
settings[rubik_disable_sidebar_in_form] = 0 |
|
22 | 25 |
|
23 |
; Information added by packaging script on 2013-11-23 |
|
24 |
version = "7.x-4.0-rc1" |
|
26 |
; By default field placement in the sidebar is disabled |
|
27 |
settings[rubik_sidebar_field_ui] = 0 |
|
28 |
|
|
29 |
; Enable branding line at the top of the page by default |
|
30 |
settings[rubik_show_branding] = 1 |
|
31 |
|
|
32 |
; Out of all default Drupal theme features, Rubik uses only secondary menu which |
|
33 |
; is displayed at the top of the page, in #branding section. |
|
34 |
features[] = secondary_menu |
|
35 |
|
|
36 |
; Information added by Drupal.org packaging script on 2015-01-22 |
|
37 |
version = "7.x-4.2" |
|
25 | 38 |
core = "7.x" |
26 | 39 |
project = "rubik" |
27 |
datestamp = "1385199811"
|
|
40 |
datestamp = "1421901484"
|
|
28 | 41 |
|
drupal7/sites/all/themes/rubik/style.css | ||
---|---|---|
55 | 55 |
.compact-link a, |
56 | 56 |
input.teaser-button, |
57 | 57 |
input.form-submit, |
58 |
a.button { |
|
58 |
a.button, |
|
59 |
.form-actions #edit-cancel { |
|
59 | 60 |
-moz-border-radius:3px; |
60 | 61 |
-webkit-border-radius:3px; |
61 | 62 |
} |
... | ... | |
65 | 66 |
*/ |
66 | 67 |
input.teaser-button, |
67 | 68 |
input.form-submit, |
68 |
a.button { |
|
69 |
a.button, |
|
70 |
.form-actions #edit-cancel { |
|
69 | 71 |
box-shadow:#ddd 0px 1px 1px; |
70 | 72 |
-moz-box-shadow:#ddd 0px 1px 1px; |
71 | 73 |
-webkit-box-shadow:#ddd 0px 1px 1px; |
... | ... | |
103 | 105 |
#branding .breadcrumb { |
104 | 106 |
padding:0px; |
105 | 107 |
float:left; |
106 |
text-transform:uppercase; |
|
107 | 108 |
font-weight:normal; |
108 | 109 |
} |
109 | 110 |
|
... | ... | |
185 | 186 |
* Tabs =============================================================== |
186 | 187 |
*/ |
187 | 188 |
.tabs { |
188 |
position:absolute;
|
|
189 |
float:right;
|
|
189 | 190 |
right:0px; |
190 | 191 |
} |
191 | 192 |
|
... | ... | |
257 | 258 |
|
258 | 259 |
/* Secondary tabs, nested */ |
259 | 260 |
.secondary-tabs { |
260 |
min-width:100px;
|
|
261 |
min-width:150px;
|
|
261 | 262 |
float:left; |
262 | 263 |
position:relative; |
263 | 264 |
margin:5px 5px 5px 0px; |
... | ... | |
308 | 309 |
-webkit-border-radius:3px 3px 0px 0px; |
309 | 310 |
} |
310 | 311 |
|
312 |
ul.secondary.tabs { |
|
313 |
position: static; |
|
314 |
float: right; |
|
315 |
font-size: 0.923em; |
|
316 |
padding: 0 3px 5px; |
|
317 |
line-height: 1.385em; |
|
318 |
overflow: hidden; |
|
319 |
background-color: #fff; |
|
320 |
} |
|
321 |
|
|
322 |
ul.secondary.tabs li { |
|
323 |
margin: 0 5px; |
|
324 |
float: none; |
|
325 |
display: inline; |
|
326 |
} |
|
311 | 327 |
/** |
312 | 328 |
* Content ============================================================ |
313 | 329 |
*/ |
... | ... | |
322 | 338 |
margin:0px 0px 10px; |
323 | 339 |
} |
324 | 340 |
|
341 |
/* Make large images display within the parent container. This will prevent |
|
342 |
messing up the layout if a wide image needs to be displayed in content. */ |
|
343 |
#page img { max-width: 100%; } |
|
344 |
|
|
325 | 345 |
#help-text .column-main .column-wrapper, |
326 | 346 |
.help-page .column-main .column-wrapper, |
327 | 347 |
div.comment .column-main .column-wrapper, |
... | ... | |
391 | 411 |
font-weight:normal; |
392 | 412 |
font-size:16px; |
393 | 413 |
} |
414 |
|
|
415 |
/** |
|
416 |
* Fixes for other modules =============================================== |
|
417 |
*/ |
|
418 |
/* Fix rules action links. */ |
|
419 |
.rules-elements-table ul.rules-operations a { |
|
420 |
text-shadow: none; |
|
421 |
color: #666; |
|
422 |
} |
|
423 |
/* Fix the position of Rules table drag toggle. It uses "position: absolute", so |
|
424 |
it is necessary to set "position: relative" to the parent, so that the button |
|
425 |
stays in the same frame. */ |
|
426 |
#rules-form-wrapper { |
|
427 |
position: relative; |
|
428 |
} |
|
429 |
/* Fix the padding of Rules table drag toggle. Out of the box it is optimized |
|
430 |
for display in table headers, while in Rules it is displayed outside of the |
|
431 |
tables, in the same line as table heading. */ |
|
432 |
#rules-form-wrapper .rules-elements-table .tabledrag-toggle-weight-wrapper { |
|
433 |
padding-top: 0; |
|
434 |
padding-right: 0; |
|
435 |
} |
|
436 |
/* Views exposed filters forms. */ |
|
437 |
div.views-exposed-form { |
|
438 |
margin-bottom: 20px; |
|
439 |
} |
|
440 |
div.views-exposed-form div.form-item { |
|
441 |
border: 0; |
|
442 |
padding: 0; |
|
443 |
} |
|
444 |
div.views-exposed-form div.views-submit-button { |
|
445 |
margin-right: 1em; |
|
446 |
} |
|
447 |
div.views-exposed-form input.form-text, |
|
448 |
div.views-exposed-form select.form-select, |
|
449 |
div.views-exposed-form input.form-autocomplete { |
|
450 |
height: 28px; |
|
451 |
} |
|
452 |
/* Module filter "clear" link. */ |
|
453 |
.module-filter-clear a { |
|
454 |
margin: 3px 0 0 -35px; |
|
455 |
} |
|
456 |
|
|
457 |
/* Fix Workbench Moderation links. */ |
|
458 |
.view-workbench-moderation tbody .views-field-moderation-actions li { |
|
459 |
float: none; |
|
460 |
margin-bottom: 5px; |
|
461 |
margin-right: 3px; |
|
462 |
overflow: auto; |
|
463 |
} |
|
464 |
.view-workbench-moderation tbody .views-field-moderation-actions li a { |
|
465 |
background-color: #7bc; |
|
466 |
-webkit-border-radius: 5px; |
|
467 |
-moz-border-radius: 5px; |
|
468 |
border-radius: 5px; |
|
469 |
color: #fff; |
|
470 |
display: block; |
|
471 |
padding: 0 7px; |
|
472 |
text-shadow: #38a 0px 1px 0px; |
|
473 |
} |
|
474 |
.view-workbench-moderation tbody .views-field-moderation-actions li a:hover { |
|
475 |
background-color: #52a8be; |
|
476 |
color: #fff; |
|
477 |
} |
drupal7/sites/all/themes/rubik/template.php | ||
---|---|---|
3 | 3 |
* Implements hook_preprocess_html(). |
4 | 4 |
*/ |
5 | 5 |
function rubik_preprocess_html(&$vars) { |
6 |
if (module_exists('views')) { |
|
7 |
drupal_add_css(drupal_get_path('module', 'views') . '/css/views-admin.seven.css', 'theme'); |
|
8 |
} |
|
9 | 6 |
if (theme_get_setting('rubik_inline_field_descriptions')) { |
10 | 7 |
$vars['classes_array'][] = 'rubik-inline-field-descriptions'; |
11 | 8 |
} |
9 |
|
|
10 |
// add in a specific stylesheet for overrides in IE7. (BLAH) |
|
11 |
drupal_add_css(drupal_get_path('theme', 'rubik') . '/ie.css', array( |
|
12 |
'browsers' => array( |
|
13 |
'!IE' => FALSE, |
|
14 |
), |
|
15 |
'weight' => 500, |
|
16 |
'group' => 5000, |
|
17 |
'every_page' => TRUE, |
|
18 |
)); |
|
19 |
|
|
12 | 20 |
} |
13 | 21 |
|
14 | 22 |
/** |
... | ... | |
52 | 60 |
'process functions' => array('template_process'), |
53 | 61 |
); |
54 | 62 |
|
55 |
// Form layout: default (2 column). |
|
56 |
$items['block_add_block_form'] = |
|
57 |
$items['block_admin_configure'] = |
|
58 |
$items['comment_form'] = |
|
59 |
$items['contact_admin_edit'] = |
|
60 |
$items['contact_mail_page'] = |
|
61 |
$items['contact_mail_user'] = |
|
62 |
$items['filter_admin_format_form'] = |
|
63 |
$items['forum_form'] = |
|
64 |
$items['locale_languages_edit_form'] = |
|
65 |
$items['menu_edit_menu'] = |
|
66 |
$items['menu_edit_item'] = |
|
67 |
$items['node_type_form'] = |
|
68 |
$items['path_admin_form'] = |
|
69 |
$items['system_settings_form'] = |
|
70 |
$items['system_themes_form'] = |
|
71 |
$items['system_modules'] = |
|
72 |
$items['system_actions_configure'] = |
|
73 |
$items['taxonomy_form_term'] = |
|
74 |
$items['taxonomy_form_vocabulary'] = |
|
75 |
$items['user_profile_form'] = |
|
76 |
$items['user_admin_access_add_form'] = array( |
|
77 |
'render element' => 'form', |
|
78 |
'path' => drupal_get_path('theme', 'rubik') .'/templates', |
|
79 |
'template' => 'form-default', |
|
80 |
'preprocess functions' => array( |
|
81 |
'rubik_preprocess_form_buttons', |
|
82 |
), |
|
83 |
); |
|
84 |
|
|
85 |
// These forms require additional massaging. |
|
86 |
$items['confirm_form'] = array( |
|
87 |
'render element' => 'form', |
|
88 |
'path' => drupal_get_path('theme', 'rubik') .'/templates', |
|
89 |
'template' => 'form-simple', |
|
90 |
'preprocess functions' => array( |
|
91 |
'rubik_preprocess_form_confirm' |
|
92 |
), |
|
93 |
); |
|
94 |
$items['node_form'] = array( |
|
95 |
'render element' => 'form', |
|
96 |
'path' => drupal_get_path('theme', 'rubik') .'/templates', |
|
97 |
'template' => 'form-default', |
|
98 |
'preprocess functions' => array( |
|
99 |
'rubik_preprocess_form_buttons', |
|
100 |
'rubik_preprocess_form_node', |
|
101 |
), |
|
102 |
); |
|
63 |
if (!theme_get_setting('rubik_disable_sidebar_in_form')) { |
|
64 |
// Form layout: default (2 column). |
|
65 |
$items['block_add_block_form'] = |
|
66 |
$items['block_admin_configure'] = |
|
67 |
$items['comment_form'] = |
|
68 |
$items['contact_admin_edit'] = |
|
69 |
$items['contact_mail_page'] = |
|
70 |
$items['contact_mail_user'] = |
|
71 |
$items['filter_admin_format_form'] = |
|
72 |
$items['forum_form'] = |
|
73 |
$items['locale_languages_edit_form'] = |
|
74 |
$items['menu_edit_menu'] = |
|
75 |
$items['menu_edit_item'] = |
|
76 |
$items['node_type_form'] = |
|
77 |
$items['path_admin_form'] = |
|
78 |
$items['system_settings_form'] = |
|
79 |
$items['system_themes_form'] = |
|
80 |
$items['system_modules'] = |
|
81 |
$items['system_actions_configure'] = |
|
82 |
$items['taxonomy_form_term'] = |
|
83 |
$items['taxonomy_form_vocabulary'] = |
|
84 |
$items['user_profile_form'] = |
|
85 |
$items['user_admin_access_add_form'] = array( |
|
86 |
'render element' => 'form', |
|
87 |
'path' => drupal_get_path('theme', 'rubik') .'/templates', |
|
88 |
'template' => 'form-default', |
|
89 |
'preprocess functions' => array( |
|
90 |
'rubik_preprocess_form_buttons', |
|
91 |
), |
|
92 |
); |
|
103 | 93 |
|
94 |
// These forms require additional massaging. |
|
95 |
$items['confirm_form'] = array( |
|
96 |
'render element' => 'form', |
|
97 |
'path' => drupal_get_path('theme', 'rubik') .'/templates', |
|
98 |
'template' => 'form-simple', |
|
99 |
'preprocess functions' => array( |
|
100 |
'rubik_preprocess_form_confirm' |
|
101 |
), |
|
102 |
); |
|
103 |
$items['node_form'] = array( |
|
104 |
'render element' => 'form', |
|
105 |
'path' => drupal_get_path('theme', 'rubik') .'/templates', |
|
106 |
'template' => 'form-default', |
|
107 |
'preprocess functions' => array( |
|
108 |
'rubik_preprocess_form_buttons', |
|
109 |
'rubik_preprocess_form_node', |
|
110 |
), |
|
111 |
); |
|
112 |
} |
|
104 | 113 |
return $items; |
105 | 114 |
} |
106 | 115 |
|
... | ... | |
131 | 140 |
|
132 | 141 |
// Overlay is enabled. |
133 | 142 |
$vars['overlay'] = (module_exists('overlay') && overlay_get_mode() === 'child'); |
143 |
|
|
144 |
// Disable sticky in the sidebar. Set option in JS |
|
145 |
$disable_sticky = theme_get_setting('rubik_disable_sticky_sidebar'); |
|
146 |
drupal_add_js(array('rubik' => array('disable_sticky' => $disable_sticky)), array('type' => 'setting')); |
|
147 |
|
|
134 | 148 |
} |
135 | 149 |
|
136 | 150 |
/** |
... | ... | |
170 | 184 |
*/ |
171 | 185 |
function rubik_preprocess_form_node(&$vars) { |
172 | 186 |
$vars['sidebar'] = isset($vars['sidebar']) ? $vars['sidebar'] : array(); |
187 |
$map = array(); |
|
188 |
// Support field_group if present. |
|
189 |
if (module_exists('field_group')) { |
|
190 |
$map += array( |
|
191 |
'group_sidebar' => 'sidebar', |
|
192 |
'group_footer' => 'footer', |
|
193 |
); |
|
194 |
} |
|
173 | 195 |
// Support nodeformcols if present. |
174 | 196 |
if (module_exists('nodeformcols')) { |
175 |
$map = array( |
|
197 |
$map += array(
|
|
176 | 198 |
'nodeformcols_region_right' => 'sidebar', |
177 | 199 |
'nodeformcols_region_footer' => 'footer', |
178 | 200 |
'nodeformcols_region_main' => NULL, |
179 | 201 |
); |
202 |
} |
|
203 |
if (isset($map)) { |
|
180 | 204 |
foreach ($map as $region => $target) { |
181 | 205 |
if (isset($vars['form'][$region])) { |
182 | 206 |
if (isset($vars['form'][$region]['#prefix'], $vars['form'][$region]['#suffix'])) { |
... | ... | |
209 | 233 |
$classes = array( |
210 | 234 |
t('Save') => 'yes', |
211 | 235 |
t('Submit') => 'yes', |
212 |
t('Add') => 'yes', |
|
213 |
t('Delete') => 'no', |
|
236 |
t('Yes') => 'yes', |
|
237 |
t('Add') => 'add', |
|
238 |
t('Delete') => 'remove', |
|
239 |
t('Remove') => 'remove', |
|
214 | 240 |
t('Cancel') => 'no', |
241 |
t('No') => 'no', |
|
215 | 242 |
); |
216 | 243 |
foreach ($classes as $search => $class) { |
217 | 244 |
if (strpos($vars['element']['#value'], $search) !== FALSE) { |
... | ... | |
347 | 374 |
$item = menu_get_item(); |
348 | 375 |
$end = end($vars['breadcrumb']); |
349 | 376 |
if ($end && strip_tags($end) !== $item['title']) { |
350 |
$vars['breadcrumb'][] = check_plain($item['title']); |
|
377 |
$vars['breadcrumb'][] = (isset($item['localized_options']['html']) && $item['localized_options']['html']) ? $item['title'] : check_plain($item['title']);
|
|
351 | 378 |
} |
352 | 379 |
} |
353 | 380 |
|
... | ... | |
528 | 555 |
return drupal_render($elements); |
529 | 556 |
} |
530 | 557 |
|
558 |
function rubik_form_field_ui_field_edit_form_alter(&$form, &$form_state) { |
|
559 |
$rubik_sidebar_field_ui = theme_get_setting('rubik_sidebar_field_ui', 'rubik'); |
|
560 |
$rubik_disable_sidebar_in_form = theme_get_setting('rubik_disable_sidebar_in_form', 'rubik'); |
|
561 |
if ($rubik_sidebar_field_ui == 1 && $rubik_disable_sidebar_in_form == 0) { |
|
562 |
$options = array( |
|
563 |
'default' => t('Default'), |
|
564 |
'rubik_sidebar_field' => t('Sidebar'), |
|
565 |
); |
|
566 |
$default = (isset($form_state['build_info']['args'][0]['rubik_edit_field_display'])) ? $form_state['build_info']['args'][0]['rubik_edit_field_display'] : 'default'; |
|
567 |
$form['instance']['rubik_edit_field_display'] = array( |
|
568 |
'#type' => 'radios', |
|
569 |
'#title' => t('Set field display location'), |
|
570 |
'#description' => t('Choose where this field should be displayed.'), |
|
571 |
'#default_value' => $default, |
|
572 |
'#options' => $options, |
|
573 |
); |
|
574 |
} |
|
575 |
} |
|
576 |
|
|
577 |
function rubik_form_node_form_alter(&$form, $form_state) { |
|
578 |
$rubik_sidebar_field_ui = theme_get_setting('rubik_sidebar_field_ui', 'rubik'); |
|
579 |
if ($rubik_sidebar_field_ui == TRUE) { |
|
580 |
if (isset($form_state['field']) && is_array($form_state['field'])) { |
|
581 |
foreach ($form_state['field'] AS $name => $field) { |
|
582 |
if (!isset($field[LANGUAGE_NONE]['instance'])) { |
|
583 |
continue; |
|
584 |
} |
|
585 |
if (isset($field[LANGUAGE_NONE]['instance']['rubik_edit_field_display'])) { |
|
586 |
$display = $field[LANGUAGE_NONE]['instance']['rubik_edit_field_display']; |
|
587 |
if ($display == 'rubik_sidebar_field') { |
|
588 |
$form[$name]['#attributes']['class'][] = 'rubik_sidebar_field'; |
|
589 |
} |
|
590 |
} |
|
591 |
} |
|
592 |
} |
|
593 |
} |
|
594 |
} |
|
595 |
|
|
531 | 596 |
/** |
532 | 597 |
* Helper function to submitted info theming functions. |
533 | 598 |
*/ |
drupal7/sites/all/themes/rubik/templates/form-default.tpl.php | ||
---|---|---|
1 | 1 |
<div class='form form-layout-default clearfix'> |
2 | 2 |
<div class='column-main'><div class='column-wrapper clearfix'> |
3 | 3 |
<?php print drupal_render_children($form); ?> |
4 |
<?php print rubik_render_clone($actions); ?> |
|
4 |
<?php if(!empty($actions)) print rubik_render_clone($actions); ?>
|
|
5 | 5 |
</div></div> |
6 | 6 |
<div class='column-side'><div class='column-wrapper clearfix'> |
7 | 7 |
<?php print drupal_render($actions); ?> |
drupal7/sites/all/themes/rubik/theme-settings.php | ||
---|---|---|
17 | 17 |
'#type' => 'fieldset', |
18 | 18 |
'#title' => t('Rubik'), |
19 | 19 |
); |
20 |
$form['rubik']['rubik_show_branding'] = array( |
|
21 |
'#type' => 'checkbox', |
|
22 |
'#title' => t('Show branding'), |
|
23 |
'#description' => t('Display the "branding" line at the top of the page with breadcrumbs and secondary menu.'), |
|
24 |
'#default_value' => theme_get_setting('rubik_show_branding', 'rubik'), |
|
25 |
); |
|
20 | 26 |
$form['rubik']['rubik_inline_field_descriptions'] = array( |
21 | 27 |
'#type' => 'checkbox', |
22 | 28 |
'#title' => t('Display form field descriptions inline.'), |
23 | 29 |
'#description' => t("By default, each field's description is displayed in a pop-up, which is only visible when hovering over that field. Select this option to make all field descriptions visible at all times."), |
24 | 30 |
'#default_value' => theme_get_setting('rubik_inline_field_descriptions', 'rubik'), |
25 | 31 |
); |
26 |
} |
|
32 |
$form['rubik']['rubik_disable_sticky_sidebar'] = array( |
|
33 |
'#type' => 'checkbox', |
|
34 |
'#title' => t('Disable sticky sidebar'), |
|
35 |
'#description' => t("By default, the sidebar will fix itself when scrolling down a form. If you have a lot of fields in the sidebar, consider disabling the sticky sidebar to view them all."), |
|
36 |
'#default_value' => theme_get_setting('rubik_disable_sticky_sidebar', 'rubik'), |
|
37 |
); |
|
38 |
$form['rubik']['rubik_disable_sidebar_in_form'] = array( |
|
39 |
'#type' => 'checkbox', |
|
40 |
'#title' => t('Disable sidebar in forms'), |
|
41 |
'#description' => t("By default, the sidebar is enabled for forms."), |
|
42 |
'#default_value' => theme_get_setting('rubik_disable_sidebar_in_form', 'rubik'), |
|
43 |
); |
|
44 |
$form['rubik']['rubik_sidebar_field_ui'] = array( |
|
45 |
'#type' => 'checkbox', |
|
46 |
'#title' => t('Display fields in the sidebar of the node edit form.'), |
|
47 |
'#description' => t("By default, each field is displayed in the main content area of the node edit form. This option allows you to move fields into the sidebar to improve user experience."), |
|
48 |
'#default_value' => theme_get_setting('rubik_sidebar_field_ui', 'rubik'), |
Formats disponibles : Unified diff
Update Rubik 4.0-rc1 4.2