zitgit 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. data/.gitignore +17 -0
  2. data/Gemfile +5 -0
  3. data/Gemfile.lock +94 -0
  4. data/Guardfile +6 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +29 -0
  7. data/Rakefile +1 -0
  8. data/bin/zitgit +4 -0
  9. data/lib/zitgit/version.rb +3 -0
  10. data/lib/zitgit.rb +57 -0
  11. data/public/coffee/application.coffee +54 -0
  12. data/public/css/app.css +4071 -0
  13. data/public/images/loader.gif +0 -0
  14. data/public/js/application.js +69 -0
  15. data/public/js/jquery.js +5 -0
  16. data/public/js/jquery.nicescroll.js +111 -0
  17. data/public/scss/app.scss +155 -0
  18. data/public/scss/foundation/foundation/_variables.scss +1037 -0
  19. data/public/scss/foundation/foundation/components/_alert-boxes.scss +106 -0
  20. data/public/scss/foundation/foundation/components/_block-grid.scss +70 -0
  21. data/public/scss/foundation/foundation/components/_breadcrumbs.scss +124 -0
  22. data/public/scss/foundation/foundation/components/_button-groups.scss +88 -0
  23. data/public/scss/foundation/foundation/components/_buttons.scss +226 -0
  24. data/public/scss/foundation/foundation/components/_clearing.scss +211 -0
  25. data/public/scss/foundation/foundation/components/_custom-forms.scss +240 -0
  26. data/public/scss/foundation/foundation/components/_dropdown-buttons.scss +114 -0
  27. data/public/scss/foundation/foundation/components/_dropdown.scss +149 -0
  28. data/public/scss/foundation/foundation/components/_flex-video.scss +45 -0
  29. data/public/scss/foundation/foundation/components/_forms.scss +348 -0
  30. data/public/scss/foundation/foundation/components/_global.scss +267 -0
  31. data/public/scss/foundation/foundation/components/_grid.scss +184 -0
  32. data/public/scss/foundation/foundation/components/_inline-lists.scss +52 -0
  33. data/public/scss/foundation/foundation/components/_joyride.scss +208 -0
  34. data/public/scss/foundation/foundation/components/_keystrokes.scss +56 -0
  35. data/public/scss/foundation/foundation/components/_labels.scss +84 -0
  36. data/public/scss/foundation/foundation/components/_magellan.scss +21 -0
  37. data/public/scss/foundation/foundation/components/_orbit.scss +207 -0
  38. data/public/scss/foundation/foundation/components/_pagination.scss +99 -0
  39. data/public/scss/foundation/foundation/components/_panels.scss +76 -0
  40. data/public/scss/foundation/foundation/components/_pricing-tables.scss +130 -0
  41. data/public/scss/foundation/foundation/components/_progress-bars.scss +70 -0
  42. data/public/scss/foundation/foundation/components/_reveal.scss +131 -0
  43. data/public/scss/foundation/foundation/components/_section.scss +303 -0
  44. data/public/scss/foundation/foundation/components/_side-nav.scss +68 -0
  45. data/public/scss/foundation/foundation/components/_split-buttons.scss +159 -0
  46. data/public/scss/foundation/foundation/components/_sub-nav.scss +67 -0
  47. data/public/scss/foundation/foundation/components/_switch.scss +249 -0
  48. data/public/scss/foundation/foundation/components/_tables.scss +80 -0
  49. data/public/scss/foundation/foundation/components/_thumbs.scss +47 -0
  50. data/public/scss/foundation/foundation/components/_tooltips.scss +113 -0
  51. data/public/scss/foundation/foundation/components/_top-bar.scss +462 -0
  52. data/public/scss/foundation/foundation/components/_type.scss +422 -0
  53. data/public/scss/foundation/foundation/components/_visibility.scss +320 -0
  54. data/public/scss/foundation/foundation.scss +46 -0
  55. data/public/scss/foundation/normalize.scss +402 -0
  56. data/views/branch.slim +1 -0
  57. data/views/commits/detail.slim +12 -0
  58. data/views/commits/labels.slim +9 -0
  59. data/views/commits/list.slim +22 -0
  60. data/views/diffs/list.slim +39 -0
  61. data/views/index.slim +36 -0
  62. data/views/layout.slim +9 -0
  63. data/views/refs/dropdown.slim +3 -0
  64. data/zitgit.gemspec +30 -0
  65. metadata +239 -0
