diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-04-03 08:05:08 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-04-03 08:05:08 +0000 |
commit | 29a93b8c08b0f2d8fe772764119c95eef56aa972 (patch) | |
tree | b56d5f95b14efcfb84132b8dc0ee32d19bbbd289 /themes/garland | |
parent | 7817a0a56e313239d4ee6c36e3591fdea0b94132 (diff) | |
download | brdo-29a93b8c08b0f2d8fe772764119c95eef56aa972.tar.gz brdo-29a93b8c08b0f2d8fe772764119c95eef56aa972.tar.bz2 |
#693504 by stBorchert, ksenzee, dixon_ | jarek, joachim, EvanDonovan, eigentor, sun, dmitrig01, et al.: Added support to color.module for flexible color schemes and gradients, and removed hard-coded assumptions about Garland.
Diffstat (limited to 'themes/garland')
-rw-r--r-- | themes/garland/color/color.inc | 180 | ||||
-rw-r--r-- | themes/garland/color/preview.css | 6 |
2 files changed, 166 insertions, 20 deletions
diff --git a/themes/garland/color/color.inc b/themes/garland/color/color.inc index 10d76dedd..c23d3f0d6 100644 --- a/themes/garland/color/color.inc +++ b/themes/garland/color/color.inc @@ -3,23 +3,160 @@ $info = array( + // Available colors and color labels used in theme. + 'fields' => array( + 'base' => t('Base color'), + 'link' => t('Link color'), + 'top' => t('Header top'), + 'bottom' => t('Header bottom'), + 'text' => t('Text color'), + ), // Pre-defined color schemes. 'schemes' => array( - '#0072b9,#027ac6,#2385c2,#5ab5ee,#494949' => t('Blue Lagoon (Default)'), - '#464849,#2f416f,#2a2b2d,#5d6779,#494949' => t('Ash'), - '#55c0e2,#000000,#085360,#007e94,#696969' => t('Aquamarine'), - '#d5b048,#6c420e,#331900,#971702,#494949' => t('Belgian Chocolate'), - '#3f3f3f,#336699,#6598cb,#6598cb,#000000' => t('Bluemarine'), - '#d0cb9a,#917803,#efde01,#e6fb2d,#494949' => t('Citrus Blast'), - '#0f005c,#434f8c,#4d91ff,#1a1575,#000000' => t('Cold Day'), - '#c9c497,#0c7a00,#03961e,#7be000,#494949' => t('Greenbeam'), - '#ffe23d,#a9290a,#fc6d1d,#a30f42,#494949' => t('Mediterrano'), - '#788597,#3f728d,#a9adbc,#d4d4d4,#707070' => t('Mercury'), - '#5b5fa9,#5b5faa,#0a2352,#9fa8d5,#494949' => t('Nocturnal'), - '#7db323,#6a9915,#b5d52a,#7db323,#191a19' => t('Olivia'), - '#12020b,#1b1a13,#f391c6,#f41063,#898080' => t('Pink Plastic'), - '#b7a0ba,#c70000,#a1443a,#f21107,#515d52' => t('Shiny Tomato'), - '#18583d,#1b5f42,#34775a,#52bf90,#2d2d2d' => t('Teal Top'), + 'default' => array( + 'title' => t('Blue Lagoon (Default)'), + 'colors' => array( + 'base' => '#0072b9', + 'link' => '#027ac6', + 'top' => '#2385c2', + 'bottom' => '#5ab5ee', + 'text' => '#494949', + ), + ), + 'ash' => array( + 'title' => t('Ash'), + 'colors' => array( + 'base' => '#464849', + 'link' => '#2f416f', + 'top' => '#2a2b2d', + 'bottom' => '#5d6779', + ), + ), + 'aquamarine' => array( + 'title' => t('Aquamarine'), + 'colors' => array( + 'base' => '#55c0e2', + 'link' => '#000000', + 'text' => '#696969', + 'top' => '#085360', + 'bottom' => '#007e94', + ), + ), + 'chocolate' => array( + 'title' => t('Belgian Chocolate'), + 'colors' => array( + 'base' => '#d5b048', + 'link' => '#6c420e', + 'top' => '#331900', + 'bottom' => '#971702', + ), + ), + 'bluemarine' => array( + 'title' => t('Bluemarine'), + 'colors' => array( + 'base' => '#3f3f3f', + 'link' => '#336699', + 'text' => '#000000', + 'top' => '#6598cb', + 'bottom' => '#6598cb', + ), + ), + 'citrus' => array( + 'title' => t('Citrus Blast'), + 'colors' => array( + 'base' => '#d0cb9a', + 'link' => '#917803', + 'top' => '#efde01', + 'bottom' => '#e6fb2d', + ), + ), + 'cold' => array( + 'title' => t('Cold Day'), + 'colors' => array( + 'base' => '#0f005c', + 'link' => '#434f8c', + 'text' => '#000000', + 'top' => '#4d91ff', + 'bottom' => '#1a1575', + ), + ), + 'greenbeam' => array( + 'title' => t('Greenbeam'), + 'colors' => array( + 'base' => '#c9c497', + 'link' => '#0c7a00', + 'top' => '#03961e', + 'bottom' => '#7be000', + ), + ), + 'mediterrano' => array( + 'title' => t('Mediterrano'), + 'colors' => array( + 'base' => '#ffe23d', + 'link' => '#a9290a', + 'top' => '#fc6d1d', + 'bottom' => '#a30f42', + ), + ), + 'mercury' => array( + 'title' => t('Mercury'), + 'colors' => array( + 'base' => '#788597', + 'link' => '#3f728d', + 'top' => '#a9adbc', + 'bottom' => '#d4d4d4', + 'text' => '#707070', + ), + ), + 'nocturnal' => array( + 'title' => t('Nocturnal'), + 'colors' => array( + 'base' => '#5b5fa9', + 'link' => '#5b5faa', + 'top' => '#0a2352', + 'bottom' => '#9fa8d5', + ), + ), + 'olivia' => array( + 'title' => t('Olivia'), + 'colors' => array( + 'base' => '#7db323', + 'link' => '#6a9915', + 'top' => '#b5d52a', + 'bottom' => '#7db323', + 'text' => '#191a19', + ), + ), + 'pink_plastic' => array( + 'title' => t('Pink Plastic'), + 'colors' => array( + 'base' => '#12020b', + 'link' => '#1b1a13', + 'top' => '#f391c6', + 'bottom' => '#f41063', + 'text' => '#898080', + ), + ), + 'shiny_tomato' => array( + 'title' => t('Shiny Tomato'), + 'colors' => array( + 'base' => '#b7a0ba', + 'link' => '#c70000', + 'top' => '#a1443a', + 'bottom' => '#f21107', + 'text' => '#515d52', + ), + ), + 'teal_top' => array( + 'title' => t('Teal Top'), + 'colors' => array( + 'base' => '#18583d', + 'link' => '#1b5f42', + 'top' => '#34775a', + 'bottom' => '#52bf90', + 'text' => '#2d2d2d', + ), + ), ), // Images to copy over. @@ -35,8 +172,17 @@ $info = array( 'style.css', ), - // Coordinates of gradient (x, y, width, height). - 'gradient' => array(0, 37, 760, 121), + // Gradient definitions. + 'gradients' => array( + array( + // (x, y, width, height). + 'dimension' => array(0, 38, 760, 121), + // Direction of gradient ('vertical' or 'horizontal'). + 'direction' => 'vertical', + // Keys of colors to use for the gradient. + 'colors' => array('top', 'bottom'), + ), + ), // Color areas to fill (x, y, width, height). 'fill' => array( diff --git a/themes/garland/color/preview.css b/themes/garland/color/preview.css index 921f7125a..5e8681b43 100644 --- a/themes/garland/color/preview.css +++ b/themes/garland/color/preview.css @@ -6,10 +6,10 @@ max-width: 100%; } #preview, #preview #img { - width: 596px; + width: 600px; height: 371px; } -#preview #gradient { +#preview #gradient-0 { position: absolute; left: 0; right: 0; @@ -29,7 +29,7 @@ position: relative; z-index: 3; } -#preview #gradient .gradient-line { +#preview #gradient-0 .gradient-line { height: 10px; overflow: hidden; } |