Skip to content
This repository was archived by the owner on Jan 2, 2024. It is now read-only.

Commit 12d9bf6

Browse files
author
Kenneth Veldman
committedJan 21, 2016
Made the package more configurable by adding !default to color variables
1 parent c4b57ce commit 12d9bf6

File tree

2 files changed

+25
-4
lines changed

2 files changed

+25
-4
lines changed
 

‎.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ results
1616
npm-debug.log
1717
node_modules
1818

19+
.bower.json
20+
1921
*.sass_cache
2022
*.scssc

‎sass/_variables.scss

+23-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,27 @@ $item-display-duration: 5 !default; //seconds
22
$transition-duration: 2 !default; // seconds
33
$display-duration: $transition-duration + $item-display-duration;
44

5-
@mixin inactive-button { color: #ccc; color: rgba(255, 255, 255, .4); }
6-
@mixin active-button { color: white; color: rgba(255, 255, 255, .8); }
5+
$gallery-inactive-color: #ccc !default;
6+
$gallery-inactive-transparent-color: white !default;
7+
$gallery-inactive-opacity: 0.4 !default;
8+
$gallery-active-color: white !default;
9+
$gallery-active-transparent-color: white !default;
10+
$gallery-active-opacity: 0.8 !default;
711

8-
%inactive-button { @include inactive-button; }
9-
%active-button { @include active-button; }
12+
@mixin inactive-button {
13+
color: $gallery-inactive-color;
14+
color: rgba($gallery-inactive-transparent-color, $gallery-inactive-opacity);
15+
}
16+
17+
@mixin active-button {
18+
color: $gallery-active-color;
19+
color: rgba($gallery-active-transparent-color, $gallery-active-opacity);
20+
}
21+
22+
%inactive-button {
23+
@include inactive-button;
24+
}
25+
26+
%active-button {
27+
@include active-button;
28+
}

0 commit comments

Comments
 (0)
This repository has been archived.