Compare commits

..

57 Commits

Author SHA1 Message Date
Sabina Talipova
88fe457a90 Merge 3.2 into master 2022-12-16 11:58:33 +13:00
Guy Sartorelli
64680a4683
Merge pull request #72 from creative-commoners/pulls/master/remove-branch-alias
DEP Remove branch alias
2022-08-09 11:47:34 +12:00
Steve Boyd
12309dd08f DEP Remove branch alias 2022-08-09 11:03:19 +12:00
Steve Boyd
d1a0e9ac7c Merge branch '3.1' into 3.2 2022-08-02 18:41:41 +12:00
Guy Sartorelli
ac99fc50e6
Merge pull request #71 from creative-commoners/pulls/3.1/standardise-modules
MNT Standardise modules
2022-08-02 14:35:53 +12:00
Steve Boyd
30a6fca74a MNT Standardise modules 2022-08-01 10:01:40 +12:00
Daniel Hensby
38e53dccb2
Merge pull request #69 from Michael-HEIW/fix-a11y
FIX Add accessibility fixes
2022-03-29 08:53:51 +01:00
Michael Pritchard (HEIW)
dcb26096f5 Add accessibility fixes
- Make the font colour in the footer darker
- change the hamburger span in the header to a button
- update the javascript to select the button
- update the meta viewport to the latest recommended method
- Undo unrelated changes
2021-10-04 11:09:58 +01:00
Damian Mooyman
dd28f3f3c2
Merge pull request #67 from manuth/master
Use the `$ThemeDir` variable instead of a static path
2019-04-29 10:14:38 +12:00
Manuel Thalmann
295e85fa5d Use $resourceURL instead of $ThemeDir 2019-04-25 09:36:34 +02:00
Manuel Thalmann
cec5126dbc Use the $ThemeDir variable instead of a static path
This commit fixes issue #66.
2019-04-15 16:58:16 +02:00
Robbie Averill
319197a30e
Merge pull request #63 from jrson83/master
UserForms radio button required fix
2018-12-20 09:06:28 +00:00
Jrson
0328ca9155
UserForms radio button required fix
silverstripe/silverstripe-userforms#840
2018-12-20 09:45:05 +01:00
Robbie Averill
179fe14554
Merge pull request #62 from creative-commoners/pulls/3.2/remove-search-default
FIX Remove search field value related logic, a placeholder is used instead now
2018-11-26 11:51:13 +01:00
Robbie Averill
b32fe38ea2 FIX Remove search field value related logic, a placeholder is used instead now 2018-11-16 17:23:50 +02:00
Serge Latyntsev
ca2e630a12
Merge pull request #59 from open-sausages/pulls/3.2/in-the-box-to-the-left
Update text alignment class names
2018-11-12 10:56:45 +13:00
Luke Edwards
374679f873 Update text alignment class names 2018-11-05 09:05:13 +13:00
Daniel Hensby
64ec4e16e0
Update branch alias 2018-06-29 11:48:05 +01:00
Daniel Hensby
5a6b34cd00
Merge pull request #58 from Juanitou/css-fixes
CSS minor fixes
2018-06-25 21:55:43 +01:00
Juanitou
bb4c7d2aa0 Revert "Use 'transform: scale' instead of unofficial 'zoom'"
This reverts commit 3f71bdcce1.
2018-06-21 17:44:57 +02:00
Juanitou
88a48f799b Whitespace fixes in layout.css 2018-06-21 11:03:29 +02:00
Juanitou
5f4b528394 Remove deprecated border-radius declarations in layout.css 2018-06-21 10:49:03 +02:00
Juanitou
ea81cd7022 Remove deprecated box-shadow declarations in form.css 2018-06-21 10:43:08 +02:00
Juanitou
3f71bdcce1 Use 'transform: scale' instead of unofficial 'zoom' 2018-06-21 10:04:05 +02:00
Robbie Averill
e4b3aa2d6c
Merge pull request #1 from silverstripe-security/pulls/3.2/update-jquery
[SS-2018-015] Update jQuery version
2018-05-30 12:13:44 +12:00
Dylan Wagstaff
d8eb29e57c [SS-2018-015] Update jQuery version
The old jQuery version is critically out of date, and there are no
blockers to updating it (utilised sections of the library are fully
backwards compatible). This commit updates to the latest stable release.
2018-04-27 09:12:59 +12:00
Daniel Hensby
4d546a4e52
Merge branch '3.1' 2018-03-21 12:34:28 +00:00
Daniel Hensby
4f723b68e4
Merge branch '3.0' into 3.1 2018-03-21 12:26:06 +00:00
Daniel Hensby
0266065973
Merge branch '2.4' into 3.0 2018-03-21 12:11:49 +00:00
Daniel Hensby
096eaf4808
Merge branch '2.3' into 2.4 2018-03-21 12:08:07 +00:00
Damian Mooyman
dd0b1a5352
Merge pull request #53 from dhensby/pulls/2.3/remove-spam-link
FIX Remove link in footer that goes to spammy site
2018-03-21 10:07:09 +13:00
Daniel Hensby
451d22badd
FIX Remove link in footer that goes to spammy site 2018-03-19 19:10:18 +00:00
Aaron Carlino
c2fdd14e9a
Merge pull request #51 from open-sausages/pulls/3.2/add-exposes
ENHANCEMENT Declare exposed folders necessary for public webroot
2018-01-12 14:59:25 +13:00
Damian Mooyman
09c670976e
Merge remote-tracking branch 'origin/3.1' 2018-01-12 10:48:41 +13:00
Damian Mooyman
71653cf97b
ENHANCEMENT Declare exposed folders necessary for public webroot 2017-12-21 13:27:03 +13:00
Chris Joe
ef3573434c
Merge pull request #50 from open-sausages/pulls/remove-class
API Use ShortName of class instead of FQN for body class property
2017-11-15 21:37:24 +13:00
Damian Mooyman
b0458e071d
API Use ShortName of class instead of FQN for body class property
Fixes https://github.com/silverstripe/silverstripe-framework/issues/7586
2017-11-15 11:34:36 +13:00
Damian Mooyman
44a6eabbd5 Merge pull request #48 from robbieaverill/feature/ss4-compat
FIX Remove $ThemeDir use from Page template
2017-02-02 12:56:41 +13:00
Robbie Averill
9c2b75be7c FIX Remove $ThemeDir use from Page template 2017-02-01 09:43:02 +13:00
Damian Mooyman
509dfe9ddc Fix for 3.5 compat (#47) 2016-11-02 11:39:39 +13:00
Damian Mooyman
7e3932c5d5 API Remove script.js placeholder (#46) 2016-11-01 17:16:12 +13:00
Damian Mooyman
302878a132 Merge pull request #45 from thezenmonkey/patch-2
UPDATE remove protocol from jquery request
2016-11-01 14:49:20 +13:00
Richard Rudy
b0cf4c88fb UPDATE remove protocol from jquery request
With the increased focus on SSL, it's probably best not define http in the equest and let the page use the current protocol
2016-09-28 09:37:26 -04:00
Damian Mooyman
67cd1e08a6 Alias master as 3.2 (#44) 2016-09-20 10:20:26 +12:00
Sam Minnée
fb408144d1 Merge pull request #42 from open-sausages/webpack
Use jQuery from CDN rather than framework
2016-09-16 13:23:14 +12:00
Ingo Schommer
06cc25449f Use jQuery from CDN rather than framework
Static asset paths in framework aren't a public API,
and hence shouldn't be relied on by other modules.

The template already includes some shim JS from the web,
so this doesn't change the fact that you need a network connection
to fully use the default theme.
2016-09-15 15:31:50 +12:00
Damian Mooyman
c8f07c500f Merge pull request #41 from helpfulrobot/add-standard-code-of-conduct-file
Added standard code of conduct file
2016-02-17 11:42:40 +13:00
helpfulrobot
4e5f2c9755 Added standard code of conduct file 2016-02-16 11:41:47 +13:00
Damian Mooyman
98c08b5905 Merge pull request #40 from helpfulrobot/add-standard-editorconfig-file
Added standard .editorconfig file
2015-12-17 13:28:44 +13:00
helpfulrobot
fb4f0ae1dc Added standard .editorconfig file 2015-12-17 10:05:47 +13:00
Damian Mooyman
9f471eb4cc Merge pull request #38 from open-sausages/master
fix 'clear' button styles
2015-08-17 11:26:45 +12:00
scott1702
3018fa95a9 fix 'clear' button styles 2015-08-17 11:18:54 +12:00
Paul
8138203167 Merge pull request #36 from tractorcow/pulls/error
Use preferred 'error' style for messages
2015-07-29 15:29:55 +12:00
Damian Mooyman
4d116e54a2 Use preferred 'error' style for messages 2015-07-29 15:16:44 +12:00
Damian Mooyman
5bf81665d7 Merge pull request #33 from peavers/master
Fix: jquery.browser for when newer versions of jquery are used.
2015-07-02 12:04:59 +12:00
Chris Turner
52e9280c8e Adds jquery.browser for when newer versions of jquery are used. 2015-04-09 10:05:45 +12:00
Ingo Schommer
294c6e5c42 MINOR 2.4 backwards compat syntax 2012-03-28 22:36:53 +02:00
12 changed files with 140 additions and 63 deletions

17
.editorconfig Normal file
View File

@ -0,0 +1,17 @@
# For more information about the properties used in this file,
# please see the EditorConfig documentation:
# http://editorconfig.org
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[{*.yml,package.json}]
indent_size = 2
# The indent size used in the package.json file cannot be changed:
# https://github.com/npm/npm/pull/3180#issuecomment-16336516

View File

@ -1,6 +1,6 @@
# Using the Simple theme # Using the Simple theme
* Copy the theme into the `themes/` directory of your SilverStripe project. If you've named it correctly, there should be a directory called `themes/simple/templates`. * Copy the theme into the `themes/` directory of your Silverstripe project. If you've named it correctly, there should be a directory called `themes/simple/templates`.
* Add the following to your `mysite/_config.php` file. Remove any existing `SSViewer::set_theme` lines. * Add the following to your `mysite/_config.php` file. Remove any existing `SSViewer::set_theme` lines.

1
code-of-conduct.md Normal file
View File

@ -0,0 +1 @@
When having discussions about this module in issues or pull request please adhere to the [SilverStripe Community Code of Conduct](https://docs.silverstripe.org/en/contributing/code_of_conduct).

View File

@ -2,16 +2,27 @@
"name": "silverstripe-themes/simple", "name": "silverstripe-themes/simple",
"description": "The SilverStripe simple theme (default SilverStripe 3 theme)", "description": "The SilverStripe simple theme (default SilverStripe 3 theme)",
"type": "silverstripe-theme", "type": "silverstripe-theme",
"keywords": ["silverstripe", "theme"], "keywords": [
"silverstripe",
"theme"
],
"license": "BSD-3-Clause", "license": "BSD-3-Clause",
"authors": [ "authors": [
{ {
"name": "Sara Tušar (Innovaif)", "name": "Sara Tu\u0161ar (Innovaif)",
"homepage": "http://www.saratusar.com" "homepage": "http://www.saratusar.com"
} }
], ],
"require": { "require": {
"composer/installers": "*", "composer/installers": "*",
"silverstripe/framework": ">=3.0" "silverstripe/framework": ">=3.5"
},
"extra": {
"expose": [
"css",
"images",
"javascript",
"webfonts"
]
} }
} }

View File

@ -88,7 +88,9 @@ form .message {
background-color: #ecf9d0; background-color: #ecf9d0;
border-color: #8fbe00; border-color: #8fbe00;
} }
form .bad, form .required { form .bad,
form .required,
form .error {
background-color: #f9d0d0; background-color: #f9d0d0;
border-color: #cf0000; border-color: #cf0000;
color: #b80000; color: #b80000;
@ -99,7 +101,7 @@ form .message {
.Actions { .Actions {
margin-bottom: 20px; margin-bottom: 20px;
} }
a.btn, button, input[type="submit"], .Actions .action { a.btn, button, input[type="submit"], input[type="reset"], .Actions .action {
background: #b80000; background: #b80000;
color: #fff; color: #fff;
display: inline-block; display: inline-block;
@ -196,7 +198,7 @@ form .date .middleColumn input {
font-size: 13px; /* reset to default */ font-size: 13px; /* reset to default */
color: #333; /* reset to default */ color: #333; /* reset to default */
} }
form .requiredField label.left:after { /* pseudo element adds an asterisk to a required fields label */ form .requiredField label.left:after, form .requiredField legend.left:after { /* pseudo element adds an asterisk to a required fields label */
color: #B94A48; color: #B94A48;
content: "*"; content: "*";
font-size: 14px; font-size: 14px;
@ -244,8 +246,6 @@ form input.holder-required { /* This class needs to be changed - is used
input:invalid, input:invalid,
textarea:invalid { textarea:invalid {
border-radius: 1px; border-radius: 1px;
-moz-box-shadow: 0px 0px 5px red;
-webkit-box-shadow: 0px 0px 5px red;
box-shadow: 0px 0px 5px red; box-shadow: 0px 0px 5px red;
} }
.no-boxshadow input:invalid, .no-boxshadow input:invalid,

View File

@ -183,7 +183,6 @@ body {
color: #888; color: #888;
margin: 0; margin: 0;
border: none; border: none;
-moz-border-radius: 14px;
border-radius: 14px; border-radius: 14px;
background: #fff; background: #fff;
} }
@ -425,14 +424,14 @@ body h1 span.amp {
/* FOOTER */ /* FOOTER */
.footer { .footer {
color: #999; color: #6B6B6B;
background: #ededed; background: #ededed;
padding: 20px 0; padding: 20px 0;
font-size: 11px; font-size: 11px;
line-height: 22px; line-height: 22px;
} }
.footer a { .footer a {
color: #999; color: #6B6B6B;
} }
.footer a:hover { .footer a:hover {
color: #B90000; color: #B90000;
@ -522,7 +521,7 @@ body h1 span.amp {
display:table; /* displays the pagination as a table so that elements stay inline and the middle column adjusts its size to accomodate and the right arrow stays to the right */ display:table; /* displays the pagination as a table so that elements stay inline and the middle column adjusts its size to accomodate and the right arrow stays to the right */
width:100%; width:100%;
} }
.searchResults #PageNumbers .pagination span{ .searchResults #PageNumbers .pagination button{
display:table-cell; /* each element in the pagination div displays as a table cell */ display:table-cell; /* each element in the pagination div displays as a table cell */
} }
.searchResults #PageNumbers p { .searchResults #PageNumbers p {
@ -594,7 +593,7 @@ body h1 span.amp {
padding-right: 100px; /* padding stops .brand text from overlapping the search and nav buttons */ padding-right: 100px; /* padding stops .brand text from overlapping the search and nav buttons */
} }
.tablet-nav .header { .tablet-nav .header {
padding: 0px; padding: 0;
} }
.tablet-nav .header .inner { .tablet-nav .header .inner {
padding: 20px 0 0 0; padding: 20px 0 0 0;
@ -612,6 +611,9 @@ body h1 span.amp {
font-family: 'WebSymbolsRegular'; font-family: 'WebSymbolsRegular';
font-size: 20px; font-size: 20px;
color: #ededed; color: #ededed;
background: #000;
margin-top: 0;
padding: 0;
} }
.tablet-nav .header .primary ul { .tablet-nav .header .primary ul {
z-index: 10; z-index: 10;
@ -719,8 +721,7 @@ body h1 span.amp {
border: 1px solid #e5e5e5; border: 1px solid #e5e5e5;
background: #fff; background: #fff;
font-size: 17px; font-size: 17px;
-moz-border-radius: 20px; /* increase border radius due to increased padding */ border-radius: 20px; /* increase border radius due to increased padding */
border-radius: 20px;
} }
.search-bar form input.action { .search-bar form input.action {
right: 5%; right: 5%;

View File

@ -144,13 +144,13 @@ body {
/* WYSIWYG EDITOR ALIGNMENT CLASSES /* WYSIWYG EDITOR ALIGNMENT CLASSES
-------------------------------------------- */ -------------------------------------------- */
.typography .left { .typography .text-left {
text-align: left text-align: left
} }
.typography .center { .typography .text-center {
text-align: center text-align: center
} }
.typography .right { .typography .text-right {
text-align: right text-align: right
} }

View File

@ -2,26 +2,13 @@ jQuery.noConflict();
(function($) { (function($) {
$(document).ready(function() { $(document).ready(function() {
/* removes text from search form on focus and replaces it on unfocus - if text is entered then it does not get replaced with default on unfocus */ // L is a magnifying glass icon in the font
$('#SearchForm_SearchForm_action_results').val('L'); $('#SearchForm_SearchForm_action_results').val('L');
var searchField = $('#SearchForm_SearchForm_Search');
var default_value = searchField.val();
searchField.focus(function() {
$(this).addClass('active');
if(searchField.val() == default_value) {
searchField.val('');
}
});
searchField.blur(function() {
if(searchField.val() == '') {
searchField.val(default_value);
}
});
if (!$.browser.msie || ($.browser.msie && (parseInt($.browser.version, 10) > 8))) { if (!$.browser.msie || ($.browser.msie && (parseInt($.browser.version, 10) > 8))) {
var searchBarButton = $("span.search-dropdown-icon"); var searchBarButton = $("button.search-dropdown-icon");
var searchBar = $('div.search-bar'); var searchBar = $('div.search-bar');
var menuButton = $("span.nav-open-button"); var menuButton = $("button.nav-open-button");
var menu = $('.header .primary ul'); var menu = $('.header .primary ul');
var mobile = false; var mobile = false;
var changed = false; var changed = false;
@ -84,4 +71,65 @@ jQuery.noConflict();
}); });
} }
}); });
// ---------------------------------------------------------
// Use of jQuery.browser is frowned upon.
// More details: http://api.jquery.com/jQuery.browser
// jQuery.uaMatch maintained for back-compat
jQuery.uaMatch = function( ua ) {
ua = ua.toLowerCase();
var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) ||
/(webkit)[ \/]([\w.]+)/.exec( ua ) ||
/(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) ||
/(msie) ([\w.]+)/.exec( ua ) ||
ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) ||
[];
return {
browser: match[ 1 ] || "",
version: match[ 2 ] || "0"
};
};
matched = jQuery.uaMatch( navigator.userAgent );
browser = {};
if ( matched.browser ) {
browser[ matched.browser ] = true;
browser.version = matched.version;
}
// Chrome is Webkit, but Webkit is also Safari.
if ( browser.chrome ) {
browser.webkit = true;
} else if ( browser.webkit ) {
browser.safari = true;
}
jQuery.browser = browser;
jQuery.sub = function() {
function jQuerySub( selector, context ) {
return new jQuerySub.fn.init( selector, context );
}
jQuery.extend( true, jQuerySub, this );
jQuerySub.superclass = this;
jQuerySub.fn = jQuerySub.prototype = this();
jQuerySub.fn.constructor = jQuerySub;
jQuerySub.sub = this.sub;
jQuerySub.fn.init = function init( selector, context ) {
if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {
context = jQuerySub( context );
}
return jQuery.fn.init.call( this, selector, context, rootjQuerySub );
};
jQuerySub.fn.init.prototype = jQuerySub.fn;
var rootjQuerySub = jQuerySub(document);
return jQuerySub;
};
// ---------------------------------------------------------
}(jQuery)); }(jQuery));

View File

@ -4,7 +4,7 @@
<div class="left"> <div class="left">
<a href="$BaseHref" class="brand" rel="home">$SiteConfig.Title</a> <a href="$BaseHref" class="brand" rel="home">$SiteConfig.Title</a>
<span class="arrow">&rarr;</span> <% include Navigation %></div> <span class="arrow">&rarr;</span> <% include Navigation %></div>
<small class="right"><a href="http://simple.innovatif.com/about/">Theme</a> by <a href="http://www.saratusar.com">Sara</a> (Innovatif) / Powered by <a href="http://silverstripe.org">SilverStripe</a></small> <small class="right"><a href="http://simple.innovatif.com/about/">Theme</a> by Sara (Innovatif) / Powered by <a href="http://silverstripe.org">SilverStripe</a></small>
</div> </div>
</div> </div>
</footer> </footer>

View File

@ -8,7 +8,7 @@
<% end_if %> <% end_if %>
</a> </a>
<% if $SearchForm %> <% if $SearchForm %>
<span class="search-dropdown-icon">L</span> <button class="search-dropdown-icon">L</button>
<div class="search-bar"> <div class="search-bar">
$SearchForm $SearchForm
</div> </div>

View File

@ -1,5 +1,5 @@
<nav class="primary"> <nav class="primary">
<span class="nav-open-button">²</span> <button class="nav-open-button">²</button>
<ul> <ul>
<% loop $Menu(1) %> <% loop $Menu(1) %>
<li class="$LinkingMode"><a href="$Link" title="$Title.XML">$MenuTitle.XML</a></li> <li class="$LinkingMode"><a href="$Link" title="$Title.XML">$MenuTitle.XML</a></li>

View File

@ -16,7 +16,7 @@ Change it, enhance it and most importantly enjoy it!
<% base_tag %> <% base_tag %>
<title><% if $MetaTitle %>$MetaTitle<% else %>$Title<% end_if %> &raquo; $SiteConfig.Title</title> <title><% if $MetaTitle %>$MetaTitle<% else %>$Title<% end_if %> &raquo; $SiteConfig.Title</title>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
$MetaTags(false) $MetaTags(false)
<!--[if lt IE 9]> <!--[if lt IE 9]>
@ -26,9 +26,9 @@ Change it, enhance it and most importantly enjoy it!
<% require themedCSS('typography') %> <% require themedCSS('typography') %>
<% require themedCSS('form') %> <% require themedCSS('form') %>
<% require themedCSS('layout') %> <% require themedCSS('layout') %>
<link rel="shortcut icon" href="$ThemeDir/images/favicon.ico" /> <link rel="shortcut icon" href="$resourceURL('themes/simple/images/favicon.ico')" />
</head> </head>
<body class="$ClassName<% if not $Menu(2) %> no-sidebar<% end_if %>" <% if $i18nScriptDirection %>dir="$i18nScriptDirection"<% end_if %>> <body class="$ClassName.ShortName<% if not $Menu(2) %> no-sidebar<% end_if %>" <% if $i18nScriptDirection %>dir="$i18nScriptDirection"<% end_if %>>
<% include Header %> <% include Header %>
<div class="main" role="main"> <div class="main" role="main">
<div class="inner typography line"> <div class="inner typography line">
@ -37,9 +37,8 @@ Change it, enhance it and most importantly enjoy it!
</div> </div>
<% include Footer %> <% include Footer %>
<% require javascript('framework/thirdparty/jquery/jquery.js') %> <% require javascript('//code.jquery.com/jquery-3.3.1.min.js') %>
<%-- Please move: Theme javascript (below) should be moved to mysite/code/page.php --%> <% require themedJavascript('script') %>
<script type="text/javascript" src="{$ThemeDir}/javascript/script.js"></script>
</body> </body>
</html> </html>