Browse Source

Setting up basic variables.

pull/214/head
connors 12 years ago
parent
commit
8970301701
  1. 3
      Gruntfile.js
  2. 2
      dist/ratchet.css
  3. 10
      lib/sass/bars.scss
  4. 6
      lib/sass/buttons.scss
  5. 35
      lib/sass/ratchet.scss
  6. 8
      lib/sass/segmented-controllers.scss
  7. 3
      package.json

3
Gruntfile.js

@ -58,7 +58,8 @@ module.exports = function(grunt) {
} }
}); });
// Load the plugin that provides the "uglify" task. // Load the plugins
grunt.loadNpmTasks('grunt-jekyll');
grunt.loadNpmTasks('grunt-contrib-sass'); grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-concat');

2
dist/ratchet.css vendored

@ -152,7 +152,7 @@ a {
z-index: 10; z-index: 10;
height: 44px; height: 44px;
padding: 5px; padding: 5px;
background-color: rgba(247, 247, 247, 0.98); background-color: rgba(247, 247, 247, 0.18);
box-shadow: 0 0px 1px rgba(0, 0, 0, 0.85); box-shadow: 0 0px 1px rgba(0, 0, 0, 0.85);
box-sizing: border-box; } box-sizing: border-box; }

10
lib/sass/bars.scss

@ -8,7 +8,7 @@
z-index: 10; z-index: 10;
height: 44px; height: 44px;
padding: 5px; padding: 5px;
background-color: rgba(247,247,247,.98); background-color: $chrome-color;
box-shadow: 0 0px 1px rgba(0,0,0,.85); box-shadow: 0 0px 1px rgba(0,0,0,.85);
box-sizing: border-box; box-sizing: border-box;
} }
@ -113,7 +113,7 @@
color: #929292; color: #929292;
} }
.tab-item.active .tab-label { .tab-item.active .tab-label {
color: #007aff; color: $app-color;
} }
/* Buttons in title bars /* Buttons in title bars
@ -128,7 +128,7 @@
font-size: 16px; font-size: 16px;
font-weight: 400; font-weight: 400;
line-height: 29px; line-height: 29px;
color: #007aff; color: $app-color;
border: 0; border: 0;
transition: opacity .2s linear; transition: opacity .2s linear;
-webkit-box-flex: 0; -webkit-box-flex: 0;
@ -150,7 +150,7 @@
.bar-title .button:active, .bar-title .button:active,
.bar-title .button-prev:active, .bar-title .button-prev:active,
.bar-title .button-next:active { .bar-title .button-next:active {
color: #007aff; color: $app-color;
background-color: transparent; background-color: transparent;
opacity: .3; opacity: .3;
} }
@ -166,7 +166,7 @@
display: block; display: block;
width: 15px; width: 15px;
height: 3px; height: 3px;
background-color: #007aff; background-color: $app-color;
content: ''; content: '';
} }

6
lib/sass/buttons.scss

@ -35,8 +35,8 @@
// Main button // Main button
.button-main { .button-main {
color: #007aff; color: $app-color;
border: 1px solid #007aff; border: 1px solid $app-color;
} }
// Positive button // Positive button
@ -60,7 +60,7 @@
} }
.button-main:active { .button-main:active {
color: #fff; color: #fff;
background-color: #007aff; background-color: $app-color;
} }
.button-positive:active { .button-positive:active {
color: #fff; color: #fff;

35
lib/sass/ratchet.scss

@ -1,19 +1,22 @@
// Base CSS & Reset // Variables
@import "base.scss"; $app-color: #007aff;
$chrome-color: rgba(247,247,247,.98);
// Components // Base CSS & Reset
@import "bars.scss"; @import "base.scss";
@import "lists.scss";
@import "forms.scss";
@import "buttons.scss";
@import "chevrons.scss";
@import "counts.scss";
@import "segmented-controllers.scss";
@import "popovers.scss";
// Javascript components // Components
@import "modals.scss"; @import "bars.scss";
@import "sliders.scss"; @import "lists.scss";
@import "toggles.scss"; @import "forms.scss";
@import "push.scss"; @import "buttons.scss";
@import "chevrons.scss";
@import "counts.scss";
@import "segmented-controllers.scss";
@import "popovers.scss";
// Javascript components
@import "modals.scss";
@import "sliders.scss";
@import "toggles.scss";
@import "push.scss";

8
lib/sass/segmented-controllers.scss

@ -10,7 +10,7 @@
font-weight: bold; font-weight: bold;
list-style: none; list-style: none;
background-color: transparent; background-color: transparent;
border: 1px solid #007aff; border: 1px solid $app-color;
border-radius: 4px; border-radius: 4px;
-webkit-box-orient: horizontal; -webkit-box-orient: horizontal;
box-orient: horizontal; box-orient: horizontal;
@ -21,7 +21,7 @@
overflow: hidden; overflow: hidden;
text-align: center; text-align: center;
white-space: nowrap; white-space: nowrap;
border-left: 1px solid #007aff; border-left: 1px solid $app-color;
-webkit-box-flex: 1; -webkit-box-flex: 1;
box-flex: 1; box-flex: 1;
} }
@ -32,7 +32,7 @@
padding: 8px 16px; padding: 8px 16px;
overflow: hidden; overflow: hidden;
line-height: 15px; line-height: 15px;
color: #007aff; color: $app-color;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
@ -43,7 +43,7 @@
// Active segment of controller // Active segment of controller
.segmented-controller li.active { .segmented-controller li.active {
background-color: #007aff; background-color: $app-color;
transition: background-color .2s linear; transition: background-color .2s linear;
} }
// Set color of links to white // Set color of links to white

3
package.json

@ -8,7 +8,8 @@
"grunt-contrib-nodeunit": "~0.2.0", "grunt-contrib-nodeunit": "~0.2.0",
"grunt-contrib-sass": "~0.5.0", "grunt-contrib-sass": "~0.5.0",
"grunt-contrib-watch": "~0.5.3", "grunt-contrib-watch": "~0.5.3",
"grunt-contrib-concat": "~0.3.0" "grunt-contrib-concat": "~0.3.0",
"grunt-jekyll": "~0.3.9"
}, },
"keywords": [ "keywords": [
"ratchet", "ratchet",

Loading…
Cancel
Save