Browse Source

The beginnings of the classic theme.

pull/214/head
connors 11 years ago
parent
commit
5544b34a87
  1. 3
      Gruntfile.js
  2. 2
      dist/ratchet.js
  3. 112
      dist/theme-classic.css
  4. 1
      examples/app-classic/checkout.html
  5. 1
      examples/app-classic/choose-movie.html
  6. 1
      examples/app-classic/choose-theater.html
  7. 1
      examples/app-classic/index.html
  8. 3
      examples/app-classic/settings.html
  9. 2
      examples/app-default/settings.html
  10. 1
      examples/app-default/theaters.html
  11. 5
      examples/components/classic/index.html
  12. 22
      examples/components/classic/modals.html
  13. 4
      examples/components/default/index.html
  14. 21
      examples/components/default/modals.html
  15. 169
      lib/sass/theme-classic.scss

3
Gruntfile.js

@ -44,7 +44,8 @@ module.exports = function(grunt) {
}, },
dist: { dist: {
files: { files: {
'<%= meta.distPath %><%= pkg.name %>.css': '<%= meta.srcPath %>sass/ratchet.scss' '<%= meta.distPath %><%= pkg.name %>.css': '<%= meta.srcPath %>sass/ratchet.scss',
'<%= meta.distPath %>theme-classic.css': '<%= meta.srcPath %>sass/theme-classic.scss'
} }
} }
}, },

2
dist/ratchet.js vendored

@ -705,4 +705,4 @@
toggle = false; toggle = false;
}); });
}(); }();

112
dist/theme-classic.css vendored

@ -0,0 +1,112 @@
/*
* =====================================================
* Ratchet v2.0.0
* Copyright 2013 Connor Sears, Dave Gamache, and Jacob Thornton
* Licensed under http://www.opensource.org/licenses/MIT
*
* Designed and built by @connors, @dhg, and @fat.
* =====================================================
*/
[class*="bar-"] {
background-color: rgba(30, 176, 233, 0.98);
}
[class*="bar-"].bar-standard, [class*="bar-"].bar-footer-secondary {
background-color: rgba(238, 238, 238, 0.98);
}
.title {
color: #fff;
}
.tab-label {
color: rgba(255, 255, 255, 0.5);
}
.tab-item.active .tab-label {
color: white;
}
[class*="button"] {
color: rgba(0, 0, 0, 0.3);
border-color: rgba(0, 0, 0, 0.3);
}
[class*="button"]:active, [class*="button"].active, [class*="button"].button-filled {
background-color: rgba(0, 0, 0, 0.3);
}
.button-primary {
color: #1eb0e9;
border-color: #1eb0e9;
}
.button-primary:active, .button-primary.active, .button-primary.button-filled {
background-color: #1eb0e9;
}
.button-positive {
color: #34ba15;
border-color: #34ba15;
}
.button-positive:active, .button-positive.active, .button-positive.button-filled {
background-color: #34ba15;
}
.button-negative {
color: #e71e1e;
border-color: #e71e1e;
}
.button-negative:active, .button-negative.active, .button-negative.button-filled {
background-color: #e71e1e;
}
.bar-title [class*="button"] {
color: #fff;
}
.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,
.bar-title .button-primary:active,
.bar-title .button-primary.active {
color: #fff;
}
.bar-title .button-prev:before,
.bar-title .button-prev:after,
.bar-title .button-next:before,
.bar-title .button-next:after {
background-color: #fff;
}
.segmented-controller {
border: -color #1eb0e9;
}
.segmented-controller li {
border-color: #1eb0e9;
}
.segmented-controller li > a {
color: #1eb0e9;
}
.segmented-controller li.active {
background-color: #1eb0e9;
}
.bar-title .segmented-controller {
border-color: #fff;
}
.bar-title .segmented-controller li {
border-color: #fff;
}
.bar-title .segmented-controller li > a {
color: #fff;
}
.bar-title .segmented-controller li.active {
background-color: rgba(255, 255, 255, 0.4);
}
input[type=search] {
color: #555;
background-color: rgba(0, 0, 0, 0.1);
border-radius: 17px;
}

