Merge pull request #77 from mandrew/feature/toolbar-changes

toolbar design update
This commit is contained in:
Cam Findlay 2015-10-12 15:26:38 +13:00
commit 67d17f3ea2
4 changed files with 54 additions and 35 deletions

View File

@ -2,14 +2,36 @@
After: After:
- toolbar/* - toolbar/*
--- ---
GlobalNav:
hostname: '//www.silverstripe.org/'
css_path: '/themes/ssv3/css/toolbar.css'
snippet_path: '/assets'
use_localhost: false
GlobalNavTemplateProvider: GlobalNavTemplateProvider:
connection_timeout: 2000 connection_timeout: 2000
transfer_timeout: 6000 transfer_timeout: 6000
SiteController: SiteController:
extensions: extensions:
- GlobalNavExtension - GlobalNavExtension
---
Only:
environment: dev
---
GlobalNav:
hostname: '//ssorg.dev/'
css_path: '/themes/ssv3/css/toolbar.min.css'
snippet_path: '/assets'
use_localhost: false
---
Only:
environment: test
---
GlobalNav:
hostname: '//sssites-ssorg-uat.sites.silverstripe.com/'
css_path: '/themes/ssv3/css/toolbar.min.css'
snippet_path: '/assets'
use_localhost: false
---
Only:
environment: live
---
GlobalNav:
hostname: '//www.silverstripe.org/'
css_path: '/themes/ssv3/css/toolbar.min.css'
snippet_path: '/assets'
use_localhost: false

View File

@ -6,7 +6,7 @@
"ext-mbstring": "*", "ext-mbstring": "*",
"silverstripe/docsviewer": "1.0.1@stable", "silverstripe/docsviewer": "1.0.1@stable",
"silverstripe/framework": "3.1.*@stable", "silverstripe/framework": "3.1.*@stable",
"silverstripe/toolbar": "3.0.*@stable" "silverstripe/toolbar": "^4.0"
}, },
"require-dev": { "require-dev": {
"phpunit/PHPUnit": "~3.7@stable" "phpunit/PHPUnit": "~3.7@stable"

51
composer.lock generated
View File

@ -4,7 +4,8 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"hash": "2ab3b01a5dd130a4a16bded53ab63508", "hash": "0be2b6b2c16bb78fa33b01b6010049b0",
"content-hash": "09785a5677261c87f8d63483bc4635c2",
"packages": [ "packages": [
{ {
"name": "composer/installers", "name": "composer/installers",
@ -227,21 +228,21 @@
}, },
{ {
"name": "silverstripe/framework", "name": "silverstripe/framework",
"version": "3.1.13", "version": "3.1.15",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/silverstripe/silverstripe-framework.git", "url": "https://github.com/silverstripe/silverstripe-framework.git",
"reference": "04b803dfc6dc60f2e6a38fa74f957156230b54be" "reference": "c2a407a01b362981d070d6062fef52c8679e4a2b"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/silverstripe/silverstripe-framework/zipball/04b803dfc6dc60f2e6a38fa74f957156230b54be", "url": "https://api.github.com/repos/silverstripe/silverstripe-framework/zipball/c2a407a01b362981d070d6062fef52c8679e4a2b",
"reference": "04b803dfc6dc60f2e6a38fa74f957156230b54be", "reference": "c2a407a01b362981d070d6062fef52c8679e4a2b",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"composer/installers": "*", "composer/installers": "*",
"php": ">=5.3.2" "php": ">=5.3.2,<7"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "~3.7@stable" "phpunit/phpunit": "~3.7@stable"
@ -272,20 +273,20 @@
"framework", "framework",
"silverstripe" "silverstripe"
], ],
"time": "2015-05-28 06:59:11" "time": "2015-09-18 02:51:04"
}, },
{ {
"name": "silverstripe/toolbar", "name": "silverstripe/toolbar",
"version": "3.0.5", "version": "4.0.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/silverstripe/silverstripe-globaltoolbar.git", "url": "https://github.com/silverstripe/silverstripe-globaltoolbar.git",
"reference": "aad67d0ebd2c1d469f732934f249836f636549fd" "reference": "739fcafcae112cd01010e3808c244bf5385796ae"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/zipball/aad67d0ebd2c1d469f732934f249836f636549fd", "url": "https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/zipball/739fcafcae112cd01010e3808c244bf5385796ae",
"reference": "aad67d0ebd2c1d469f732934f249836f636549fd", "reference": "739fcafcae112cd01010e3808c244bf5385796ae",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -313,10 +314,10 @@
"silverstripe" "silverstripe"
], ],
"support": { "support": {
"source": "https://github.com/silverstripe/silverstripe-globaltoolbar/tree/3.0.5", "source": "https://github.com/silverstripe/silverstripe-globaltoolbar/tree/master",
"issues": "https://github.com/silverstripe/silverstripe-globaltoolbar/issues" "issues": "https://github.com/silverstripe/silverstripe-globaltoolbar/issues"
}, },
"time": "2015-07-08 02:55:08" "time": "2015-10-11 21:48:24"
}, },
{ {
"name": "unclecheese/display-logic", "name": "unclecheese/display-logic",
@ -515,16 +516,16 @@
}, },
{ {
"name": "phpunit/php-timer", "name": "phpunit/php-timer",
"version": "1.0.6", "version": "1.0.7",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/php-timer.git", "url": "https://github.com/sebastianbergmann/php-timer.git",
"reference": "83fe1bdc5d47658b727595c14da140da92b3d66d" "reference": "3e82f4e9fc92665fafd9157568e4dcb01d014e5b"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/83fe1bdc5d47658b727595c14da140da92b3d66d", "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3e82f4e9fc92665fafd9157568e4dcb01d014e5b",
"reference": "83fe1bdc5d47658b727595c14da140da92b3d66d", "reference": "3e82f4e9fc92665fafd9157568e4dcb01d014e5b",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -552,7 +553,7 @@
"keywords": [ "keywords": [
"timer" "timer"
], ],
"time": "2015-06-13 07:35:30" "time": "2015-06-21 08:01:12"
}, },
{ {
"name": "phpunit/php-token-stream", "name": "phpunit/php-token-stream",
@ -739,21 +740,18 @@
"version": "2.8.x-dev", "version": "2.8.x-dev",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/Yaml.git", "url": "https://github.com/symfony/yaml.git",
"reference": "000e7fc2653335cd42c6d21405dac1c74224a387" "reference": "725887b209844abda9d864de722515d0fc13dd75"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/Yaml/zipball/000e7fc2653335cd42c6d21405dac1c74224a387", "url": "https://api.github.com/repos/symfony/yaml/zipball/725887b209844abda9d864de722515d0fc13dd75",
"reference": "000e7fc2653335cd42c6d21405dac1c74224a387", "reference": "725887b209844abda9d864de722515d0fc13dd75",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.3.9" "php": ">=5.3.9"
}, },
"require-dev": {
"symfony/phpunit-bridge": "~2.7|~3.0.0"
},
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
@ -781,7 +779,7 @@
], ],
"description": "Symfony Yaml Component", "description": "Symfony Yaml Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2015-07-01 14:16:54" "time": "2015-10-11 08:29:26"
} }
], ],
"aliases": [], "aliases": [],
@ -789,7 +787,6 @@
"stability-flags": { "stability-flags": {
"silverstripe/docsviewer": 0, "silverstripe/docsviewer": 0,
"silverstripe/framework": 0, "silverstripe/framework": 0,
"silverstripe/toolbar": 0,
"phpunit/phpunit": 0 "phpunit/phpunit": 0
}, },
"prefer-stable": false, "prefer-stable": false,

View File

@ -11,8 +11,8 @@
<body class="theme-theme1"> <body class="theme-theme1">
<header data-0="background-position: 50% 50%;" data-544="background-position: 50% -30%;"> <header class="site-header" data-0="background-position: 50% 50%;" data-544="background-position: 50% -30%;">
<div class="global-nav header-mask"> <div class="header-mask">
<div id="navWrapper"> <div id="navWrapper">
$GlobalNav('doc') $GlobalNav('doc')
<% include SearchBox %> <% include SearchBox %>