Skip to content
This repository was archived by the owner on Nov 16, 2021. It is now read-only.

Commit 12396aa

Browse files
committed
Updated zurb to beta1
1 parent 304e606 commit 12396aa

24 files changed

+233
-7
lines changed

drupal-org.make.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ projects:
4545
# ---
4646
# Themes
4747
zurb_foundation:
48-
version: 5.x-dev
48+
version: 5.0-beta1
4949
type: theme
5050
subdir: contrib

themes/lightningdemo/README.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ template.php THEMENAME_preprocess_html function.
7171
admin/appearance and click the "Enable and set default" link next to your
7272
new sub-theme.
7373

74+
6. Install and run Compass to compile stylessheets
75+
76+
To write custom SASS, you'll need to install Compass. Instructions for doing
77+
so can be found here: http://compass-style.org/install/
78+
79+
Once installed, you should be able to run "compass watch" and compile your SASS
80+
includes into CSS.
7481

7582
Optional steps:
7683

themes/lightningdemo/css/lightningdemo.css

Whitespace-only changes.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* @file
3+
* Placeholder file for custom sub-theme behaviors.
4+
*
5+
*/
6+
(function ($, Drupal) {
7+
8+
/**
9+
* Use this behavior as a template for custom Javascript.
10+
*/
11+
Drupal.behaviors.exampleBehavior = {
12+
attach: function (context, settings) {
13+
//alert("I'm alive!");
14+
}
15+
};
16+
17+
})(jQuery, Drupal);

themes/lightningdemo/lightningdemo.info.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Lightning Demo
1+
name: Lightning Demo - Foundation sub-theme
22
description: "Custom sub-theme, inherits from the Foundation base theme read <a href=\"http://foundation.zurb.com/docs/index.php\">framework documentation</a>"
33
core: 8.x
44
type: theme
@@ -7,10 +7,9 @@ base theme: zurb_foundation
77
# Image appears on admin/appearance
88
# screenshot: images/screenshot.jpg
99

10-
# Uncomment these lines and change "STARTER" to your theme name if you
11-
# need to add custom CSS or JS
12-
#libraries:
13-
# - STARTER/global
10+
# Uncomment these lines if you need to add custom CSS or JS
11+
libraries:
12+
- lightningdemo/global
1413

1514
# Regions are output in the page.html.twig
1615

@@ -27,6 +26,8 @@ regions:
2726
footer_first: 'Footer first column'
2827
footer_middle: 'Footer middle column'
2928
footer_last: 'Footer last column'
29+
left_off_canvas: 'Left off canvas'
30+
right_off_canvas: 'Right off canvas'
3031
regions_hidden:
3132
page_top: 'Page Top'
3233
page_bottom: 'Page bottom'
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
global:
2+
version: VERSION
3+
css:
4+
base:
5+
css/lightningdemo.css: {}
6+
js:
7+
js/lightningdemo.js: {}
8+
dependencies:
9+
- core/drupal
10+
- core/jquery
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Common abstract classes to extend or parametrics are stored here.
2+
3+
// Example parametrics.
4+
// ------------------------------------------------------
5+
// %font-FONTNAME {}
6+
// %font-sans-serif { font-family: sans-serif; }
7+
// %font-serif { font-family: serif; }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// Place any Drupal-related quirks here.
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
// Elements
2+
//
3+
// Things to review before you write code here:
4+
// - Be sure to load after "foundation" import.
5+
// - Also, before adding styles be sure to modify variables in the
6+
// "base/_common.scss" file. You may not need to write any code.
7+
8+
// Headings
9+
//------------------------------------------
10+
// h1, h2, h3,
11+
// h4, h5, h6 {}
12+
13+
// Anchors
14+
//-----------------------------------------------------------------------------
15+
// a {}
16+
17+
// a:focus {}
18+
19+
// a.active,
20+
// a:active,
21+
// a:hover {}
22+
23+
// Form Input
24+
//-----------------------------------------------------------------------------
25+
// input[type="text"],
26+
// input[type="password"],
27+
// input[type="date"],
28+
// input[type="datetime"],
29+
// input[type="datetime-local"],
30+
// input[type="month"],
31+
// input[type="week"],
32+
// input[type="email"],
33+
// input[type="number"],
34+
// input[type="search"],
35+
// input[type="tel"],
36+
// input[type="time"],
37+
// input[type="url"],
38+
// textarea {
39+
// }
40+
41+
// input[type="text"],
42+
// input[type="password"],
43+
// input[type="date"],
44+
// input[type="datetime"],
45+
// input[type="datetime-local"],
46+
// input[type="month"],
47+
// input[type="week"],
48+
// input[type="email"],
49+
// input[type="number"],
50+
// input[type="search"],
51+
// input[type="tel"],
52+
// input[type="time"],
53+
// input[type="url"],
54+
// textarea {
55+
56+
// }
57+
58+
// select {}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import "../../zurb_foundation/scss/foundation/functions";

0 commit comments

Comments
 (0)