forked from Drupalcat/drupalcat
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Drupalcat#40 from pakmanlh/new_theme
Task Drupalcat#28 - Afegit nou theme de Drupal.cat.
- Loading branch information
Showing
38 changed files
with
4,026 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,5 @@ dependencies: | |
- dblog | ||
- toolbar | ||
themes: | ||
- stark | ||
- drupalcat | ||
- seven |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source 'https://rubygems.org' | ||
gem "sass", "3.2.9" | ||
gem "bourbon" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
bourbon (3.2.3) | ||
sass (~> 3.2) | ||
thor | ||
sass (3.2.9) | ||
thor (0.19.1) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
bourbon | ||
sass (= 3.2.9) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Drupal.cat theme instruccions d'ús: | ||
|
||
Primer s'ha de tenir instal·lada la gema Bundle. | ||
«gem install bundle» | ||
|
||
Després ens hem de assegurar de tenir totes les gemes necessàries definides a l'arxiu Gemfile | ||
«bundle install» | ||
|
||
Finalment per generar els arxius CSS s'ha de fer servir la instrucció: | ||
«sass --watch sass:css» | ||
|
||
Documentació: | ||
|
||
- Com fer servir breakpoints: | ||
http://robots.thoughtbot.com/version-1-0-of-bourbon-neat-a-sass-based-responsive | ||
|
||
- Bourbon: | ||
bourbon.io/docs/ | ||
|
||
- Neat | ||
http://thoughtbot.github.io/neat-docs/latest/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Lists available colors and color schemes for the Bartik theme. | ||
*/ | ||
|
||
// Put the logo path into JavaScript for the live preview. | ||
$js = array('color' => array('logo' => theme_get_setting('logo.url', 'bartik'))); | ||
$js_attached['#attached']['js'][] = array('data' => $js, 'type' => 'setting'); | ||
drupal_render($js_attached); | ||
|
||
$info = array( | ||
// Available colors and color labels used in theme. | ||
'fields' => array( | ||
'top' => t('Header background top'), | ||
'bottom' => t('Header background bottom'), | ||
'bg' => t('Main background'), | ||
'sidebar' => t('Sidebar background'), | ||
'sidebarborders' => t('Sidebar borders'), | ||
'footer' => t('Footer background'), | ||
'titleslogan' => t('Title and slogan'), | ||
'text' => t('Text color'), | ||
'link' => t('Link color'), | ||
), | ||
// Pre-defined color schemes. | ||
'schemes' => array( | ||
'default' => array( | ||
'title' => t('Blue Lagoon (default)'), | ||
'colors' => array( | ||
'top' => '#055a8e', | ||
'bottom' => '#1d84c3', | ||
'bg' => '#ffffff', | ||
'sidebar' => '#f6f6f2', | ||
'sidebarborders' => '#f9f9f9', | ||
'footer' => '#292929', | ||
'titleslogan' => '#fffeff', | ||
'text' => '#3b3b3b', | ||
'link' => '#0071B3', | ||
), | ||
), | ||
'firehouse' => array( | ||
'title' => t('Firehouse'), | ||
'colors' => array( | ||
'top' => '#cd2d2d', | ||
'bottom' => '#d64e4e', | ||
'bg' => '#ffffff', | ||
'sidebar' => '#f1f4f0', | ||
'sidebarborders' => '#ededed', | ||
'footer' => '#1f1d1c', | ||
'titleslogan' => '#fffeff', | ||
'text' => '#888888', | ||
'link' => '#d6121f', | ||
), | ||
), | ||
'ice' => array( | ||
'title' => t('Ice'), | ||
'colors' => array( | ||
'top' => '#d0d0d0', | ||
'bottom' => '#c2c4c5', | ||
'bg' => '#ffffff', | ||
'sidebar' => '#ffffff', | ||
'sidebarborders' => '#cccccc', | ||
'footer' => '#016b83', | ||
'titleslogan' => '#000000', | ||
'text' => '#4a4a4a', | ||
'link' => '#019dbf', | ||
), | ||
), | ||
'plum' => array( | ||
'title' => t('Plum'), | ||
'colors' => array( | ||
'top' => '#4c1c58', | ||
'bottom' => '#593662', | ||
'bg' => '#fffdf7', | ||
'sidebar' => '#edede7', | ||
'sidebarborders' => '#e7e7e7', | ||
'footer' => '#2c2c28', | ||
'titleslogan' => '#ffffff', | ||
'text' => '#301313', | ||
'link' => '#9d408d', | ||
), | ||
), | ||
'slate' => array( | ||
'title' => t('Slate'), | ||
'colors' => array( | ||
'top' => '#4a4a4a', | ||
'bottom' => '#4e4e4e', | ||
'bg' => '#ffffff', | ||
'sidebar' => '#ffffff', | ||
'sidebarborders' => '#d0d0d0', | ||
'footer' => '#161617', | ||
'titleslogan' => '#ffffff', | ||
'text' => '#3b3b3b', | ||
'link' => '#0073b6', | ||
), | ||
), | ||
), | ||
|
||
// CSS files (excluding @import) to rewrite with new color scheme. | ||
'css' => array( | ||
'css/colors.css', | ||
), | ||
|
||
// Files to copy. | ||
'copy' => array( | ||
'logo.png', | ||
), | ||
|
||
// Gradient definitions. | ||
'gradients' => array( | ||
array( | ||
// (x, y, width, height). | ||
'dimension' => array(0, 0, 0, 0), | ||
// Direction of gradient ('vertical' or 'horizontal'). | ||
'direction' => 'vertical', | ||
// Keys of colors to use for the gradient. | ||
'colors' => array('top', 'bottom'), | ||
), | ||
), | ||
|
||
// Preview files. | ||
'preview_css' => 'color/preview.css', | ||
'preview_js' => 'color/preview.js', | ||
'preview_html' => 'color/preview.html', | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,183 @@ | ||
/* ---------- Preview Styles ----------- */ | ||
.js #preview { | ||
clear: both; | ||
float: none !important; | ||
} | ||
#preview { | ||
background-color: #fff; | ||
font-family: Georgia, "Times New Roman", Times, serif; | ||
font-size: 14px; | ||
line-height: 1.5; | ||
overflow: hidden; | ||
word-wrap: break-word; | ||
margin-bottom: 10px; | ||
} | ||
#preview-header { | ||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
position: relative; | ||
} | ||
#preview-logo { | ||
float: left; | ||
padding: 15px 15px 15px 10px; | ||
} | ||
#preview-site-name { | ||
color: #686868; | ||
font-weight: normal; | ||
font-size: 1.821em; | ||
line-height: 1; | ||
margin-bottom: 30px; | ||
margin-left: 15px; | ||
padding-top: 34px; | ||
} | ||
#preview-main-menu { | ||
clear: both; | ||
padding: 0 15px 3px; | ||
} | ||
#preview-main-menu-links a { | ||
color: #d9d9d9; | ||
padding: 0.6em 1em 0.4em; | ||
} | ||
#preview-main-menu-links { | ||
font-size: 0.929em; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
#preview-main-menu-links a { | ||
color: #333; | ||
background: #ccc; | ||
background: rgba(255, 255, 255, 0.7); | ||
text-shadow: 0 1px #eee; | ||
border-top-left-radius: 8px; | ||
border-top-right-radius: 8px; | ||
} | ||
#preview-main-menu-links a:hover, | ||
#preview-main-menu-links a:focus { | ||
background: #eee; | ||
background: rgba(255, 255, 255, 0.95); | ||
text-decoration: none; | ||
cursor: pointer; | ||
} | ||
#preview-main-menu-links li a.active { | ||
background: #fff; | ||
border-bottom: none; | ||
} | ||
#preview-main-menu-links li { | ||
display: inline; | ||
list-style-type: none; | ||
padding: 0.6em 0 0.4em; | ||
} | ||
#preview-sidebar, | ||
#preview-content { | ||
display: inline; | ||
float: left; | ||
position: relative; | ||
} | ||
#preview-sidebar { | ||
margin-left: 15px; | ||
width: 210px; | ||
} | ||
#preview-content { | ||
margin-left: 30px; | ||
width: 26.5em; | ||
} | ||
#preview-sidebar .preview-block { | ||
border: 1px solid; | ||
margin: 20px 0; | ||
padding: 15px 20px; | ||
} | ||
#preview-sidebar h2 { | ||
border-bottom: 1px solid #d6d6d6; | ||
font-size: 1.071em; | ||
font-weight: normal; | ||
line-height: 1.2; | ||
margin: 0 0 0.5em; | ||
padding-bottom: 5px; | ||
text-shadow: 0 1px 0 #fff; | ||
} | ||
#preview .preview-block .preview-content { | ||
margin-top: 1em; | ||
} | ||
#preview .preview-block-menu .preview-content, | ||
#preview .preview-block-menu .preview-content ul { | ||
margin-top: 0; | ||
} | ||
#preview-main { | ||
margin-bottom: 40px; | ||
margin-top: 20px; | ||
} | ||
#preview-page-title { | ||
font-size: 2em; | ||
font-weight: normal; | ||
line-height: 1; | ||
margin: 1em 0 0.5em; | ||
} | ||
#preview-footer-wrapper { | ||
color: #c0c0c0; | ||
color: rgba(255, 255, 255, 0.65); | ||
display: block !important; | ||
font-size: 0.857em; | ||
padding: 20px 20px 25px; | ||
} | ||
#preview-footer-wrapper a { | ||
color: #fcfcfc; | ||
color: rgba(255, 255, 255, 0.8); | ||
} | ||
#preview-footer-wrapper a:hover, | ||
#preview-footer-wrapper a:focus { | ||
color: #fefefe; | ||
color: rgba(255, 255, 255, 0.95); | ||
text-decoration: underline; | ||
} | ||
#preview-footer-wrapper .preview-footer-column { | ||
display: inline; | ||
float: left; | ||
padding: 0 10px; | ||
position: relative; | ||
width: 220px; | ||
} | ||
#preview-footer-wrapper .preview-block { | ||
border: 1px solid #444; | ||
border-color: rgba(255, 255, 255, 0.1); | ||
margin: 20px 0; | ||
padding: 10px; | ||
} | ||
#preview-footer-columns .preview-block-menu { | ||
border: none; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
#preview-footer-columns h2 { | ||
border-bottom: 1px solid #555; | ||
border-color: rgba(255, 255, 255, 0.15); | ||
font-size: 1em; | ||
margin-bottom: 0; | ||
padding-bottom: 3px; | ||
text-transform: uppercase; | ||
} | ||
#preview-footer-columns .preview-content { | ||
margin-top: 0; | ||
} | ||
#preview-footer-columns .preview-content ul { | ||
margin-left: 0; | ||
padding-left: 0; | ||
} | ||
#preview-footer-columns .preview-content li { | ||
list-style: none; | ||
list-style-image: none; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
#preview-footer-columns .preview-content li a { | ||
border-bottom: 1px solid #555; | ||
border-color: rgba(255, 255, 255, 0.15); | ||
display: block; | ||
line-height: 1.2; | ||
padding: 0.8em 2px 0.8em 20px; | ||
text-indent: -15px; | ||
} | ||
#preview-footer-columns .preview-content li a:hover, | ||
#preview-footer-columns .preview-content li a:focus { | ||
background-color: #1f1f21; | ||
background-color: rgba(255, 255, 255, 0.05); | ||
text-decoration: none; | ||
} |
Oops, something went wrong.