Révision 578c6d8f
Ajouté par Assos Assos il y a presque 10 ans
drupal7/sites/all/themes/mayo/README.txt | ||
---|---|---|
95 | 95 |
+-----------------------------------------+ |
96 | 96 |
|
97 | 97 |
As you can see, it supports multiple columns in the top, bottom and footer regions. You can add up to four columns. The width of a column is automatically calculated based on the number of columns to be used. For example, if you add 3 blocks to the footer, then the width of each column will be 33% of the footer width. |
98 |
Each block in the top and bottom columns regions has its own box style just like sidebar blocks. Height of these blocks are equalized to the tallest blocks within the same region so that they looks nice and neat.
|
|
98 |
Each block in the top and bottom columns regions has its own box style just like sidebar blocks. Height of these blocks are equalized to the tallest blocks within the same region so that they look nice and neat. |
|
99 | 99 |
|
100 | 100 |
Menu and Submenu regions are for those who uses superfish, nice_menus and other drop down menus (see the next section for more details). Position of the sidebar first and the second can be configured from the theme settings page. |
101 | 101 |
|
drupal7/sites/all/themes/mayo/css/style.css | ||
---|---|---|
364 | 364 |
margin: 0px; |
365 | 365 |
} |
366 | 366 |
|
367 |
.rc-1 .comment,
|
|
368 |
.rc-1 .node,
|
|
369 |
.rc-2 .column-block,
|
|
370 |
.rc-2 .sidebar .block,
|
|
367 |
.rc-2 .comment,
|
|
368 |
.rc-2 .node,
|
|
369 |
.rc-1 .column-block,
|
|
370 |
.rc-1 .sidebar .block,
|
|
371 | 371 |
.rc-3 .comment, |
372 | 372 |
.rc-3 .node, |
373 | 373 |
.rc-3 .column-block, |
... | ... | |
745 | 745 |
border-width: 1px; |
746 | 746 |
} |
747 | 747 |
|
748 |
/* To wrap tabs. */ |
|
749 |
div.tabs .secondary li, |
|
750 |
div.tabs .primary li { |
|
751 |
float: left; |
|
752 |
line-height: 1.5em; |
|
753 |
margin-right: 3px; |
|
754 |
} |
|
755 |
|
|
748 | 756 |
div.tabs .secondary li a.active, |
749 | 757 |
div.tabs .primary li a.active { |
750 | 758 |
background: url("../images/dark.png") repeat top left; |
... | ... | |
1311 | 1319 |
height: auto; |
1312 | 1320 |
} |
1313 | 1321 |
|
1314 |
#site-name a, #header h1 a, #header h1 a:link, #header h1 a:visited { |
|
1315 |
font-size: .75em; |
|
1322 |
#site-name a, #site-name a:link, #site-name a:visited { |
|
1323 |
margin: 0 0; |
|
1324 |
font-size: .85em; |
|
1325 |
font-weight: 800; |
|
1326 |
line-height: 1em; |
|
1327 |
} |
|
1328 |
|
|
1329 |
#header h1 a, #header h1 a:link, #header h1 a:visited { |
|
1330 |
font-size: .85em; |
|
1316 | 1331 |
font-weight: 800; |
1317 | 1332 |
line-height: 1em; |
1318 | 1333 |
text-decoration: none; |
... | ... | |
1334 | 1349 |
width: 95%; |
1335 | 1350 |
} |
1336 | 1351 |
|
1337 |
#site-name a, #header h1 a, #header h1 a:link, #header h1 a:visited { |
|
1338 |
font-size: .9em; |
|
1352 |
#site-name a, #site-name a:link, #site-name a:visited { |
|
1353 |
margin: 0 0; |
|
1354 |
font-size: 1.2em; |
|
1355 |
font-weight: 800; |
|
1356 |
line-height: 1em; |
|
1357 |
} |
|
1358 |
|
|
1359 |
#header h1 a, #header h1 a:link, #header h1 a:visited { |
|
1360 |
font-size: .85em; |
|
1339 | 1361 |
font-weight: 800; |
1340 | 1362 |
line-height: 1em; |
1341 | 1363 |
text-decoration: none; |
... | ... | |
1378 | 1400 |
height: auto; |
1379 | 1401 |
} |
1380 | 1402 |
|
1381 |
#site-name a, #header h1 a, #header h1 a:link, #header h1 a:visited { |
|
1382 |
font-size: 1.4em; |
|
1403 |
#site-name a, #site-name a:link, #site-name a:visited { |
|
1404 |
margin: 0 0; |
|
1405 |
font-size: 1.8em; |
|
1406 |
font-weight: 800; |
|
1407 |
line-height: 1em; |
|
1408 |
} |
|
1409 |
|
|
1410 |
#header h1 a, #header h1 a:link, #header h1 a:visited { |
|
1411 |
font-size: 1.3em; |
|
1383 | 1412 |
font-weight: 800; |
1384 | 1413 |
line-height: 1em; |
1385 | 1414 |
text-decoration: none; |
... | ... | |
1418 | 1447 |
height: auto; |
1419 | 1448 |
} |
1420 | 1449 |
|
1421 |
#site-name a, #header h1 a, #header h1 a:link, #header h1 a:visited { |
|
1422 |
font-size: 1.7em; |
|
1450 |
#site-name a, #site-name a:link, #site-name a:visited { |
|
1451 |
margin: 0 0; |
|
1452 |
font-size: 2.2em; |
|
1453 |
font-weight: 800; |
|
1454 |
line-height: 1em; |
|
1455 |
} |
|
1456 |
|
|
1457 |
#header h1 a, #header h1 a:link, #header h1 a:visited { |
|
1458 |
font-size: 1.6em; |
|
1423 | 1459 |
font-weight: 800; |
1424 | 1460 |
line-height: 1em; |
1425 | 1461 |
text-decoration: none; |
drupal7/sites/all/themes/mayo/mayo.info | ||
---|---|---|
1 | 1 |
|
2 | 2 |
name = MAYO |
3 |
description = Simple but fully customizable and colorable fixed/liquid layout theme
|
|
3 |
description = Simple but fully customizable and colorable responsive layout theme.
|
|
4 | 4 |
core = 7.x |
5 | 5 |
|
6 | 6 |
stylesheets[all][] = css/style.css |
... | ... | |
146 | 146 |
settings[global_default_layout] = 'smalltouch-portrait' |
147 | 147 |
settings[global_default_layout_toggle] = 0 |
148 | 148 |
settings[global_files_path] = 'public_files' |
149 |
; Information added by Drupal.org packaging script on 2014-05-07
|
|
150 |
version = "7.x-2.0"
|
|
149 |
; Information added by Drupal.org packaging script on 2014-06-15
|
|
150 |
version = "7.x-2.1"
|
|
151 | 151 |
core = "7.x" |
152 | 152 |
project = "mayo" |
153 |
datestamp = "1399497228"
|
|
153 |
datestamp = "1402797829"
|
|
154 | 154 |
|
drupal7/sites/all/themes/mayo/sass/partials/_responsive-media.scss | ||
---|---|---|
14 | 14 |
} |
15 | 15 |
} |
16 | 16 |
|
17 |
#site-name a, #header h1 a, #header h1 a:link, #header h1 a:visited { |
|
18 |
font-size: .75em; |
|
17 |
#site-name a, #site-name a:link, #site-name a:visited { |
|
18 |
margin: 0 0; |
|
19 |
font-size: .85em; |
|
20 |
font-weight: 800; |
|
21 |
line-height: 1em; |
|
22 |
} |
|
23 |
#header h1 a, #header h1 a:link, #header h1 a:visited { |
|
24 |
font-size: .85em; |
|
19 | 25 |
font-weight: 800; |
20 | 26 |
line-height: 1em; |
21 | 27 |
text-decoration: none; |
... | ... | |
40 | 46 |
input.form-text { |
41 | 47 |
width: 95%; |
42 | 48 |
} |
43 |
|
|
44 |
#site-name a, #header h1 a, #header h1 a:link, #header h1 a:visited { |
|
45 |
font-size: .9em; |
|
49 |
#site-name a, #site-name a:link, #site-name a:visited { |
|
50 |
margin: 0 0; |
|
51 |
font-size: 1.2em; |
|
52 |
font-weight: 800; |
|
53 |
line-height: 1em; |
|
54 |
} |
|
55 |
#header h1 a, #header h1 a:link, #header h1 a:visited { |
|
56 |
font-size: .85em; |
|
46 | 57 |
font-weight: 800; |
47 | 58 |
line-height: 1em; |
48 | 59 |
text-decoration: none; |
... | ... | |
88 | 99 |
} |
89 | 100 |
} |
90 | 101 |
|
91 |
|
|
92 |
#site-name a, #header h1 a, #header h1 a:link, #header h1 a:visited { |
|
93 |
font-size: 1.4em; |
|
102 |
#site-name a, #site-name a:link, #site-name a:visited { |
|
103 |
margin: 0 0; |
|
104 |
font-size: 1.8em; |
|
105 |
font-weight: 800; |
|
106 |
line-height: 1em; |
|
107 |
} |
|
108 |
#header h1 a, #header h1 a:link, #header h1 a:visited { |
|
109 |
font-size: 1.3em; |
|
94 | 110 |
font-weight: 800; |
95 | 111 |
line-height: 1em; |
96 | 112 |
text-decoration: none; |
... | ... | |
132 | 148 |
} |
133 | 149 |
} |
134 | 150 |
|
135 |
|
|
136 |
#site-name a, #header h1 a, #header h1 a:link, #header h1 a:visited { |
|
137 |
font-size: 1.7em; |
|
151 |
#site-name a, #site-name a:link, #site-name a:visited { |
|
152 |
margin: 0 0; |
|
153 |
font-size: 2.2em; |
|
154 |
font-weight: 800; |
|
155 |
line-height: 1em; |
|
156 |
} |
|
157 |
#header h1 a, #header h1 a:link, #header h1 a:visited { |
|
158 |
font-size: 1.6em; |
|
138 | 159 |
font-weight: 800; |
139 | 160 |
line-height: 1em; |
140 | 161 |
text-decoration: none; |
drupal7/sites/all/themes/mayo/sass/partials/_style-settings.scss | ||
---|---|---|
5 | 5 |
// .rc-2 Node only |
6 | 6 |
// .rc-3 Both sidebar block and node |
7 | 7 |
// ==================================================================== |
8 |
.rc-1 .comment,
|
|
9 |
.rc-1 .node,
|
|
10 |
.rc-2 .column-block,
|
|
11 |
.rc-2 .sidebar .block,
|
|
8 |
.rc-2 .comment,
|
|
9 |
.rc-2 .node,
|
|
10 |
.rc-1 .column-block,
|
|
11 |
.rc-1 .sidebar .block,
|
|
12 | 12 |
.rc-3 .comment, |
13 | 13 |
.rc-3 .node, |
14 | 14 |
.rc-3 .column-block, |
drupal7/sites/all/themes/mayo/sass/style.scss | ||
---|---|---|
331 | 331 |
border-width: 1px; |
332 | 332 |
} |
333 | 333 |
|
334 |
/* To wrap tabs. */ |
|
335 |
div.tabs .secondary li, |
|
336 |
div.tabs .primary li { |
|
337 |
float: left; |
|
338 |
line-height: 1.5em; |
|
339 |
margin-right: 3px; |
|
340 |
} |
|
341 |
|
|
334 | 342 |
div.tabs .secondary li a.active, |
335 | 343 |
div.tabs .primary li a.active { |
336 | 344 |
background: url('../images/dark.png') repeat top left; |
drupal7/sites/all/themes/mayo/templates/page.tpl.php | ||
---|---|---|
84 | 84 |
$page_style = 'padding: ' . $page_margin . ';'; |
85 | 85 |
} |
86 | 86 |
else { |
87 |
$main_style = 'padding: 0px ' . $page_margin . ';'; |
|
87 |
$main_style = 'padding: 0px ' . $page_margin . '; box-sizing: border-box;';
|
|
88 | 88 |
} |
89 | 89 |
|
90 | 90 |
$header_style = ''; |
... | ... | |
115 | 115 |
if (empty($logo_left_margin)) $logo_left_margin = '0px'; |
116 | 116 |
$logo_top_margin = theme_get_setting('logo_top_margin'); |
117 | 117 |
if (empty($logo_top_margin)) $logo_top_margin = '0px'; |
118 |
$logo_style = 'padding-left: ' . $logo_left_margin . '; padding-top: ' . $logo_top_margin . ';';
|
|
118 |
$logo_style = 'margin-left: ' . $logo_left_margin . '; margin-top: ' . $logo_top_margin . ';';
|
|
119 | 119 |
|
120 | 120 |
$sitename_style = ''; |
121 | 121 |
$sitename_left_margin = theme_get_setting('sitename_left_margin'); |
122 | 122 |
if (empty($sitename_left_margin)) $sitename_left_margin = '0px'; |
123 | 123 |
$sitename_top_margin = theme_get_setting('sitename_top_margin'); |
124 | 124 |
if (empty($sitename_top_margin)) $sitename_top_margin = '0px'; |
125 |
$sitename_style = 'padding-left: ' . $sitename_left_margin . '; padding-top: ' . $sitename_top_margin . ';';
|
|
125 |
$sitename_style = 'margin-left: ' . $sitename_left_margin . '; margin-top: ' . $sitename_top_margin . ';';
|
|
126 | 126 |
|
127 | 127 |
$searchbox_style = ''; |
128 | 128 |
$searchbox_right_margin = theme_get_setting('searchbox_right_margin'); |
129 | 129 |
if (empty($searchbox_right_margin)) $searchbox_right_margin = '0px'; |
130 | 130 |
$searchbox_top_margin = theme_get_setting('searchbox_top_margin'); |
131 | 131 |
if (empty($searchbox_top_margin)) $searchbox_top_margin = '0px'; |
132 |
$searchbox_style = 'padding-right: ' . $searchbox_right_margin . '; padding-top: ' . $searchbox_top_margin . ';';
|
|
132 |
$searchbox_style = 'margin-right: ' . $searchbox_right_margin . '; margin-top: ' . $searchbox_top_margin . ';';
|
|
133 | 133 |
|
134 | 134 |
$menubar_style = ''; |
135 | 135 |
$menubar_bg_value = theme_get_setting('menubar_bg_value'); |
... | ... | |
278 | 278 |
<?php print render($title_prefix); ?> |
279 | 279 |
<?php if ($title): ?><h1 class="title" id="page-title"><?php print $title; ?></h1><?php endif; ?> |
280 | 280 |
<?php print render($title_suffix); ?> |
281 |
<?php if ($tabs): ?><div class="tabs"><?php print render($tabs); ?></div><?php endif; ?> |
|
281 |
<?php if ($tabs): ?><div class="tabs clearfix"><?php print render($tabs); ?></div><?php endif; ?>
|
|
282 | 282 |
<?php print render($page['help']); ?> |
283 | 283 |
<?php if ($action_links): ?><ul class="action-links"><?php print render($action_links); ?></ul><?php endif; ?> |
284 | 284 |
<?php print render($page['content']); ?> |
drupal7/sites/all/themes/mayo/theme-settings.php | ||
---|---|---|
145 | 145 |
1 => t('1. Apply page margin to all (header, footer and main contents).'), |
146 | 146 |
2 => t('2. Apply page margin to main contents only.'), |
147 | 147 |
), |
148 |
'#description' => '<img src="/' . drupal_get_path('theme', 'mayo') . '/images/page-layout.png" /><br />' . t('When the layout 2 is selected, or header background image is selected, header borders are not drawn to make it looks better.'),
|
|
148 |
'#description' => '<img src="/' . drupal_get_path('theme', 'mayo') . '/images/page-layout.png" /><br />' . t('When the layout 2 is selected, or header background image is selected, header borders are not drawn to make it look better.'), |
|
149 | 149 |
); |
150 | 150 |
|
151 | 151 |
/* --------------- Responsive sidebar layout settings -------------- */ |
... | ... | |
958 | 958 |
'#type' => 'checkbox', |
959 | 959 |
'#title' => t('Use dark message colors'), |
960 | 960 |
'#default_value' => theme_get_setting('dark_messages'), |
961 |
'#value' => 'dark-messages', |
|
961 |
'#return_value' => 'dark-messages',
|
|
962 | 962 |
'#description' => t('Check here if you use the dark color set. Colors for the status/warning/error messages are adjusted.'), |
963 | 963 |
); |
964 | 964 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules