staple 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -7
- data/Rakefile +1 -0
- data/lib/staple/install_generator.rb +11 -1
- data/source/stylesheets/after.scss +5 -0
- data/source/stylesheets/before.scss +9 -0
- data/source/stylesheets/buttons.scss +0 -0
- data/source/stylesheets/color.scss +0 -0
- data/source/stylesheets/forms.scss +0 -0
- data/source/stylesheets/foundation_and_overrides.scss +3 -0
- data/source/stylesheets/sizing.scss +0 -0
- data/source/stylesheets/typography.scss +0 -0
- data/source/stylesheets/utilities.scss +0 -0
- data/staple.gemspec +6 -6
- metadata +12 -190
- data/config.rb +0 -24
- data/source/CNAME +0 -1
- data/source/_accordion.html.erb +0 -24
- data/source/_accordion_tabs.html.erb +0 -26
- data/source/_accordion_tabs_minimal.html.erb +0 -26
- data/source/_badges.html.erb +0 -7
- data/source/_breadcrumbs.html.erb +0 -7
- data/source/_browser.html.erb +0 -29
- data/source/_button_group.html.erb +0 -18
- data/source/_cards.html.erb +0 -59
- data/source/_centered_navigation.html.erb +0 -38
- data/source/_code.html.erb +0 -10
- data/source/_comment.html.erb +0 -21
- data/source/_device.html.erb +0 -10
- data/source/_dropdown.html.erb +0 -12
- data/source/_expander.html.erb +0 -6
- data/source/_flashes.html.erb +0 -15
- data/source/_footer.html.erb +0 -28
- data/source/_footer_2.html.erb +0 -33
- data/source/_grid_items.html.erb +0 -37
- data/source/_grid_items_lines.html.erb +0 -44
- data/source/_hero.html.erb +0 -11
- data/source/_hover_tile_animation.html.erb +0 -11
- data/source/_icon_bullet_points.html.erb +0 -30
- data/source/_image_gradient_dynamic.html.erb +0 -7
- data/source/_intro_text.html.erb +0 -6
- data/source/_label_alerts.html.erb +0 -5
- data/source/_modal.html.erb +0 -14
- data/source/_navigation.html.erb +0 -44
- data/source/_pagination.html.erb +0 -17
- data/source/_progress_bar.html.erb +0 -3
- data/source/_progress_bar_indication.html.erb +0 -5
- data/source/_search_bar.html.erb +0 -8
- data/source/_search_tools.html.erb +0 -58
- data/source/_side_image.html.erb +0 -10
- data/source/_sliding_menu.html.erb +0 -13
- data/source/_snippet.html.erb +0 -4
- data/source/_switch.html.erb +0 -4
- data/source/_tables.html.erb +0 -31
- data/source/_tables_minimal.html.erb +0 -31
- data/source/_texture-legend.html.erb +0 -24
- data/source/_textures.html.erb +0 -4
- data/source/_tooltip.html.erb +0 -6
- data/source/_type_system_geometric.html.erb +0 -18
- data/source/_type_system_rounded.html.erb +0 -18
- data/source/_type_system_sans.html.erb +0 -18
- data/source/_type_system_serif.html.erb +0 -19
- data/source/_type_system_slab.html.erb +0 -18
- data/source/_type_system_traditional.html.erb +0 -18
- data/source/_vertical_tabs.html.erb +0 -30
- data/source/_video.html.erb +0 -5
- data/source/components.html.erb +0 -174
- data/source/foundation/application.html.slim +0 -17
- data/source/foundation/foundation_and_overrides.scss +0 -4
- data/source/index.html.erb +0 -162
- data/source/javascripts/all.js +0 -11
- data/source/javascripts/jquery.erToc.js +0 -477
- data/source/javascripts/jquery.glide.js +0 -941
- data/source/javascripts/staple/accordion.js +0 -5
- data/source/javascripts/staple/accordion_tabs.js +0 -19
- data/source/javascripts/staple/accordion_tabs_minimal.js +0 -19
- data/source/javascripts/staple/centered_navigation.js +0 -14
- data/source/javascripts/staple/dropdown.js +0 -9
- data/source/javascripts/staple/expander.js +0 -53
- data/source/javascripts/staple/navigation.js +0 -23
- data/source/javascripts/staple/search_tools.js +0 -110
- data/source/javascripts/staple/sliding_menu.js +0 -13
- data/source/javascripts/staple/vertical_tabs.js +0 -32
- data/source/layouts/layout.erb +0 -1
- data/source/refills-hero.html.erb +0 -7
- data/source/refills-menu.html.erb +0 -5
- data/source/refills-page-scripts.html.erb +0 -66
- data/source/stylesheets/_bourbon-nav.scss +0 -86
- data/source/stylesheets/_normalize.scss +0 -425
- data/source/stylesheets/_refills-nav.scss +0 -102
- data/source/stylesheets/_refills-styles.scss +0 -543
- data/source/stylesheets/all.scss +0 -61
- data/source/stylesheets/staple/_accordion-tabs-minimal.scss +0 -60
- data/source/stylesheets/staple/_accordion-tabs.scss +0 -88
- data/source/stylesheets/staple/_accordion.scss +0 -55
- data/source/stylesheets/staple/_badges.scss +0 -44
- data/source/stylesheets/staple/_breadcrumbs.scss +0 -84
- data/source/stylesheets/staple/_browser.scss +0 -141
- data/source/stylesheets/staple/_button-group.scss +0 -81
- data/source/stylesheets/staple/_cards.scss +0 -132
- data/source/stylesheets/staple/_centered-navigation.scss +0 -251
- data/source/stylesheets/staple/_comment.scss +0 -60
- data/source/stylesheets/staple/_device.scss +0 -83
- data/source/stylesheets/staple/_dropdown.scss +0 -127
- data/source/stylesheets/staple/_expander.scss +0 -30
- data/source/stylesheets/staple/_flashes.scss +0 -29
- data/source/stylesheets/staple/_footer-2.scss +0 -117
- data/source/stylesheets/staple/_footer.scss +0 -76
- data/source/stylesheets/staple/_grid-items-lines.scss +0 -86
- data/source/stylesheets/staple/_grid-items.scss +0 -97
- data/source/stylesheets/staple/_hero.scss +0 -54
- data/source/stylesheets/staple/_hover-tile-animation.scss +0 -52
- data/source/stylesheets/staple/_icon-bullet-points.scss +0 -63
- data/source/stylesheets/staple/_image-gradient-dynamic.scss +0 -59
- data/source/stylesheets/staple/_intro-text.scss +0 -67
- data/source/stylesheets/staple/_label-alerts.scss +0 -11
- data/source/stylesheets/staple/_modal.scss +0 -147
- data/source/stylesheets/staple/_navigation.scss +0 -329
- data/source/stylesheets/staple/_pagination.scss +0 -51
- data/source/stylesheets/staple/_progress-bar-indication.scss +0 -39
- data/source/stylesheets/staple/_progress-bar.scss +0 -83
- data/source/stylesheets/staple/_search-bar.scss +0 -40
- data/source/stylesheets/staple/_search-tools.scss +0 -67
- data/source/stylesheets/staple/_side-image.scss +0 -59
- data/source/stylesheets/staple/_sliding-menu.scss +0 -63
- data/source/stylesheets/staple/_switch.scss +0 -77
- data/source/stylesheets/staple/_tables-minimal.scss +0 -60
- data/source/stylesheets/staple/_tables.scss +0 -88
- data/source/stylesheets/staple/_texture-legend.scss +0 -182
- data/source/stylesheets/staple/_textures.scss +0 -119
- data/source/stylesheets/staple/_tooltip.scss +0 -57
- data/source/stylesheets/staple/_type-system-geometric.scss +0 -103
- data/source/stylesheets/staple/_type-system-rounded.scss +0 -107
- data/source/stylesheets/staple/_type-system-sans.scss +0 -110
- data/source/stylesheets/staple/_type-system-serif.scss +0 -111
- data/source/stylesheets/staple/_type-system-slab.scss +0 -107
- data/source/stylesheets/staple/_type-system-traditional.scss +0 -114
- data/source/stylesheets/staple/_vertical-tabs.scss +0 -105
- data/source/stylesheets/staple/_video.scss +0 -21
- data/source/type-systems.html.erb +0 -67
- data/source/vendor/javascripts/ZeroClipboard.min.js +0 -9
- data/source/vendor/javascripts/fixedsticky.js +0 -185
- data/source/vendor/javascripts/prism.js +0 -13
- data/source/vendor/javascripts/smooth-scroll.js +0 -125
- data/source/vendor/stylesheets/fixedsticky.css +0 -22
- data/source/vendor/stylesheets/prism.css +0 -126
@@ -1,88 +0,0 @@
|
|
1
|
-
.accordion-tabs {
|
2
|
-
$tab-border-color: $base-border-color;
|
3
|
-
$tab-border: 1px solid $tab-border-color;
|
4
|
-
$tab-content-background: lighten($light-gray, 10);
|
5
|
-
$tab-active-background: $tab-content-background;
|
6
|
-
$tab-inactive-color: $base-background-color;
|
7
|
-
$tab-inactive-hover-color: darken($light-gray, 5);
|
8
|
-
$tab-mode: $medium-screen;
|
9
|
-
|
10
|
-
@include clearfix;
|
11
|
-
margin-bottom: $base-spacing;
|
12
|
-
|
13
|
-
@include media(max-width $tab-mode) {
|
14
|
-
border: $tab-border;
|
15
|
-
border-radius: $base-border-radius;
|
16
|
-
}
|
17
|
-
|
18
|
-
.tab-header-and-content {
|
19
|
-
@include media($tab-mode) {
|
20
|
-
display: inline;
|
21
|
-
}
|
22
|
-
|
23
|
-
&:first-child .tab-link {
|
24
|
-
border-top-left-radius: $base-border-radius;
|
25
|
-
border-top-right-radius: $base-border-radius;
|
26
|
-
|
27
|
-
@include media(max-width $tab-mode) {
|
28
|
-
border-top: 0;
|
29
|
-
}
|
30
|
-
}
|
31
|
-
|
32
|
-
&:last-child .tab-link {
|
33
|
-
@include media(max-width $tab-mode) {
|
34
|
-
border-bottom-left-radius: $base-border-radius;
|
35
|
-
border-bottom-right-radius: $base-border-radius;
|
36
|
-
}
|
37
|
-
}
|
38
|
-
}
|
39
|
-
|
40
|
-
.tab-link {
|
41
|
-
background-color: $tab-inactive-color;
|
42
|
-
border-top: $tab-border;
|
43
|
-
color: $dark-gray;
|
44
|
-
display: block;
|
45
|
-
font-weight: bold;
|
46
|
-
padding: $base-spacing/2 $gutter/2;
|
47
|
-
|
48
|
-
@include media($tab-mode) {
|
49
|
-
@include inline-block;
|
50
|
-
border-top-left-radius: $base-border-radius;
|
51
|
-
border-top-right-radius: $base-border-radius;
|
52
|
-
border-top: 0;
|
53
|
-
}
|
54
|
-
|
55
|
-
&:hover {
|
56
|
-
color: $base-link-color;
|
57
|
-
}
|
58
|
-
|
59
|
-
&:focus {
|
60
|
-
outline: none;
|
61
|
-
}
|
62
|
-
|
63
|
-
&.is-active {
|
64
|
-
background-color: $tab-active-background;
|
65
|
-
|
66
|
-
@include media($tab-mode) {
|
67
|
-
background-color: $tab-active-background;
|
68
|
-
border: $tab-border;
|
69
|
-
border-bottom-color: $tab-active-background;
|
70
|
-
margin-bottom: -1px;
|
71
|
-
}
|
72
|
-
}
|
73
|
-
}
|
74
|
-
|
75
|
-
.tab-content {
|
76
|
-
background: $tab-content-background;
|
77
|
-
display: none;
|
78
|
-
padding: $base-spacing $gutter;
|
79
|
-
|
80
|
-
@include media($tab-mode) {
|
81
|
-
border-bottom-left-radius: $base-border-radius;
|
82
|
-
border-bottom-right-radius: $base-border-radius;
|
83
|
-
border-top-right-radius: $base-border-radius;
|
84
|
-
border: $tab-border;
|
85
|
-
float: left;
|
86
|
-
}
|
87
|
-
}
|
88
|
-
}
|
@@ -1,55 +0,0 @@
|
|
1
|
-
.accordion {
|
2
|
-
$accordion-menu-border-color: $base-border-color;
|
3
|
-
$accordion-menu-color: $base-font-color;
|
4
|
-
$accordion-menu-border: 1px solid $accordion-menu-border-color;
|
5
|
-
$accordion-menu-background: lighten($accordion-menu-border-color, 10);
|
6
|
-
$accordion-menu-hover: lighten($accordion-menu-background, 2);
|
7
|
-
$accordion-menu-sub-background: darken($accordion-menu-background, 5);
|
8
|
-
$accordion-menu-sub-inset: darken($accordion-menu-sub-background, 6);
|
9
|
-
$accordion-menu-sub-hover: lighten($accordion-menu-sub-background, 2);
|
10
|
-
$accordion-menu-list-padding: $base-spacing/2 $gutter;
|
11
|
-
|
12
|
-
background-color: $accordion-menu-background;
|
13
|
-
border: $accordion-menu-border;
|
14
|
-
margin-bottom: $base-spacing;
|
15
|
-
|
16
|
-
li {
|
17
|
-
border-bottom: $accordion-menu-border;
|
18
|
-
|
19
|
-
> a {
|
20
|
-
color: $accordion-menu-color;
|
21
|
-
padding: $accordion-menu-list-padding;
|
22
|
-
display: block;
|
23
|
-
}
|
24
|
-
|
25
|
-
&:last-child {
|
26
|
-
border: none;
|
27
|
-
}
|
28
|
-
|
29
|
-
&:hover {
|
30
|
-
background-color: $accordion-menu-hover;
|
31
|
-
}
|
32
|
-
}
|
33
|
-
|
34
|
-
ul.submenu {
|
35
|
-
display: none;
|
36
|
-
|
37
|
-
li {
|
38
|
-
background-color: $accordion-menu-sub-background;
|
39
|
-
|
40
|
-
&:first-child {
|
41
|
-
border-top: $accordion-menu-border;
|
42
|
-
box-shadow: inset 0 1px 1px $accordion-menu-sub-inset;
|
43
|
-
}
|
44
|
-
|
45
|
-
&:hover {
|
46
|
-
background-color: $accordion-menu-sub-hover;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
}
|
50
|
-
|
51
|
-
.is-expanded {
|
52
|
-
display: block;
|
53
|
-
padding-bottom: 0;
|
54
|
-
}
|
55
|
-
}
|
@@ -1,44 +0,0 @@
|
|
1
|
-
.badges {
|
2
|
-
$badge-background: $medium-gray;
|
3
|
-
$badge-dark-color: $dark-gray;
|
4
|
-
$badge-error-color: #FBE3E4;
|
5
|
-
$badge-notice-color: lighten($base-accent-color, 40);
|
6
|
-
$badge-success-color: #E6EFC2;
|
7
|
-
$badge-font-color: #fff;
|
8
|
-
$badge-font-size: $base-font-size * .75;
|
9
|
-
|
10
|
-
display: block;
|
11
|
-
margin-bottom: $base-line-height;
|
12
|
-
|
13
|
-
.badge {
|
14
|
-
@include inline-block;
|
15
|
-
background: $badge-background;
|
16
|
-
border-radius: 2em;
|
17
|
-
color: $badge-font-color;
|
18
|
-
font-size: $badge-font-size;
|
19
|
-
font-weight: 600;
|
20
|
-
line-height: 1;
|
21
|
-
padding: .25em 1em;
|
22
|
-
text-align: center;
|
23
|
-
|
24
|
-
&.dark {
|
25
|
-
background: $badge-dark-color;
|
26
|
-
}
|
27
|
-
|
28
|
-
&.error {
|
29
|
-
background: $badge-error-color;
|
30
|
-
color: darken($badge-error-color, 60);
|
31
|
-
}
|
32
|
-
|
33
|
-
&.notice {
|
34
|
-
background: $badge-notice-color;
|
35
|
-
color: darken($badge-notice-color, 60);
|
36
|
-
}
|
37
|
-
|
38
|
-
&.success {
|
39
|
-
background: $badge-success-color;
|
40
|
-
color: darken($badge-success-color, 60);
|
41
|
-
}
|
42
|
-
}
|
43
|
-
}
|
44
|
-
|
@@ -1,84 +0,0 @@
|
|
1
|
-
.breadcrumb {
|
2
|
-
$breadcrumb-border-color: $base-border-color;
|
3
|
-
$breadcrumb-border: 1px solid $breadcrumb-border-color;
|
4
|
-
$breadcrumb-height: $base-spacing * 1.5;
|
5
|
-
$breadcrumb-arrow-color: $breadcrumb-border-color;
|
6
|
-
$breadcrumb-background: $base-background-color;
|
7
|
-
$breadcrumb-inactive-hover-color: $breadcrumb-background;
|
8
|
-
$breadcrumb-color: $medium-gray;
|
9
|
-
$breadcrumb-color-hover: $base-accent-color;
|
10
|
-
$breadcrumb-color-active: $breadcrumb-color;
|
11
|
-
|
12
|
-
@include inline-block;
|
13
|
-
text-align: left;
|
14
|
-
margin-bottom: $base-spacing;
|
15
|
-
|
16
|
-
a {
|
17
|
-
@include inline-block;
|
18
|
-
background-color: $breadcrumb-background;
|
19
|
-
border: $breadcrumb-border;
|
20
|
-
color: $breadcrumb-color;
|
21
|
-
line-height: $breadcrumb-height;
|
22
|
-
margin-right: -5px;
|
23
|
-
font-size: .8em;
|
24
|
-
padding: 0 $breadcrumb-height/4 0 $breadcrumb-height/2;
|
25
|
-
position: relative;
|
26
|
-
text-decoration: none;
|
27
|
-
margin-bottom: 2px;
|
28
|
-
|
29
|
-
&:first-child {
|
30
|
-
padding-left: $breadcrumb-height/2;
|
31
|
-
border-top-left-radius: $base-border-radius;
|
32
|
-
border-bottom-left-radius: $base-border-radius;
|
33
|
-
}
|
34
|
-
|
35
|
-
&:last-child {
|
36
|
-
background-color: $breadcrumb-background;
|
37
|
-
color: $breadcrumb-color-active;
|
38
|
-
border-bottom-right-radius: $base-border-radius;
|
39
|
-
border-top-right-radius: $base-border-radius;
|
40
|
-
padding-right: $breadcrumb-height/2;
|
41
|
-
}
|
42
|
-
|
43
|
-
&:hover {
|
44
|
-
color: $breadcrumb-color-hover;
|
45
|
-
background-color: $breadcrumb-inactive-hover-color;
|
46
|
-
}
|
47
|
-
|
48
|
-
&:hover:after {
|
49
|
-
border-left-color: $breadcrumb-inactive-hover-color;;
|
50
|
-
}
|
51
|
-
|
52
|
-
&:after,
|
53
|
-
&:before {
|
54
|
-
@include position(absolute, 0px auto 0px 100%);
|
55
|
-
border-bottom: $breadcrumb-height/2 solid transparent;
|
56
|
-
border-left: $breadcrumb-height/4 solid transparent;
|
57
|
-
border-top: $breadcrumb-height/2 solid transparent;
|
58
|
-
content: '';
|
59
|
-
display: block;
|
60
|
-
margin: auto;
|
61
|
-
z-index: 2;
|
62
|
-
}
|
63
|
-
|
64
|
-
&:last-child:after,
|
65
|
-
&:last-child:before {
|
66
|
-
border: none;
|
67
|
-
}
|
68
|
-
|
69
|
-
&:before {
|
70
|
-
border-left-color: $breadcrumb-arrow-color;
|
71
|
-
margin-left: 1px;
|
72
|
-
z-index: 1;
|
73
|
-
}
|
74
|
-
&:after {
|
75
|
-
border-left-color: $breadcrumb-background;
|
76
|
-
}
|
77
|
-
|
78
|
-
@include media($medium-screen) {
|
79
|
-
font-size: 1em;
|
80
|
-
padding: 0 $breadcrumb-height/2 0 $breadcrumb-height/1.5;
|
81
|
-
}
|
82
|
-
}
|
83
|
-
}
|
84
|
-
|
@@ -1,141 +0,0 @@
|
|
1
|
-
$browser-top-bar-height: 1.5em;
|
2
|
-
$browser-circle-size: .5em;
|
3
|
-
$browser-circle-margin: ($browser-top-bar-height - $browser-circle-size) / 2;
|
4
|
-
$browser-top-bar-background: lighten(#DFDFDF, 5);
|
5
|
-
$browser-border: 0px;
|
6
|
-
$browser-background: $base-background-color;
|
7
|
-
$browser-content-background-1: #F0F0F0;
|
8
|
-
$browser-content-background-2: $base-background-color;
|
9
|
-
$browser-content-background-3: #F0F0F0;
|
10
|
-
|
11
|
-
.browsers {
|
12
|
-
display:inline-block;
|
13
|
-
padding-top: 0;
|
14
|
-
text-align:center;
|
15
|
-
width:100%;
|
16
|
-
|
17
|
-
@include media($large-screen) {
|
18
|
-
padding-top: 2em;
|
19
|
-
}
|
20
|
-
}
|
21
|
-
|
22
|
-
.browser-top-bar {
|
23
|
-
@include linear-gradient($browser-top-bar-background, darken($browser-top-bar-background, 2));
|
24
|
-
border-top-left-radius: $base-border-radius;
|
25
|
-
border-top-right-radius: $base-border-radius;
|
26
|
-
border: $browser-border;
|
27
|
-
box-shadow: inset 0 1px 0 transparentize(white, .6);
|
28
|
-
height: $browser-top-bar-height;
|
29
|
-
width: 100%;
|
30
|
-
}
|
31
|
-
|
32
|
-
.browser-circle {
|
33
|
-
border-radius: $browser-circle-size * 2;
|
34
|
-
box-shadow: 0 1px 0px transparentize(white, .5), inset 0 1px 1px transparentize(black, 0.8);
|
35
|
-
display: inline-block;
|
36
|
-
@include size($browser-circle-size);
|
37
|
-
margin: $browser-circle-margin 0;
|
38
|
-
}
|
39
|
-
|
40
|
-
.browser-circle:nth-child(1) {
|
41
|
-
background: #FF6F55;
|
42
|
-
margin-left: $browser-circle-margin;
|
43
|
-
}
|
44
|
-
|
45
|
-
.browser-circle:nth-child(2) {
|
46
|
-
background: #F5B01D;
|
47
|
-
margin-left: $browser-circle-margin / 3;
|
48
|
-
}
|
49
|
-
|
50
|
-
.browser-circle:nth-child(3) {
|
51
|
-
background: #51B151;
|
52
|
-
margin-left: $browser-circle-margin / 3;
|
53
|
-
}
|
54
|
-
|
55
|
-
//////////////////////////////////////////////
|
56
|
-
|
57
|
-
.browser {
|
58
|
-
border-bottom: none;
|
59
|
-
border-top-left-radius: $base-border-radius;
|
60
|
-
border-top-right-radius: $base-border-radius;
|
61
|
-
box-shadow: 0 3px 5px transparentize(black, .7);
|
62
|
-
display: inline-block;
|
63
|
-
text-align: left;
|
64
|
-
width:20%;
|
65
|
-
}
|
66
|
-
|
67
|
-
.browser:nth-child(1) {
|
68
|
-
background-color: $browser-content-background-1;
|
69
|
-
display: none;
|
70
|
-
|
71
|
-
@include media($large-screen) {
|
72
|
-
display: inline-block;
|
73
|
-
}
|
74
|
-
|
75
|
-
.browser-content {
|
76
|
-
background: url(https://raw.githubusercontent.com/thoughtbot/refills/master/source/images/refills-screenshot1.png);
|
77
|
-
background-color: $browser-content-background-1;
|
78
|
-
background-position: top;
|
79
|
-
background-repeat: no-repeat;
|
80
|
-
background-size: cover;
|
81
|
-
}
|
82
|
-
}
|
83
|
-
|
84
|
-
.browser:nth-child(2) {
|
85
|
-
@include transform(scale(1));
|
86
|
-
background-color: $browser-content-background-2;
|
87
|
-
width: 90%;
|
88
|
-
|
89
|
-
@include media($large-screen) {
|
90
|
-
@include transform(scale(1.2));
|
91
|
-
width: 40%;
|
92
|
-
}
|
93
|
-
|
94
|
-
.browser-content {
|
95
|
-
background: url(https://raw.githubusercontent.com/thoughtbot/refills/9c16f8b69d857c296c85f2d8c434e825f813a566/source/images/refills-screenshot2.jpg);
|
96
|
-
background-color: $browser-content-background-2;
|
97
|
-
background-position: top;
|
98
|
-
background-repeat: no-repeat;
|
99
|
-
background-size: cover;
|
100
|
-
}
|
101
|
-
}
|
102
|
-
|
103
|
-
.browser:nth-child(3) {
|
104
|
-
background-color: $browser-content-background-3;
|
105
|
-
display: none;
|
106
|
-
|
107
|
-
@include media($large-screen) {
|
108
|
-
display: inline-block;
|
109
|
-
}
|
110
|
-
|
111
|
-
.browser-content {
|
112
|
-
background: url(https://raw.githubusercontent.com/thoughtbot/refills/master/source/images/refills-screenshot3.png);
|
113
|
-
background-color: $browser-content-background-3;
|
114
|
-
background-position: top;
|
115
|
-
background-repeat: no-repeat;
|
116
|
-
background-size: cover;
|
117
|
-
}
|
118
|
-
}
|
119
|
-
|
120
|
-
.browser-content {
|
121
|
-
border-left: $browser-border;
|
122
|
-
border-right: $browser-border;
|
123
|
-
height: 17em;
|
124
|
-
overflow: hidden;
|
125
|
-
|
126
|
-
@include media($large-screen) {
|
127
|
-
height: 18em;
|
128
|
-
}
|
129
|
-
}
|
130
|
-
|
131
|
-
//////////////////////////////////////////////
|
132
|
-
|
133
|
-
.cover {
|
134
|
-
background: $base-background-color;
|
135
|
-
border-top: 1px solid #E6E6E6;
|
136
|
-
height: 3.2em;
|
137
|
-
margin-top: -1em;
|
138
|
-
position: relative;
|
139
|
-
width: 100%;
|
140
|
-
z-index: 999;
|
141
|
-
}
|
@@ -1,81 +0,0 @@
|
|
1
|
-
.button-group {
|
2
|
-
$button-group-background: $base-background-color;
|
3
|
-
$button-group-color: lighten($base-font-color, 30);
|
4
|
-
$button-group-border: 1px solid silver;
|
5
|
-
$button-group-inner-border: 1px solid lighten(silver, 18);
|
6
|
-
$button-group-background-checked: $base-accent-color;
|
7
|
-
$button-group-color-checked: white;
|
8
|
-
$button-group-border-checked: darken($button-group-background-checked, 15);
|
9
|
-
|
10
|
-
input {
|
11
|
-
display: none;
|
12
|
-
}
|
13
|
-
|
14
|
-
label {
|
15
|
-
margin-bottom: 0;
|
16
|
-
|
17
|
-
@include media($large-screen) {
|
18
|
-
float: left;
|
19
|
-
}
|
20
|
-
|
21
|
-
.button-group-item {
|
22
|
-
background: $button-group-background;
|
23
|
-
border-left: $button-group-border;
|
24
|
-
border-radius: 0;
|
25
|
-
border-right: $button-group-border;
|
26
|
-
color: $button-group-color;
|
27
|
-
cursor: pointer;
|
28
|
-
display: inline-block;
|
29
|
-
font-size: $base-font-size;
|
30
|
-
font-weight: normal;
|
31
|
-
line-height: 1;
|
32
|
-
padding: .75em 1em;
|
33
|
-
width: 100%;
|
34
|
-
|
35
|
-
@include media($large-screen) {
|
36
|
-
border-bottom: $button-group-border;
|
37
|
-
border-left: 0;
|
38
|
-
border-right: $button-group-inner-border;
|
39
|
-
border-top: $button-group-border;
|
40
|
-
width: auto;
|
41
|
-
}
|
42
|
-
|
43
|
-
&:hover {
|
44
|
-
background-color: darken($button-group-background, 3);
|
45
|
-
}
|
46
|
-
}
|
47
|
-
|
48
|
-
&:first-child .button-group-item {
|
49
|
-
border-top-left-radius: $base-border-radius;
|
50
|
-
border-top-right-radius: $base-border-radius;
|
51
|
-
border-top: $button-group-border;
|
52
|
-
|
53
|
-
@include media($large-screen) {
|
54
|
-
border-bottom-left-radius: $base-border-radius;
|
55
|
-
border-left: $button-group-border;
|
56
|
-
border-top-left-radius: $base-border-radius;
|
57
|
-
border-top-right-radius: 0;
|
58
|
-
}
|
59
|
-
}
|
60
|
-
|
61
|
-
&:last-child .button-group-item {
|
62
|
-
border-bottom-left-radius: $base-border-radius;
|
63
|
-
border-bottom-right-radius: $base-border-radius;
|
64
|
-
border-bottom: $button-group-border;
|
65
|
-
|
66
|
-
@include media($large-screen) {
|
67
|
-
border-bottom-left-radius: 0;
|
68
|
-
border-bottom-right-radius: $base-border-radius;
|
69
|
-
border-right: $button-group-border;
|
70
|
-
border-top-right-radius: $base-border-radius;
|
71
|
-
}
|
72
|
-
}
|
73
|
-
|
74
|
-
input:checked + .button-group-item {
|
75
|
-
background: $button-group-background-checked;
|
76
|
-
border: 1px solid $button-group-border-checked;
|
77
|
-
box-shadow: inset 0 1px 2px darken($button-group-background-checked, 10);
|
78
|
-
color: $button-group-color-checked;
|
79
|
-
}
|
80
|
-
}
|
81
|
-
}
|
@@ -1,132 +0,0 @@
|
|
1
|
-
.cards {
|
2
|
-
@include clearfix;
|
3
|
-
}
|
4
|
-
|
5
|
-
.card {
|
6
|
-
$card-border-color: $base-border-color;
|
7
|
-
$card-border: 1px solid $card-border-color;
|
8
|
-
$card-background: lighten($card-border-color, 10);
|
9
|
-
$card-header-background: $card-background;
|
10
|
-
$card-hover-background: lighten($card-background, 5);
|
11
|
-
$card-image-background: #DBD199;
|
12
|
-
$card-image-hover-background: lighten($card-image-background, 5);
|
13
|
-
$card-stats-color: lighten($base-accent-color, 10);
|
14
|
-
|
15
|
-
@include transition (all 0.2s ease-in-out);
|
16
|
-
background-color: $card-background;
|
17
|
-
border-radius: $base-border-radius;
|
18
|
-
border: $card-border;
|
19
|
-
margin-bottom: $base-spacing;
|
20
|
-
cursor: pointer;
|
21
|
-
box-shadow: 0 2px 4px darken($base-background-color, 10);
|
22
|
-
position: relative;
|
23
|
-
|
24
|
-
@include media($large-screen) {
|
25
|
-
@include span-columns(4);
|
26
|
-
@include omega(3n);
|
27
|
-
}
|
28
|
-
|
29
|
-
.card-image {
|
30
|
-
overflow: hidden;
|
31
|
-
max-height: 150px;
|
32
|
-
|
33
|
-
img {
|
34
|
-
width: 100%;
|
35
|
-
@include transition (all 0.2s ease-in-out);
|
36
|
-
background: $card-image-background;
|
37
|
-
border-top-left-radius: $base-border-radius;
|
38
|
-
border-top-right-radius: $base-border-radius;
|
39
|
-
}
|
40
|
-
}
|
41
|
-
|
42
|
-
.ribbon-wrapper {
|
43
|
-
$ribbon-size: 85px;
|
44
|
-
$ribbon-background: $base-accent-color;
|
45
|
-
@include size($ribbon-size);
|
46
|
-
overflow: hidden;
|
47
|
-
position: absolute;
|
48
|
-
top: -1px;
|
49
|
-
right: -1px;
|
50
|
-
|
51
|
-
.ribbon {
|
52
|
-
font-size: .8em;
|
53
|
-
font-weight: 800;
|
54
|
-
text-align: center;
|
55
|
-
@include transform(rotate(45deg));
|
56
|
-
position: relative;
|
57
|
-
padding: 2px 7px;
|
58
|
-
left: -5px;
|
59
|
-
top: 15px;
|
60
|
-
width: 120px;
|
61
|
-
background-color: $ribbon-background;
|
62
|
-
color: white;
|
63
|
-
box-shadow: 0px 0px 3px rgba(0,0,0,0.3);
|
64
|
-
}
|
65
|
-
}
|
66
|
-
|
67
|
-
.card-header {
|
68
|
-
@include transition (all 0.2s ease-in-out);
|
69
|
-
background-color: $card-header-background;
|
70
|
-
border-bottom: $card-border;
|
71
|
-
border-radius: $base-border-radius $base-border-radius 0 0;
|
72
|
-
font-weight: bold;
|
73
|
-
padding: $base-spacing/3 $gutter/2;
|
74
|
-
}
|
75
|
-
|
76
|
-
.card-copy {
|
77
|
-
padding: $base-spacing/2 $gutter/2;
|
78
|
-
font-size: .9em;
|
79
|
-
line-height: 1.5em;
|
80
|
-
}
|
81
|
-
|
82
|
-
.card-stats {
|
83
|
-
padding: $base-spacing/2 $gutter/2;
|
84
|
-
overflow: auto;
|
85
|
-
|
86
|
-
ul li {
|
87
|
-
display: inline;
|
88
|
-
color: $card-stats-color;
|
89
|
-
font-weight: 800;
|
90
|
-
font-size: 1.2em;
|
91
|
-
float: left;
|
92
|
-
border-right: 1px solid transparentize($base-font-color, .8);
|
93
|
-
line-height: 1.1em;
|
94
|
-
padding: 0 .7em 0 .7em;
|
95
|
-
|
96
|
-
&:first-child {
|
97
|
-
padding-left: 0;
|
98
|
-
}
|
99
|
-
|
100
|
-
&:last-child {
|
101
|
-
border-right: 0;
|
102
|
-
}
|
103
|
-
|
104
|
-
span {
|
105
|
-
color: $base-font-color;
|
106
|
-
font-size: .7em;
|
107
|
-
display: block;
|
108
|
-
font-weight: normal;
|
109
|
-
}
|
110
|
-
}
|
111
|
-
}
|
112
|
-
|
113
|
-
&:hover {
|
114
|
-
background-color: $card-hover-background;
|
115
|
-
|
116
|
-
.card-image img {
|
117
|
-
background: $card-image-hover-background;
|
118
|
-
}
|
119
|
-
|
120
|
-
.card-header {
|
121
|
-
background-color: $card-hover-background;
|
122
|
-
}
|
123
|
-
}
|
124
|
-
|
125
|
-
&:active {
|
126
|
-
background-color: $card-background;
|
127
|
-
|
128
|
-
.card-header {
|
129
|
-
background-color: $card-background;
|
130
|
-
}
|
131
|
-
}
|
132
|
-
}
|