best 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +19 -0
- data/framework/best/best.rb +32 -0
- data/framework/best/stylesheets/_best.scss +15 -0
- data/framework/best/stylesheets/best/_button.scss +49 -0
- data/framework/best/stylesheets/best/_effects.scss +5 -0
- data/framework/best/stylesheets/best/_form.scss +6 -0
- data/framework/best/stylesheets/best/_layout.scss +7 -0
- data/framework/best/stylesheets/best/_navigation.scss +8 -0
- data/framework/best/stylesheets/best/_reset.scss +4 -0
- data/framework/best/stylesheets/best/_utilities.scss +4 -0
- data/framework/best/stylesheets/best/effects/_iterative.scss +15 -0
- data/framework/best/stylesheets/best/effects/_keyframes.scss +121 -0
- data/framework/best/stylesheets/best/form/_form-layout.scss +120 -0
- data/framework/best/stylesheets/best/form/_form-style.scss +41 -0
- data/framework/best/stylesheets/best/form/_form-validation.scss +25 -0
- data/framework/best/stylesheets/best/layout/_dl-horizontal.scss +32 -0
- data/framework/best/stylesheets/best/layout/_equal-heights.scss +70 -0
- data/framework/best/stylesheets/best/layout/_layout-center.scss +20 -0
- data/framework/best/stylesheets/best/layout/_mediablock.scss +34 -0
- data/framework/best/stylesheets/best/navigation/_navigation-breadcrumb.scss +59 -0
- data/framework/best/stylesheets/best/navigation/_navigation-dropdown.scss +39 -0
- data/framework/best/stylesheets/best/navigation/_navigation-horizontal.scss +34 -0
- data/framework/best/stylesheets/best/navigation/_navigation.scss +28 -0
- data/framework/best/stylesheets/best/navigation/_tinynav.scss +18 -0
- data/framework/best/stylesheets/best/reset/_normalize.scss +376 -0
- data/framework/best/stylesheets/best/utilities/_em.scss +6 -0
- data/template/breakpoints.html +89 -0
- data/template/codekit-config.json +1142 -0
- data/template/colors.html +115 -0
- data/template/components/custom-select/arrow.gif +0 -0
- data/template/components/custom-select/custom-select.css +23 -0
- data/template/components/custom-select/custom-select.html +31 -0
- data/template/components/custom-select/custom-select.js +9 -0
- data/template/components/custom-select/customSelect.jquery.js +56 -0
- data/template/components/custom-select/customSelect.jquery.min.js +1 -0
- data/template/components/dropdown/dropdown.css +54 -0
- data/template/components/dropdown/dropdown.html +34 -0
- data/template/components/dropdown/dropdown.js +50 -0
- data/template/components/example component/component.css +5 -0
- data/template/components/example component/component.html +13 -0
- data/template/components/example component/component.js b/data/template/components/example → component/component.js +0 -0
- data/template/components/fancybox/CHANGELOG.md +115 -0
- data/template/components/fancybox/README.md +217 -0
- data/template/components/fancybox/component.json +8 -0
- data/template/components/fancybox/demo/1_b.jpg +0 -0
- data/template/components/fancybox/demo/1_s.jpg +0 -0
- data/template/components/fancybox/demo/2_b.jpg +0 -0
- data/template/components/fancybox/demo/2_s.jpg +0 -0
- data/template/components/fancybox/demo/3_b.jpg +0 -0
- data/template/components/fancybox/demo/3_s.jpg +0 -0
- data/template/components/fancybox/demo/4_b.jpg +0 -0
- data/template/components/fancybox/demo/4_s.jpg +0 -0
- data/template/components/fancybox/demo/5_b.jpg +0 -0
- data/template/components/fancybox/demo/5_s.jpg +0 -0
- data/template/components/fancybox/demo/ajax.txt +15 -0
- data/template/components/fancybox/demo/iframe.html +26 -0
- data/template/components/fancybox/demo/index.html +307 -0
- data/template/components/fancybox/lib/jquery-1.8.2.min.js +2 -0
- data/template/components/fancybox/lib/jquery.mousewheel-3.0.6.pack.js +13 -0
- data/template/components/fancybox/source/blank.gif +0 -0
- data/template/components/fancybox/source/fancybox_loading.gif +0 -0
- data/template/components/fancybox/source/fancybox_overlay.png +0 -0
- data/template/components/fancybox/source/fancybox_sprite.png +0 -0
- data/template/components/fancybox/source/helpers/fancybox_buttons.png +0 -0
- data/template/components/fancybox/source/helpers/jquery.fancybox-buttons.css +96 -0
- data/template/components/fancybox/source/helpers/jquery.fancybox-buttons.js +121 -0
- data/template/components/fancybox/source/helpers/jquery.fancybox-media.js +196 -0
- data/template/components/fancybox/source/helpers/jquery.fancybox-thumbs.css +54 -0
- data/template/components/fancybox/source/helpers/jquery.fancybox-thumbs.js +162 -0
- data/template/components/fancybox/source/jquery.fancybox.css +249 -0
- data/template/components/fancybox/source/jquery.fancybox.js +1985 -0
- data/template/components/fancybox/source/jquery.fancybox.pack.js +45 -0
- data/template/components/jquery/component.json +14 -0
- data/template/components/jquery/composer.json +23 -0
- data/template/components/jquery/jquery.js +9472 -0
- data/template/components/jquery/jquery.min.js +2 -0
- data/template/config.rb +25 -0
- data/template/css/style.css +1094 -0
- data/template/fancybox.html +118 -0
- data/template/forms.html +132 -0
- data/template/grid.html +122 -0
- data/template/index.html +116 -0
- data/template/jade/--- from cybex as inspiration/keyvisuals.jade +37 -0
- data/template/jade/--- from cybex as inspiration/m-carousel.jade +37 -0
- data/template/jade/--- from cybex as inspiration/m-faq.jade +23 -0
- data/template/jade/--- from cybex as inspiration/m-keyvisual.jade +55 -0
- data/template/jade/--- from cybex as inspiration/m-search.jade +3 -0
- data/template/jade/--- from cybex as inspiration/m-slideshow.jade +12 -0
- data/template/jade/--- from cybex as inspiration/m-social.jade +10 -0
- data/template/jade/breakpoints.jade +26 -0
- data/template/jade/colors.jade +32 -0
- data/template/jade/fancybox.jade +34 -0
- data/template/jade/forms.jade +39 -0
- data/template/jade/grid.jade +36 -0
- data/template/jade/includes/module-development.jade +1 -0
- data/template/jade/includes/nav-development.jade +27 -0
- data/template/jade/includes/nav-meta.jade +6 -0
- data/template/jade/includes/nav-primary.jade +5 -0
- data/template/jade/includes/nav-secondary.jade +18 -0
- data/template/jade/index.jade +33 -0
- data/template/jade/layouts/layout-footer.jade +5 -0
- data/template/jade/layouts/layout-header.jade +3 -0
- data/template/jade/layouts/layout-html5.jade +26 -0
- data/template/jade/layouts/layout-page.jade +40 -0
- data/template/jade/mixins/form-helpers.jade +10 -0
- data/template/jade/mixins/mixin-menu.jade +3 -0
- data/template/jade/typography.jade +38 -0
- data/template/js/footer.js +16 -0
- data/template/js/footer.min.js +3 -0
- data/template/js/header.js +1 -0
- data/template/js/header.min.js +3 -0
- data/template/js/main.js +18 -0
- data/template/js/main.min.js +1 -0
- data/template/js/vendor/jquery.flexslider.min.js +6 -0
- data/template/js/vendor/modernizr-custom.js +4 -0
- data/template/readme.md +6 -0
- data/template/sass/_base.scss +66 -0
- data/template/sass/_config.scss +58 -0
- data/template/sass/_labs.scss +4 -0
- data/template/sass/_layout.scss +26 -0
- data/template/sass/_m-breakpoints.scss +42 -0
- data/template/sass/_m-colors.scss +39 -0
- data/template/sass/_m-navigation.scss +43 -0
- data/template/sass/_m-offcanvas.scss +60 -0
- data/template/sass/_module.scss +63 -0
- data/template/sass/style.scss +38 -0
- data/template/typography.html +120 -0
- metadata +130 -3
data/README.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# Best/Rough
|
2
|
+
This project aims to improve quality, consistency and overall development speed.
|
3
|
+
|
4
|
+
## Structure
|
5
|
+
|
6
|
+
* best
|
7
|
+
* components
|
8
|
+
* {here goes our components}
|
9
|
+
|
10
|
+
* framework
|
11
|
+
* best
|
12
|
+
* stylesheets
|
13
|
+
* best (the main scss)
|
14
|
+
* template (boilerplate for new projects)
|
15
|
+
|
16
|
+
|
17
|
+
## How to use
|
18
|
+
Install it. Reference it, configure it. Apply it.
|
19
|
+
Remember to check the config.rb and adjust to your local system paths.
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module Best
|
2
|
+
end
|
3
|
+
|
4
|
+
%w(dependencies util browser_support sass_extensions version errors quick_cache logger).each do |lib|
|
5
|
+
require "compass/#{lib}"
|
6
|
+
end
|
7
|
+
|
8
|
+
require 'sass/callbacks'
|
9
|
+
|
10
|
+
module Compass
|
11
|
+
def base_directory
|
12
|
+
File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
13
|
+
end
|
14
|
+
def lib_directory
|
15
|
+
File.expand_path(File.join(File.dirname(__FILE__)))
|
16
|
+
end
|
17
|
+
def shared_extension_paths
|
18
|
+
@shared_extension_paths ||= begin
|
19
|
+
if ENV["HOME"] && File.directory?(ENV["HOME"])
|
20
|
+
[File.expand_path("~/.compass/extensions")]
|
21
|
+
else
|
22
|
+
[]
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
module_function :base_directory, :lib_directory, :shared_extension_paths
|
27
|
+
extend QuickCache
|
28
|
+
end
|
29
|
+
|
30
|
+
%w(configuration frameworks app_integration actions compiler).each do |lib|
|
31
|
+
require "compass/#{lib}"
|
32
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
|
2
|
+
// Best framework
|
3
|
+
// ============================================================================
|
4
|
+
// This is your framework's main stylesheet. Use it to import all default modules.
|
5
|
+
// No import should print code directly (well, except the reset?)
|
6
|
+
|
7
|
+
// Load utilities and reset first
|
8
|
+
@import "best/utilities";
|
9
|
+
@import "best/reset";
|
10
|
+
|
11
|
+
@import "best/button";
|
12
|
+
@import "best/effects";
|
13
|
+
@import "best/form";
|
14
|
+
@import "best/navigation";
|
15
|
+
@import "best/layout";
|
@@ -0,0 +1,49 @@
|
|
1
|
+
// Buttons
|
2
|
+
// ============================================================================
|
3
|
+
/*
|
4
|
+
Buttons made easy.
|
5
|
+
button-color() applies background-colors/gradients and font-color.
|
6
|
+
button applies layout
|
7
|
+
*/
|
8
|
+
|
9
|
+
/*
|
10
|
+
<button class="button">This is a standard button</button>
|
11
|
+
<button class="button-color">This only has the button-color() mixin applied</button>
|
12
|
+
*/
|
13
|
+
|
14
|
+
@import "compass/css3/border-radius";
|
15
|
+
@import "compass/css3/images";
|
16
|
+
@import "compass/css3/text-shadow";
|
17
|
+
@import "compass/css3/transition";
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
@mixin button-color($color1: white, $color2: #555, $text-color: white) {
|
22
|
+
background-color: $color1; // fallback
|
23
|
+
@include background(linear-gradient($color1, $color2));
|
24
|
+
border-color: rgba($color1, 0.5);
|
25
|
+
color: $text-color;
|
26
|
+
|
27
|
+
&:hover {
|
28
|
+
color: $text-color;
|
29
|
+
@include background(linear-gradient( lighten($color1,20%), $color2));
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
@mixin button($color1: white, $color2: black, $padding: .5em 1em, $smooth: true, $border-radius: .5em) {
|
36
|
+
@include button-color($color1, $color2);
|
37
|
+
@include border-radius($border-radius);
|
38
|
+
@include text-shadow(0 0 1px rgba(0,0,0,.5));
|
39
|
+
@include transition(all .2s ease-in-out);
|
40
|
+
display: inline-block;
|
41
|
+
padding: $padding;
|
42
|
+
border-style: solid;
|
43
|
+
border-width: 1px;
|
44
|
+
|
45
|
+
&:hover {
|
46
|
+
cursor: pointer;
|
47
|
+
text-decoration: none;
|
48
|
+
}
|
49
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
// Navigation
|
2
|
+
// ============================================================================
|
3
|
+
|
4
|
+
@import "best/navigation/navigation";
|
5
|
+
@import "best/navigation/navigation-breadcrumb";
|
6
|
+
@import "best/navigation/navigation-dropdown";
|
7
|
+
@import "best/navigation/navigation-horizontal";
|
8
|
+
@import "best/navigation/tinynav";
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// Iterative delay
|
2
|
+
// ============================================================================
|
3
|
+
/*
|
4
|
+
Enables you to run effects iterative through an array of elements. Takes three arguments: $selector, $count and $delay. $count is the number of elements (nth-childs) to run through.
|
5
|
+
*/
|
6
|
+
|
7
|
+
@import "compass/css3/transition";
|
8
|
+
|
9
|
+
@mixin iterative-delay($selector: unquote(".item"), $count: 2, $delay: 0.07s) {
|
10
|
+
@for $i from 1 through $count {
|
11
|
+
#{$selector}:nth-child(#{$i}) {
|
12
|
+
@include transition-delay($delay * $i);
|
13
|
+
}
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,121 @@
|
|
1
|
+
// Keyframes
|
2
|
+
// ============================================================================
|
3
|
+
@import "compass/css3/animation";
|
4
|
+
@import "compass/css3/transform";
|
5
|
+
@import "compass/css3/transition";
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
@mixin fadeIns() {
|
10
|
+
// 3D transition
|
11
|
+
@include keyframes(flipFront) {
|
12
|
+
0% {
|
13
|
+
@include rotateX(-180deg);
|
14
|
+
}
|
15
|
+
100% {
|
16
|
+
@include rotateX(0deg);
|
17
|
+
}
|
18
|
+
}
|
19
|
+
@include keyframes(flipBack) {
|
20
|
+
0% {
|
21
|
+
@include rotateX(180deg);
|
22
|
+
}
|
23
|
+
100% {
|
24
|
+
@include rotateX(0deg);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
// Pop up
|
29
|
+
@include keyframes(popUp) {
|
30
|
+
0% {
|
31
|
+
@include scale(0);
|
32
|
+
@include rotateX(0deg);
|
33
|
+
}
|
34
|
+
100% {
|
35
|
+
@include scale(1);
|
36
|
+
@include rotateX(0deg);
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
@include keyframes(fadeInSoft) {
|
41
|
+
0% {
|
42
|
+
opacity: 0.6;
|
43
|
+
@include rotateX(0deg);
|
44
|
+
}
|
45
|
+
100% {
|
46
|
+
opacity: 1;
|
47
|
+
@include rotateX(0deg);
|
48
|
+
}
|
49
|
+
}
|
50
|
+
@include keyframes(fadeOutSoft) {
|
51
|
+
0% {
|
52
|
+
opacity: 1;
|
53
|
+
@include rotateX(0deg);
|
54
|
+
}
|
55
|
+
100% {
|
56
|
+
opacity: 0.6;
|
57
|
+
@include rotateX(0deg);
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
@include keyframes(fadeIn) {
|
62
|
+
0% {
|
63
|
+
opacity: 0;
|
64
|
+
@include rotateX(0deg);
|
65
|
+
}
|
66
|
+
100% {
|
67
|
+
opacity: 1;
|
68
|
+
@include rotateX(0deg);
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
@include keyframes(fadeOut) {
|
73
|
+
0% {
|
74
|
+
opacity: 1;
|
75
|
+
@include rotateX(0deg);
|
76
|
+
}
|
77
|
+
100% {
|
78
|
+
opacity: 0;
|
79
|
+
@include rotateX(0deg);
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
@include keyframes(fadeInDown) {
|
84
|
+
0% {
|
85
|
+
opacity: 0;
|
86
|
+
@include translateX(+3px);
|
87
|
+
@include rotateX(0deg);
|
88
|
+
}
|
89
|
+
100% {
|
90
|
+
opacity: 1;
|
91
|
+
@include translateX(0px);
|
92
|
+
@include rotateX(0deg);
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
@include keyframes(fadeInUp) {
|
97
|
+
0% {
|
98
|
+
opacity: 0;
|
99
|
+
@include translateX(-3px);
|
100
|
+
@include rotateX(0deg);
|
101
|
+
}
|
102
|
+
100% {
|
103
|
+
opacity: 1;
|
104
|
+
@include translateX(0px);
|
105
|
+
@include rotateX(0deg);
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
@include keyframes(fadeOutUp) {
|
110
|
+
0% {
|
111
|
+
opacity: 1;
|
112
|
+
@include translateX(0px);
|
113
|
+
@include rotateX(0deg);
|
114
|
+
}
|
115
|
+
100% {
|
116
|
+
opacity: 0;
|
117
|
+
@include translateX(+3px);
|
118
|
+
@include rotateX(0deg);
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}
|
@@ -0,0 +1,120 @@
|
|
1
|
+
// Form layout
|
2
|
+
// ============================================================================
|
3
|
+
/* Important: this requires the rem and susy modules. And the markup could be a lot better. Actually, you don't use this yet.
|
4
|
+
|
5
|
+
````<form>
|
6
|
+
<div class="control-group">
|
7
|
+
<label class="control-label"></label>
|
8
|
+
<div class="controls">
|
9
|
+
<input>
|
10
|
+
</div>
|
11
|
+
</div>
|
12
|
+
</form>````
|
13
|
+
*/
|
14
|
+
|
15
|
+
@import "compass/utilities/general/clearfix";
|
16
|
+
|
17
|
+
|
18
|
+
// Basic form layout
|
19
|
+
// ============================================================================
|
20
|
+
/* Help */
|
21
|
+
@mixin form-basic($margin: 1em) {
|
22
|
+
.control-group {
|
23
|
+
margin-bottom: $margin;
|
24
|
+
}
|
25
|
+
.control-label {
|
26
|
+
display: block;
|
27
|
+
margin-bottom: .4em;
|
28
|
+
}
|
29
|
+
.control-inline {
|
30
|
+
label { display: inline; }
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
// Vertical form layout
|
37
|
+
// ============================================================================
|
38
|
+
/* Help */
|
39
|
+
@mixin form-vertical {
|
40
|
+
.control-group {
|
41
|
+
clear: both;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
// Horiztontal form layout
|
48
|
+
// ============================================================================
|
49
|
+
/* Help */
|
50
|
+
@mixin form-horizontal {
|
51
|
+
clear: both;
|
52
|
+
.control-group {
|
53
|
+
clear: none;
|
54
|
+
float: left;
|
55
|
+
margin-right: 1em;
|
56
|
+
|
57
|
+
@media only screen and (max-width: 400px) {
|
58
|
+
float: none;
|
59
|
+
margin-right: 0;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
}
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
// Form layout with labels on the left
|
68
|
+
// ============================================================================
|
69
|
+
/* Help */
|
70
|
+
@mixin form-left-aligned {
|
71
|
+
|
72
|
+
legend {
|
73
|
+
margin-left: 260px;
|
74
|
+
}
|
75
|
+
.control-group {
|
76
|
+
}
|
77
|
+
.control-label {
|
78
|
+
float: left;
|
79
|
+
width: 240px;
|
80
|
+
padding-top: .5em;
|
81
|
+
text-align: right;
|
82
|
+
margin-bottom: 0;
|
83
|
+
}
|
84
|
+
.controls {
|
85
|
+
margin-left: 260px;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
// Form layout in two cols
|
92
|
+
// ============================================================================
|
93
|
+
/* Help */
|
94
|
+
@mixin form-twocol {
|
95
|
+
@include pie-clearfix;
|
96
|
+
|
97
|
+
label { display: block; }
|
98
|
+
.control-group {
|
99
|
+
@include span-columns(2,4);
|
100
|
+
&:nth-child(2n) { @include omega;}
|
101
|
+
|
102
|
+
// stop nested elements from floating
|
103
|
+
.control-group {
|
104
|
+
@include reset-columns;
|
105
|
+
&:last-child { margin-bottom: 0; }
|
106
|
+
}
|
107
|
+
|
108
|
+
@media only screen and (max-width: 30em) {
|
109
|
+
@include reset-columns;
|
110
|
+
&:nth-child(2n) { @include reset-columns; }
|
111
|
+
}
|
112
|
+
}
|
113
|
+
input[type="text"],
|
114
|
+
input[type="number"],
|
115
|
+
input[type="email"],
|
116
|
+
input[type="password"],
|
117
|
+
textarea {
|
118
|
+
width: 100%;
|
119
|
+
}
|
120
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
// Form style
|
2
|
+
// ============================================================================
|
3
|
+
/* Applies basic styling for form elements. */
|
4
|
+
|
5
|
+
@import "compass/css3/border-radius";
|
6
|
+
@import "compass/css3/box-shadow";
|
7
|
+
@import "compass/css3/box-sizing";
|
8
|
+
@import "compass/css3/transition";
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
@mixin form-style(
|
13
|
+
$background-color: #fff,
|
14
|
+
$border-color: #bbb,
|
15
|
+
$focus-border-color: darken($border-color, 10),
|
16
|
+
$padding: .5em,
|
17
|
+
$border-radius: .5em,
|
18
|
+
$box-shadow: 0 0 5px rgba(0, 0, 0, 0.15)
|
19
|
+
){
|
20
|
+
|
21
|
+
input[type=email],
|
22
|
+
input[type=text],
|
23
|
+
input[type=search],
|
24
|
+
input[type=password],
|
25
|
+
textarea {
|
26
|
+
@include box-sizing(border-box);
|
27
|
+
@include box-shadow($box-shadow);
|
28
|
+
@include border-radius($border-radius);
|
29
|
+
@include transition(all .2s);
|
30
|
+
padding: $padding;
|
31
|
+
*padding: $padding 0; /* avoids problem in older browsers */
|
32
|
+
background-color: $background-color;
|
33
|
+
border: 1px solid $border-color;
|
34
|
+
|
35
|
+
&:focus {
|
36
|
+
border-color: $focus-border-color;
|
37
|
+
outline: 0;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
}
|