From 7f2bfabbf0b26c2b393158c5e61717fdc6d36d84 Mon Sep 17 00:00:00 2001 From: Dan Eastwell Date: Tue, 10 Jul 2012 11:17:02 +0100 Subject: [PATCH] #10 completed adding svg options for colour themes --- _config.yml | 2 +- _includes/global.css | 11 ++++++++--- css/default.css | 8 ++++++++ css/ocean.css | 11 +++++++++-- 4 files changed, 26 insertions(+), 6 deletions(-) diff --git a/_config.yml b/_config.yml index 13699cd..754bd76 100644 --- a/_config.yml +++ b/_config.yml @@ -4,7 +4,7 @@ GITHUB_CURRENT_VERSION: 1.0 GITHUB_PROJECT_URL: https://github.com/dharmafly/dharmafly-docs # The style for your site (currently only default) -THEME: default +THEME: ocean ############ Optional extras diff --git a/_includes/global.css b/_includes/global.css index c3c975c..debf6db 100644 --- a/_includes/global.css +++ b/_includes/global.css @@ -428,7 +428,7 @@ section .permalink:hover { display: block; position: absolute; top: 0; - left: 50%; + left: {{ page.quote_svg_left_pos }}; width:88px; height: 39px; margin: 0; @@ -445,7 +445,7 @@ section .permalink:hover { } .quote:after { - left: 18.6em; + left: {{ page.quote_svg_right_pos }}; -webkit-transform: {{ page.quote_svg_right_transform }}; -moz-transform: {{ page.quote_svg_right_transform }}; -ms-transform: {{ page.quote_svg_right_transform }}; @@ -830,7 +830,12 @@ aside li.code-css span { background-position: right top; background-size: 100%; background-color: transparent; - -webkit-filter: saturate(4.8); + -webkit-filter: {{ page.svg_title_filter }}; + -webkit-transform: {{ page.svg_title_rotation }}; + -moz-transform: {{ page.svg_title_rotation }}; + -ms-transform: {{ page.svg_title_rotation }}; + -o-transform: {{ page.svg_title_rotation }}; + transform: {{ page.svg_title_rotation }}; } footer > div { diff --git a/css/default.css b/css/default.css index 4e555d5..6f46a63 100644 --- a/css/default.css +++ b/css/default.css @@ -30,11 +30,18 @@ icon_border: "#152E16" # svg +# for main title svg svg_asset: nodewing.svg +svg_title_filter: saturate(4.8) +svg_title_rotation: none +# for svg element on left hand side of content svg_asset_size: 100% svg_asset_rotation: 270deg +# for 'wings' above quote, if present quote_svg_left_transform: none quote_svg_right_transform: scaleX(-1) +quote_svg_left_pos: 50% +quote_svg_right_pos: 18.6em # subnav_underline: PHN2ZyB3aWR0aD0iNDAzIiBoZWlnaHQ9IjgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGxpbmUgc3Ryb2tlPSIjN0RCMzc4IiBzdHJva2Utd2lkdGg9IjIiIHgxPSI0IiB5MT0iNCIgeDI9IjQwMCIgeTI9IjQiIC8+PGNpcmNsZSBmaWxsPSIjN0RCMzc4IiBjeD0iNCIgY3k9IjQiIHI9IjQiIC8+PC9zdmc+ @@ -42,6 +49,7 @@ subnav_underline: PHN2ZyB3aWR0aD0iNDAzIiBoZWlnaHQ9IjgiIHhtbG5zPSJodHRwOi8vd3d3Ln # show_subnav_icon: 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjMiIGhlaWdodD0iMjMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+IDxzdHlsZT4gbGluZSwgY2lyY2xlIHsgc3Ryb2tlOiAjN0RCMzc4OyBzdHJva2Utd2lkdGg6IDJweDsgZmlsbDogIzdEQjM3ODsgfSBjaXJjbGUgeyBzdHJva2Utd2lkdGg6IDA7IH0gPC9zdHlsZT4gPGxpbmUgeTI9IjQiIHgyPSIyMyIgeTE9IjQiIHgxPSI0IiAvPiA8bGluZSB5Mj0iMTEiIHgyPSIyMyIgeTE9IjExIiB4MT0iNCIgLz4gPGxpbmUgeTI9IjE4IiB4Mj0iMjMiIHkxPSIxOCIgeDE9IjQiIC8+IDxjaXJjbGUgcj0iMiIgY3k9IjQiIGN4PSI0IiAvPiA8Y2lyY2xlIHI9IjIiIGN5PSIxMSIgY3g9IjQiIC8+IDxjaXJjbGUgcj0iMiIgY3k9IjE4IiBjeD0iNCIgLz4gPC9zdmc+IA==' + # svg element attaching twitter, github buttons to main content # ./svg/icon-stem.svg # icon_stem: 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTAiIGhlaWdodD0iMjQwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPiA8c3R5bGU+cGF0aCB7IHN0cm9rZToJI2RiZTVkNzsgZmlsbDogbm9uZTsgc3Ryb2tlLXdpZHRoOiA5OyB9PC9zdHlsZT4gPHBhdGggIGQ9Im03Ny42NjUwMSwxLjY2OGMwLDAgNiw1Ni42NDA5OSAtMTUuMDk2MDEsOThjLTE4LjEzODk4LDM1LjYwOCAtMzQuMjM2OTgsNjcuNzIyOTkgLTM0LjIzNjk4LDY3LjcyMjk5cy0yMiw0MC42NjgwMyAtMjIsNzAiLz48L3N2Zz4=' diff --git a/css/ocean.css b/css/ocean.css index 6c49292..0b96d8d 100644 --- a/css/ocean.css +++ b/css/ocean.css @@ -30,11 +30,18 @@ icon_border: "#152E16" # svg +# for main title svg svg_asset: nodewing_alt.svg +svg_title_filter: none +svg_title_rotation: rotate(-18deg) +# for svg element on left hand side of content svg_asset_size: 112% svg_asset_rotation: 93deg -quote_svg_left_transform: none -quote_svg_right_transform: scaleX(-1) +# for 'wings' above quote, if present +quote_svg_right_transform: rotate(80deg) +quote_svg_left_transform: rotate(-80deg) scaleX(-1) +quote_svg_left_pos: 46% +quote_svg_right_pos: 19.6em # subnav_underline: PHN2ZyB3aWR0aD0iNDAzIiBoZWlnaHQ9IjgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGxpbmUgc3Ryb2tlPSIjNkM5NEI4IiBzdHJva2Utd2lkdGg9IjIiIHgxPSI0IiB5MT0iNCIgeDI9IjQwMCIgeTI9IjQiIC8+PGNpcmNsZSBmaWxsPSIjNkM5NEI4IiBjeD0iNCIgY3k9IjQiIHI9IjQiIC8+PC9zdmc+