1
examples/app-classic/checkout.html

@ -12,6 +12,7 @@
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/touch-icons/apple-touch-icon-57x57.png"> <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/touch-icons/apple-touch-icon-57x57.png">
<link rel="stylesheet" href="../../dist/ratchet.css"> <link rel="stylesheet" href="../../dist/ratchet.css">
<link rel="stylesheet" href="../../dist/theme-classic.css">
<link rel="stylesheet" href="css/app.css"> <link rel="stylesheet" href="css/app.css">
<script src="../../dist/ratchet.js"></script> <script src="../../dist/ratchet.js"></script>
<script src="../../dos/js/fingerblast.js"></script> <script src="../../dos/js/fingerblast.js"></script>

1
examples/app-classic/choose-movie.html

@ -12,6 +12,7 @@
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/touch-icons/apple-touch-icon-57x57.png"> <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/touch-icons/apple-touch-icon-57x57.png">
<link rel="stylesheet" href="../../dist/ratchet.css"> <link rel="stylesheet" href="../../dist/ratchet.css">
<link rel="stylesheet" href="../../dist/theme-classic.css">
<link rel="stylesheet" href="css/app.css"> <link rel="stylesheet" href="css/app.css">
<script src="../../dist/ratchet.js"></script> <script src="../../dist/ratchet.js"></script>

1
examples/app-classic/choose-theater.html

@ -12,6 +12,7 @@
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/touch-icons/apple-touch-icon-57x57.png"> <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/touch-icons/apple-touch-icon-57x57.png">
<link rel="stylesheet" href="../../dist/ratchet.css"> <link rel="stylesheet" href="../../dist/ratchet.css">
<link rel="stylesheet" href="../../dist/theme-classic.css">
<link rel="stylesheet" href="css/app.css"> <link rel="stylesheet" href="css/app.css">
<script src="../../dist/ratchet.js"></script> <script src="../../dist/ratchet.js"></script>
<script src="../../docs/js/fingerblast.js"></script> <script src="../../docs/js/fingerblast.js"></script>

1
examples/app-classic/index.html

@ -12,6 +12,7 @@
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/touch-icons/apple-touch-icon-57x57.png"> <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/touch-icons/apple-touch-icon-57x57.png">
<link rel="stylesheet" href="../../dist/ratchet.css"> <link rel="stylesheet" href="../../dist/ratchet.css">
<link rel="stylesheet" href="../../dist/theme-classic.css">
<link rel="stylesheet" href="css/app.css"> <link rel="stylesheet" href="css/app.css">
<script src="../../dist/ratchet.js"></script> <script src="../../dist/ratchet.js"></script>

3
examples/app-classic/settings.html

@ -12,6 +12,7 @@
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/touch-icons/apple-touch-icon-57x57.png"> <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/touch-icons/apple-touch-icon-57x57.png">
<link rel="stylesheet" href="../../dist/ratchet.css"> <link rel="stylesheet" href="../../dist/ratchet.css">
<link rel="stylesheet" href="../../dist/theme-classic.css">
<link rel="stylesheet" href="css/app.css"> <link rel="stylesheet" href="css/app.css">
<script src="../../dist/ratchet.js"></script> <script src="../../dist/ratchet.js"></script>
<script src="../../docs/js/fingerblast.js"></script> <script src="../../docs/js/fingerblast.js"></script>
@ -63,7 +64,7 @@
<input type="text" placeholder="goRatchet"> <input type="text" placeholder="goRatchet">
</div> </div>
</div> </div>
<a class="button-block button-negative">Delete Account</a> <a class="button-block button-negative button-filled">Delete Account</a>
</form> </form>
</div> </div>

2
examples/app-default/settings.html

@ -63,7 +63,7 @@
<input type="text" placeholder="goRatchet"> <input type="text" placeholder="goRatchet">
</div> </div>
</div> </div>
<a class="button-block button-negative">Delete Account</a> <a class="button-block button-negative button-filled">Delete Account</a>
</form> </form>
</div> </div>

1
examples/app-default/theaters.html

@ -12,6 +12,7 @@
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/touch-icons/apple-touch-icon-57x57.png"> <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/touch-icons/apple-touch-icon-57x57.png">
<link rel="stylesheet" href="../../dist/ratchet.css"> <link rel="stylesheet" href="../../dist/ratchet.css">
<link rel="stylesheet" href="../../dist/theme-classic.css">
<link rel="stylesheet" href="css/app.css"> <link rel="stylesheet" href="css/app.css">
<script src="../../dist/ratchet.js"></script> <script src="../../dist/ratchet.js"></script>

5
examples/components/classic/index.html

@ -6,8 +6,9 @@
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<!-- <meta name="apple-mobile-web-app-status-bar-style" content="black"> --> <!-- <meta name="apple-mobile-web-app-status-bar-style" content="black"> -->
<link rel="stylesheet" href="../../dist/ratchet.css"> <link rel="stylesheet" href="../../../dist/ratchet.css">
<script src="../../dist/ratchet.js"></script> <link rel="stylesheet" href="../../../dist/theme-classic.css">
<script src="../../../dist/ratchet.js"></script>
<style> <style>
[class*="bar"] { [class*="bar"] {

22
examples/components/classic/modals.html

@ -6,25 +6,9 @@
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="../../lib/css/base.css"> <link rel="stylesheet" href="../../../dist/ratchet.css">
<link rel="stylesheet" href="../../lib/css/bars.css"> <link rel="stylesheet" href="../../../dist/theme-classic.css">
<link rel="stylesheet" href="../../lib/css/lists.css"> <script src="../../../dist/ratchet.js"></script>
<link rel="stylesheet" href="../../lib/css/forms.css">
<link rel="stylesheet" href="../../lib/css/buttons.css">
<link rel="stylesheet" href="../../lib/css/chevrons.css">
<link rel="stylesheet" href="../../lib/css/counts.css">
<link rel="stylesheet" href="../../lib/css/segmented-controllers.css">
<link rel="stylesheet" href="../../lib/css/popovers.css">
<link rel="stylesheet" href="../../lib/css/modals.css">
<link rel="stylesheet" href="../../lib/css/sliders.css">
<link rel="stylesheet" href="../../lib/css/toggles.css">
<link rel="stylesheet" href="../../lib/css/push.css">
<script src="../../lib/js/push.js"></script>
<script src="../../lib/js/toggles.js"></script>
<script src="../../lib/js/sliders.js"></script>
<script src="../../lib/js/popovers.js"></script>
<script src="../../lib/js/modals.js"></script>
<script src="../../lib/js/segmented-controllers.js"></script>
</head> </head>
<body> <body>

4
examples/components/default/index.html

@ -6,8 +6,8 @@
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<!-- <meta name="apple-mobile-web-app-status-bar-style" content="black"> --> <!-- <meta name="apple-mobile-web-app-status-bar-style" content="black"> -->
<link rel="stylesheet" href="../../dist/ratchet.css"> <link rel="stylesheet" href="../../../dist/ratchet.css">
<script src="../../dist/ratchet.js"></script> <script src="../../../dist/ratchet.js"></script>
<style> <style>
[class*="bar"] { [class*="bar"] {

21
examples/components/default/modals.html

@ -6,25 +6,8 @@
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="../../lib/css/base.css"> <link rel="stylesheet" href="../../../dist/ratchet.css">
<link rel="stylesheet" href="../../lib/css/bars.css"> <script src="../../../dist/ratchet.js"></script>
<link rel="stylesheet" href="../../lib/css/lists.css">
<link rel="stylesheet" href="../../lib/css/forms.css">
<link rel="stylesheet" href="../../lib/css/buttons.css">
<link rel="stylesheet" href="../../lib/css/chevrons.css">
<link rel="stylesheet" href="../../lib/css/counts.css">
<link rel="stylesheet" href="../../lib/css/segmented-controllers.css">
<link rel="stylesheet" href="../../lib/css/popovers.css">
<link rel="stylesheet" href="../../lib/css/modals.css">
<link rel="stylesheet" href="../../lib/css/sliders.css">
<link rel="stylesheet" href="../../lib/css/toggles.css">
<link rel="stylesheet" href="../../lib/css/push.css">
<script src="../../lib/js/push.js"></script>
<script src="../../lib/js/toggles.js"></script>
<script src="../../lib/js/sliders.js"></script>
<script src="../../lib/js/popovers.js"></script>
<script src="../../lib/js/modals.js"></script>
<script src="../../lib/js/segmented-controllers.js"></script>
</head> </head>
<body> <body>

169
lib/sass/theme-classic.scss

@ -0,0 +1,169 @@
//
// Variable overrides
// --------------------------------------------------
// Color overrides
// --------------------------------------------------
// Main theme colors
$primary-color: #1eb0e9;
$chrome-color: rgba(30,176,233,.98);
// Action colors
$default-color: rgba(0, 0, 0, .3);
$positive-color: #34ba15;
$negative-color: #e71e1e;
// Bars
// --------------------------------------------------
[class*="bar-"] {
background-color: $chrome-color;
&.bar-standard,
&.bar-footer-secondary {
background-color: rgba(238,238,238,.98);
}
}
.title {
color: #fff;
}
.tab-label {
color: rgba(255,255,255,.5);
}
.tab-item.active .tab-label {
color: rgba(255,255,255,1);
}
// Buttons
// --------------------------------------------------
[class*="button"] {
color: $default-color;
border-color: $default-color;
&:active,
&.active,
&.button-filled {
background-color: $default-color;
}
}
// Primary button (Default color is blue)
.button-primary {
color: $primary-color;
border-color: $primary-color;
&:active,
&.active,
&.button-filled {
background-color: $primary-color;
}
}
// Positive button (Default color is green)
.button-positive {
color: $positive-color;
border-color: $positive-color;
&:active,
&.active,
&.button-filled {
background-color: $positive-color;
}
}
// Negative button (Default color is red)
.button-negative {
color: $negative-color;
border-color: $negative-color;
&:active,
&.active,
&.button-filled {
background-color: $negative-color;
}
}
.bar-title {
// Generic style for all buttons in .bar-title
[class*="button"] {
color: #fff;
}
// Override standard button active states
.button:active,
.button.active,
.button-prev:active,
.button-prev.active,
.button-next:active,
.button-next.active,
.button-primary:active,
.button-primary.active {
color: #fff;
}
// Directional buttons in nav bars
// --------------------------------------------------
.button-prev:before,
.button-prev:after,
.button-next:before,
.button-next:after {
background-color: #fff;
}
}
// Segmented controllers
// --------------------------------------------------
.segmented-controller {
border:-color $primary-color;
li {
border-color: $primary-color;
// Link that fills each section
> a {
color: $primary-color;
}
// Active segment of controller
&.active {
background-color: $primary-color;
}
}
}
// Segmented controller in all bars
// --------------------------------------------------
.bar-title .segmented-controller {
border-color: #fff;
li {
border-color: #fff;
// Link that fills each section
> a {
color: #fff;
}
// Active segment of controller
&.active {
background-color: rgba(255,255,255,.4);
}
}
}
// Forms
// --------------------------------------------------
// Fully round search input
input[type=search] {
color: #555;
background-color: rgba(0,0,0,.1);
border-radius: 17px;
}
Loading…
Cancel
Save