@@ -0,0 +1,106 @@
1
+ //
2
+ // Alert Variables
3
+ //
4
+
5
+ // We use this to control alert padding.
6
+ $alert-padding-top: emCalc(11px) !default;
7
+ $alert-padding-default-float: $alert-padding-top !default;
8
+ $alert-padding-opposite-direction: $alert-padding-top + emCalc(10px) !default;
9
+ $alert-padding-bottom: $alert-padding-top + emCalc(1px) !default;
10
+
11
+ // We use these to control text style.
12
+ $alert-font-weight: bold !default;
13
+ $alert-font-size: emCalc(14px) !default;
14
+ $alert-font-color: #fff !default;
15
+ $alert-font-color-alt: darken($secondary-color, 60%) !default;
16
+
17
+ // We use this for close hover effect.
18
+ $alert-function-factor: 10% !default;
19
+
20
+ // We use these to control border styles.
21
+ $alert-border-style: solid !default;
22
+ $alert-border-width: 1px !default;
23
+ $alert-border-color: darken($primary-color, $alert-function-factor) !default;
24
+ $alert-bottom-margin: emCalc(20px) !default;
25
+
26
+ // We use these to style the close buttons
27
+ $alert-close-color: #333 !default;
28
+ $alert-close-position: emCalc(5px) !default;
29
+ $alert-close-font-size: emCalc(22px) !default;
30
+ $alert-close-opacity: 0.3 !default;
31
+ $alert-close-opacity-hover: 0.5 !default;
32
+ $alert-close-padding: 5px 4px 4px !default;
33
+
34
+ // We use this to control border radius
35
+ $alert-radius: $global-radius !default;
36
+
37
+ //
38
+ // Alert Mixins
39
+ //
40
+
41
+ // We use this mixin to create a default alert base.
42
+ @mixin alert-base {
43
+ border-style: $alert-border-style;
44
+ border-width: $alert-border-width;
45
+ display: block;
46
+ font-weight: $alert-font-weight;
47
+ margin-bottom: $alert-bottom-margin;
48
+ position: relative;
49
+ padding: $alert-padding-top $alert-padding-opposite-direction $alert-padding-bottom $alert-padding-default-float;
50
+ font-size: $alert-font-size;
51
+ }
52
+
53
+ // We use this mixin to add alert styles
54
+ @mixin alert-style($bg:$primary-color) {
55
+
56
+ // This find the lightness percentage of the background color.
57
+ $bg-lightness: lightness($bg);
58
+
59
+ // We control which background color and border come through.
60
+ background-color: $bg;
61
+ border-color: darken($bg, $alert-function-factor);
62
+
63
+ // We control the text color for you based on the background color.
64
+ @if $bg-lightness > 70% { color: $alert-font-color-alt; }
65
+ @else { color: $alert-font-color; }
66
+
67
+ }
68
+
69
+ // We use this to create the close button.
70
+ @mixin alert-close {
71
+ font-size: $alert-close-font-size;
72
+ padding: $alert-close-padding;
73
+ line-height: 0;
74
+ position: absolute;
75
+ top: $alert-close-position + emCalc(2px);
76
+ #{$opposite-direction}: $alert-close-position;
77
+ color: $alert-close-color;
78
+ opacity: $alert-close-opacity;
79
+ &:hover,
80
+ &:focus { opacity: $alert-close-opacity-hover; }
81
+ }
82
+
83
+ // We use this to quickly create alerts with a single mixin.
84
+ @mixin alert($bg:$primary-color, $radius:false) {
85
+ @include alert-base;
86
+ @include alert-style($bg);
87
+ @include radius($radius);
88
+ }
89
+
90
+ @if $include-html-alert-classes != false {
91
+
92
+ /* Foundation Alerts */
93
+ .alert-box {
94
+ @include alert;
95
+
96
+ .close { @include alert-close; }
97
+
98
+ &.radius { @include radius($alert-radius); }
99
+ &.round { @include radius($global-rounded); }
100
+
101
+ &.success { @include alert-style($success-color); }
102
+ &.alert { @include alert-style($alert-color); }
103
+ &.secondary { @include alert-style($secondary-color); }
104
+ }
105
+
106
+ }
@@ -0,0 +1,70 @@
1
+ //
2
+ // Block Grid Variables
3
+ //
4
+
5
+ // We use this to control the maximum number of block grid elements per row
6
+ $block-grid-elements: 12 !default;
7
+ $block-grid-default-spacing: 10px !default;
8
+
9
+ // Enables media queries for block-grid classes. Set to false if writing semantic HTML.
10
+ $block-grid-media-queries: true !default;
11
+
12
+ //
13
+ // Block Grid Mixins
14
+ //
15
+
16
+ // We use this mixin to create different block-grids. You can apply per-row and spacing options.
17
+ // Setting $base-style to false will ommit default styles.
18
+ @mixin block-grid($per-row:false, $spacing:$block-grid-default-spacing, $base-style:true) {
19
+
20
+ @if $base-style {
21
+ display: block;
22
+ padding: 0;
23
+ margin: 0 (-$spacing);
24
+ @include clearfix;
25
+
26
+ &>li {
27
+ display: block;
28
+ height: auto;
29
+ float: $default-float;
30
+ padding: 0 $spacing $spacing;
31
+ }
32
+ }
33
+
34
+ @if $per-row {
35
+ &>li {
36
+ width: 100%/$per-row;
37
+ padding: 0 $spacing $spacing;
38
+
39
+ &:nth-of-type(n) { clear: none; }
40
+ &:nth-of-type(#{$per-row}n+1) { clear: both; }
41
+ }
42
+ }
43
+
44
+ }
45
+
46
+ @if $block-grid-media-queries {
47
+ /* Foundation Block Grids for below small breakpoint */
48
+ @media only screen {
49
+ [class*="block-grid-"] { @include block-grid; }
50
+
51
+ @for $i from 1 through $block-grid-elements {
52
+ .small-block-grid-#{($i)} {
53
+ @include block-grid($i,$block-grid-default-spacing,false);
54
+ }
55
+ }
56
+ }
57
+
58
+ /* Foundation Block Grids for above small breakpoint */
59
+ @media #{$small} {
60
+ /* Remove small grid clearing */
61
+ @for $i from 1 through $block-grid-elements {
62
+ .small-block-grid-#{($i)} > li:nth-of-type(#{$i}n+1) { clear: none; }
63
+ }
64
+ @for $i from 1 through $block-grid-elements {
65
+ .large-block-grid-#{($i)} {
66
+ @include block-grid($i,$block-grid-default-spacing,false);
67
+ }
68
+ }
69
+ }
70
+ }
@@ -0,0 +1,124 @@
1
+ //
2
+ // Breadcrumb Variables
3
+ //
4
+
5
+ // We use this to set the background color for the breadcrumb container.
6
+ $crumb-bg: lighten($secondary-color, 5%) !default;
7
+
8
+ // We use these to set the padding around the breadcrumbs.
9
+ $crumb-padding: emCalc(9px) emCalc(14px) emCalc(9px) !default;
10
+ $crumb-side-padding: emCalc(12px) !default;
11
+
12
+ // We use these to control border styles.
13
+ $crumb-function-factor: 10% !default;
14
+ $crumb-border-size: 1px !default;
15
+ $crumb-border-style: solid !default;
16
+ $crumb-border-color: darken($crumb-bg, $crumb-function-factor) !default;
17
+ $crumb-radius: $global-radius !default;
18
+
19
+ // We use these to set various text styles for breadcrumbs.
20
+ $crumb-font-size: emCalc(11px) !default;
21
+ $crumb-font-color: $primary-color !default;
22
+ $crumb-font-color-current: #333 !default;
23
+ $crumb-font-color-unavailable: #999 !default;
24
+ $crumb-font-transform: uppercase !default;
25
+ $crumb-link-decor: underline !default;
26
+
27
+ // We use these to control the slash between breadcrumbs
28
+ $crumb-slash-color: #aaa !default;
29
+ $crumb-slash: "/" !default;
30
+
31
+ //
32
+ // Breakcrumb Mixins
33
+ //
34
+
35
+ // We use this mixin to create a container around our breadcrumbs
36
+ @mixin crumb-container {
37
+ display: block;
38
+ padding: $crumb-padding;
39
+ overflow: hidden;
40
+ margin-#{$default-float}: 0;
41
+ list-style: none;
42
+ border-style: $crumb-border-style;
43
+ border-width: $crumb-border-size;
44
+
45
+ // We control which background color and border come through.
46
+ background-color: $crumb-bg;
47
+ border-color: $crumb-border-color;
48
+ }
49
+
50
+ // We use this mixin to create breadcrumb styles from list items.
51
+ @mixin crumbs {
52
+
53
+ // A normal state will make the links look and act like clickable breadcrumbs.
54
+ margin: 0;
55
+ float: $default-float;
56
+ font-size: $crumb-font-size;
57
+ text-transform: $crumb-font-transform;
58
+ color: $crumb-font-color;
59
+
60
+ &:hover a, &:focus a { text-decoration: $crumb-link-decor; }
61
+
62
+ a,
63
+ span {
64
+ text-transform: $crumb-font-transform;
65
+ color: $crumb-font-color;
66
+ }
67
+
68
+ // Current is for the link of the current page
69
+ &.current {
70
+ cursor: default;
71
+ color: $crumb-font-color-current;
72
+ a {
73
+ cursor: default;
74
+ color: $crumb-font-color-current;
75
+ }
76
+
77
+ &:hover, &:hover a,
78
+ &:focus, &:focus a { text-decoration: none; }
79
+ }
80
+
81
+ // Unavailable removed color and link styles so it looks inactive.
82
+ &.unavailable {
83
+ color: $crumb-font-color-unavailable;
84
+ a { color: $crumb-font-color-unavailable; }
85
+
86
+ &:hover,
87
+ &:hover a,
88
+ &:focus,
89
+ a:focus {
90
+ text-decoration: none;
91
+ color: $crumb-font-color-unavailable;
92
+ cursor: default;
93
+ }
94
+ }
95
+
96
+ &:before {
97
+ content: "#{$crumb-slash}";
98
+ color: $crumb-slash-color;
99
+ margin: 0 $crumb-side-padding;
100
+ position: relative;
101
+ top: 1px;
102
+ }
103
+
104
+ &:first-child:before {
105
+ content: " ";
106
+ margin: 0;
107
+ }
108
+
109
+ }
110
+
111
+
112
+ @if $include-html-nav-classes != false {
113
+
114
+ /* Breadcrumbs */
115
+ .breadcrumbs {
116
+ @include crumb-container;
117
+ @include radius($crumb-radius);
118
+
119
+ &>* {
120
+ @include crumbs;
121
+ }
122
+ }
123
+
124
+ }
@@ -0,0 +1,88 @@
1
+ //
2
+ // Button Group Variables
3
+ //
4
+
5
+ // Sets the margin for the right side by default, and the left margin if right-to-left direction is used
6
+ $button-bar-margin-opposite: emCalc(10px) !default;
7
+
8
+ //
9
+ // Button Group Mixins
10
+ //
11
+
12
+ // We use this to add styles for a button group container
13
+ @mixin button-group-container($styles:true, $float:false) {
14
+ @if $styles {
15
+ list-style: none;
16
+ margin: 0;
17
+ @include clearfix();
18
+ }
19
+ @if $float {
20
+ float: #{$default-float};
21
+ margin-#{$opposite-direction}: $button-bar-margin-opposite;
22
+ & div { overflow: hidden; }
23
+ }
24
+ }
25
+
26
+ // We use this to control styles for button groups
27
+ @mixin button-group-style($radius:false, $even:false, $float:$default-float) {
28
+
29
+ // We use this to control the flow, or remove those styles completely.
30
+ @if $float {
31
+ margin: 0 0 0 -1px;
32
+ float: $float;
33
+ // Make sure the first child doesn't get the negative margin.
34
+ &:first-child { margin-#{$default-float}: 0; }
35
+ }
36
+
37
+ // We use these to control left and right radius on first/last buttons in the group.
38
+ @if $radius == true {
39
+ &:first-child,
40
+ &:first-child > a,
41
+ &:first-child > button,
42
+ &:first-child > .button { @include side-radius($default-float, $button-radius); }
43
+ &:last-child,
44
+ &:last-child > a,
45
+ &:last-child > button,
46
+ &:last-child > .button { @include side-radius($opposite-direction, $button-radius); }
47
+ }
48
+ @else if $radius {
49
+ &:first-child,
50
+ &:first-child > a,
51
+ &:first-child > button,
52
+ &:first-child > .button { @include side-radius($default-float, $radius); }
53
+ &:last-child,
54
+ &:last-child > a,
55
+ &:last-child > button,
56
+ &:last-child > .button { @include side-radius($opposite-direction, $radius); }
57
+ }
58
+
59
+ // We use this to make the buttons even width across their container
60
+ @if $even {
61
+ width: percentage((100/$even) / 100);
62
+ button, .button { width: 100%; }
63
+ }
64
+
65
+ }
66
+
67
+ // Only include these CSS classes if $include-html-classes: true
68
+ @if $include-html-button-classes != false {
69
+
70
+ /* Button Groups */
71
+ .button-group { @include button-group-container;
72
+
73
+ &> * { @include button-group-style(); }
74
+
75
+ &.radius > * { @include button-group-style($radius:$button-radius, $float:null); }
76
+ &.round > * { @include button-group-style($radius:$button-round, $float:null); }
77
+
78
+ @for $i from 2 through 8 {
79
+ &.even#{-$i} li { @include button-group-style($even:$i, $float:null); }
80
+ }
81
+ }
82
+
83
+ .button-bar {
84
+ @include clearfix;
85
+ .button-group { @include button-group-container($styles:false,$float:true); }
86
+ }
87
+
88
+ }
@@ -0,0 +1,226 @@
1
+ //
2
+ // Button Variables
3
+ //
4
+
5
+ // We use these to build padding for buttons.
6
+ $button-med: emCalc(12px) !default;
7
+ $button-tny: emCalc(7px) !default;
8
+ $button-sml: emCalc(9px) !default;
9
+ $button-lrg: emCalc(16px) !default;
10
+
11
+ // We use this to control the display property.
12
+ $button-display: inline-block !default;
13
+ $button-margin-bottom: emCalc(20px) !default;
14
+
15
+ // We use these to control button text styles.
16
+ $button-font-family: inherit !default;
17
+ $button-font-color: #fff !default;
18
+ $button-font-color-alt: #333 !default;
19
+ $button-font-med: emCalc(16px) !default;
20
+ $button-font-tny: emCalc(11px) !default;
21
+ $button-font-sml: emCalc(13px) !default;
22
+ $button-font-lrg: emCalc(20px) !default;
23
+ $button-font-weight: bold !default;
24
+ $button-font-align: center !default;
25
+
26
+ // We use these to control various hover effects.
27
+ $button-function-factor: 10% !default;
28
+
29
+ // We use these to control button border styles.
30
+ $button-border-width: 1px !default;
31
+ $button-border-style: solid !default;
32
+ $button-border-color: darken($primary-color, $button-function-factor) !default;
33
+
34
+ // We use this to set the default radius used throughout the core.
35
+ $button-radius: $global-radius !default;
36
+ $button-round: $global-rounded !default;
37
+
38
+ // We use this to set default opacity for disabled buttons.
39
+ $button-disabled-opacity: 0.6 !default;
40
+
41
+
42
+ //
43
+ // Button Mixins
44
+ //
45
+
46
+ // We use this mixin to create a default button base.
47
+ @mixin button-base($style:true, $display:$button-display) {
48
+ @if $style {
49
+ border-style: $button-border-style;
50
+ border-width: $button-border-width;
51
+ cursor: pointer;
52
+ font-family: $button-font-family;
53
+ font-weight: $button-font-weight;
54
+ line-height: 1;
55
+ margin: 0 0 $button-margin-bottom;
56
+ position: relative;
57
+ text-decoration: none;
58
+ text-align: $button-font-align;
59
+ }
60
+ @if $display { display: $display; }
61
+ }
62
+
63
+ // We use this mixin to add button size styles
64
+ @mixin button-size($padding:$button-med, $full-width:false, $is-input:false) {
65
+
66
+ // We control which padding styles come through,
67
+ // these can be turned off by setting $padding:false
68
+ @if $padding {
69
+ padding-top: $padding;
70
+ padding-#{$opposite-direction}: $padding * 2;
71
+ padding-bottom: $padding + emCalc(1px);
72
+ padding-#{$default-float}: $padding * 2;
73
+
74
+ // We control the font-size based on mixin input.
75
+ @if $padding == $button-med { font-size: $button-font-med; }
76
+ @else if $padding == $button-tny { font-size: $button-font-tny; }
77
+ @else if $padding == $button-sml { font-size: $button-font-sml; }
78
+ @else if $padding == $button-lrg { font-size: $button-font-lrg; }
79
+ @else { font-size: $padding - emCalc(2px); }
80
+ }
81
+
82
+ // We can set $full-width:true to remove side padding extend width.
83
+ @if $full-width {
84
+ // We still need to check if $padding is set.
85
+ @if $padding {
86
+ padding-top: $padding;
87
+ padding-bottom: $padding + emCalc(1px);
88
+ } @else if $padding == false {
89
+ padding-top:0;
90
+ padding-bottom:0;
91
+ }
92
+ padding-right: 0px;
93
+ padding-left: 0px;
94
+ width: 100%;
95
+ }
96
+
97
+ // <input>'s and <button>'s take on strange padding. We added this to help fix that.
98
+ @if $is-input == $button-lrg {
99
+ padding-top: $is-input + emCalc(.5px);
100
+ padding-bottom: $is-input + emCalc(.5px);
101
+ }
102
+ @else if $is-input {
103
+ padding-top: $is-input + emCalc(1px);
104
+ padding-bottom: $is-input;
105
+ }
106
+ }
107
+
108
+ // We use this mixin to add button color styles
109
+ @mixin button-style($bg:$primary-color, $radius:false, $disabled:false) {
110
+
111
+ // We control which background styles are used,
112
+ // these can be removed by setting $bg:false
113
+ @if $bg {
114
+ // This find the lightness percentage of the background color.
115
+ $bg-lightness: lightness($bg);
116
+
117
+ background-color: $bg;
118
+ border-color: darken($bg, $button-function-factor);
119
+ &:hover,
120
+ &:focus { background-color: darken($bg, $button-function-factor); }
121
+
122
+ // We control the text color for you based on the background color.
123
+ @if $bg-lightness > 70% {
124
+ color: $button-font-color-alt;
125
+ &:hover,
126
+ &:focus { color: $button-font-color-alt; }
127
+ }
128
+ @else {
129
+ color: $button-font-color;
130
+ &:hover,
131
+ &:focus { color: $button-font-color; }
132
+ }
133
+ }
134
+
135
+ // We can set $disabled:true to create a disabled transparent button.
136
+ @if $disabled {
137
+ cursor: default;
138
+ opacity: $button-disabled-opacity;
139
+ -webkit-box-shadow: none;
140
+ box-shadow: none;
141
+ &:hover,
142
+ &:focus { background-color: $bg; }
143
+ }
144
+
145
+ // We can control how much button radius us used.
146
+ @if $radius == true { @include radius($button-radius); }
147
+ @else if $radius { @include radius($radius); }
148
+
149
+ }
150
+
151
+ // We use this to quickly create buttons with a single mixin. As @jaredhardy puts it, "the kitchen sink mixin"
152
+ @mixin button($padding:$button-med, $bg:$primary-color, $radius:false, $full-width:false, $disabled:false, $is-input:false, $is-prefix:false) {
153
+ @include button-base;
154
+ @include button-size($padding, $full-width, $is-input);
155
+ @include button-style($bg, $radius, $disabled);
156
+ }
157
+
158
+
159
+ //
160
+ // Button Classes
161
+ //
162
+
163
+ // Only include these classes if the variable is true, otherwise they'll be left out.
164
+ @if $include-html-button-classes != false {
165
+
166
+ // Default styles applied outside of media query
167
+ button, .button {
168
+ @include button-base;
169
+ @include button-size;
170
+ @include button-style;
171
+
172
+ &.secondary { @include button-style($bg:$secondary-color); }
173
+ &.success { @include button-style($bg:$success-color); }
174
+ &.alert { @include button-style($bg:$alert-color); }
175
+
176
+ &.large { @include button-size($padding:$button-lrg); }
177
+ &.small { @include button-size($padding:$button-sml); }
178
+ &.tiny { @include button-size($padding:$button-tny); }
179
+ &.expand { @include button-size($padding:null,$full-width:true); }
180
+
181
+ &.left-align { text-align: left; text-indent: emCalc(12px); }
182
+ &.right-align { text-align: right; padding-right: emCalc(12px); }
183
+
184
+ &.disabled, &[disabled] { @include button-style($bg:$primary-color, $disabled:true);
185
+ &.secondary { @include button-style($bg:$secondary-color, $disabled:true); }
186
+ &.success { @include button-style($bg:$success-color, $disabled:true); }
187
+ &.alert { @include button-style($bg:$alert-color, $disabled:true); }
188
+ }
189
+
190
+ }
191
+
192
+ button, .button {
193
+ @include button-size($padding:false, $is-input:$button-med);
194
+ &.tiny { @include button-size($padding:false, $is-input:$button-tny); }
195
+ &.small { @include button-size($padding:false, $is-input:$button-sml); }
196
+ &.large { @include button-size($padding:false, $is-input:$button-lrg); }
197
+ }
198
+
199
+ // Styles for any browser or device that support media queries
200
+ @media only screen {
201
+
202
+ button, .button {
203
+ @include inset-shadow();
204
+ @include single-transition(background-color);
205
+
206
+ &.large { @include button-size($padding:false, $full-width:false); }
207
+ &.small { @include button-size($padding:false, $full-width:false); }
208
+ &.tiny { @include button-size($padding:false, $full-width:false); }
209
+
210
+ &.radius { @include button-style($bg:false, $radius:true); }
211
+ &.round { @include button-style($bg:false, $radius:$button-round); }
212
+ }
213
+
214
+ }
215
+
216
+ // Additional styles for screens larger than 768px
217
+ @media #{$small} {
218
+
219
+ button, .button {
220
+ @include button-base($style:false, $display:inline-block);
221
+ @include button-size($padding:false, $full-width:false);
222
+ }
223
+
224
+ }
225
+
226
+ }