metro-rails 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,178 @@
1
+ /*
2
+ * Metro UI CSS v 1.0.1
3
+ * Copyright 2012 Sergey Pimenov
4
+ * Licensed under the MIT Lilcense
5
+ */
6
+
7
+
8
+ .metro {
9
+ .metro-sections {
10
+ height: auto;
11
+ position: relative;
12
+ overflow: hidden;
13
+ width: 100%;
14
+
15
+ .metro-section {
16
+ float: left;
17
+ margin-right: 75px;
18
+ height: auto;
19
+ width: 960px;
20
+ position: relative;
21
+
22
+ .next-section {
23
+ position: absolute;
24
+ top: 0px;
25
+ right: -40px;
26
+ background: url(/img/next.png);
27
+ height: 24px;
28
+ width: 24px;
29
+ }
30
+ .next-section.back {
31
+ background: url(/img/back.png);
32
+ }
33
+
34
+ .tile:hover {
35
+ outline: 3px #225a68 solid !important;
36
+ }
37
+
38
+ .tile {
39
+ display: block;
40
+ background-color: @blue;
41
+ width: @tileSmall;
42
+ height: @tileSmall;
43
+ color: #fff;
44
+ margin: @tileMargin;
45
+ float: left;
46
+ //box-shadow: inset 0px 0px 1px #FFFFCC;
47
+ position: relative;
48
+ cursor: pointer;
49
+ overflow: hidden;
50
+ text-decoration: none;
51
+ padding-bottom: 1px;
52
+
53
+ * {font-family: @baseFontFamily;}
54
+
55
+ .tile-icon-large {
56
+ margin-top: 20px;
57
+ margin-left: 0px;
58
+ display: table-cell;
59
+ vertical-align:middle !important;
60
+ text-align: center;
61
+ width: 150px;
62
+ padding-top: 20px;
63
+
64
+ img {
65
+ width: 96px;
66
+ height: 96px;
67
+ }
68
+ }
69
+ .tile-icon-cover {
70
+ margin-top: 20px;
71
+ margin-left: 0px;
72
+ display: table-cell;
73
+ vertical-align:middle !important;
74
+ text-align: center;
75
+ width: 150px;
76
+ padding-top: 30px;
77
+
78
+ img {
79
+ max-width: 90px;
80
+ height: 90px;
81
+ }
82
+ }
83
+ .tile-icon {
84
+ position: absolute;
85
+ bottom: 10px;
86
+ left: 20px;
87
+ width: 32px;
88
+ height: 32px;
89
+ }
90
+ .tile-label {
91
+ position: absolute;
92
+ bottom: 10px;
93
+ left: 20px;
94
+ font-size: 14px;
95
+ color: #fff;
96
+ }
97
+ .tile-caption {
98
+ position: absolute;
99
+ top: 0px;
100
+ left: 0px;
101
+ width: 130px;
102
+ padding: 2px 10px;
103
+ border-bottom: 1px #ff4500 solid;
104
+ background: #fff;
105
+ font-size: 14px;
106
+ color: #000;
107
+ font-size: 10px;
108
+ text-align: right;
109
+ }
110
+ .tile-header {
111
+ font-size: 19px;
112
+ color: #7ac479;
113
+ text-align: left;
114
+ margin: 20px;
115
+ }
116
+ .tile-counter {
117
+ position: absolute;
118
+ right: 20px;
119
+ bottom: 10px;
120
+ font-size: 14px;
121
+ font-weight: normal;
122
+ }
123
+ .tile-text {
124
+ text-align: left;
125
+ margin-top: 20px;
126
+ margin-left: 20px;
127
+ font-size: 12px;
128
+ }
129
+
130
+ .tile-image {
131
+ padding: 0px;
132
+
133
+ img {
134
+ min-height: 100%;
135
+ min-width: 100%;
136
+ }
137
+ }
138
+
139
+ .tile-content-main {
140
+ height: 150px;
141
+ position: relative;
142
+ overflow: hidden;
143
+ }
144
+ .tile-content-sub {
145
+ //display: none;
146
+ position: relative;
147
+ margin: 1px;
148
+ height: 50px;
149
+ max-height: 148px;
150
+ padding: 2px 5px;
151
+ overflow: hidden;
152
+ box-shadow-bottom: inset 0px 0px 3px #fff;
153
+ //opacity: .1;
154
+ }
155
+
156
+ }
157
+
158
+ .tile.multi-content{}
159
+
160
+ .tile.tile-double {
161
+ width: @tileLarge;
162
+
163
+ .tile-icon-large {
164
+ margin-top: 20px;
165
+ margin-left: 107px;
166
+
167
+ img {
168
+ width: 96px;
169
+ height: 96px;
170
+ }
171
+ }
172
+ .tile-icon-cover, .tile-icon-large {
173
+ width: @tileLarge;
174
+ }
175
+ }
176
+ }
177
+ }
178
+ }
@@ -0,0 +1,115 @@
1
+ /*
2
+ * Metro UI CSS v 1.0.1
3
+ * Copyright 2012 Sergey Pimenov
4
+ * Licensed under the MIT Lilcense
5
+ */
6
+
7
+
8
+ @baseFontRegular: "Segoe UI", Tahoma, Arial, Verdana, sans-serif;
9
+ @baseFontLight: "Segoe UI Light", Tahoma, Arial, Verdana, sans-serif;
10
+ @baseFontSemilight: "Segoe UI Semilight", Tahoma, Arial, Verdana, sans-serif;
11
+ @baseFontSemibold: "Segoe UI Semibold", Tahoma, Arial, Verdana, sans-serif;
12
+ @baseFontBold: "Segoe UI Bold", Tahoma, Arial, Verdana, sans-serif;
13
+
14
+ @baseFontWeightLight: 200;
15
+ @baseFontWeightSemilight: 300;
16
+ @baseFontWeightRegular: 400;
17
+ @baseFontWeightSemibold: 600;
18
+ @baseFontWeightBold: 700;
19
+
20
+ @baseFontColor: #fff;
21
+ @baseFontColorGrayed: #A5A5A5;
22
+ @baseFontColorDark: #1e1e1e;
23
+ @baseFontColorHover: #44D1DA;
24
+ @baseFontColorPresed: #52ECFF;
25
+ @baseFontColorHoverDark: #44D1DA;
26
+ @baseFontColorPresedDark: #52ECFF;
27
+
28
+ @baseFontSize: 11pt;
29
+ @baseFontSizeSuperLarge: 42pt;
30
+ @baseFontSizeLarge: 20pt;
31
+ @baseFontSizeLarged: 18pt;
32
+ @baseFontSizeSmall: 10pt;
33
+ @baseFontSizeSmaller: 9pt;
34
+
35
+
36
+ .metro {
37
+ * {
38
+ font-family: @baseFontRegular;
39
+ font-size: 11pt;
40
+ font-weight: @baseFontWeightRegular;
41
+ color: @baseFontColor;
42
+ }
43
+
44
+ a, .link {
45
+ &:hover {
46
+ color: @baseFontColorHover;
47
+ }
48
+ &:active {
49
+ color: @baseFontColorPresed;
50
+ }
51
+ }
52
+
53
+ h1 {
54
+ color: @baseFontColor;
55
+ font-size: @baseFontSizeSuperLarge;
56
+ font-weight: @baseFontWeightRegular;
57
+ font-family: @baseFontLight;
58
+ }
59
+
60
+ h2 {
61
+ font-size: @baseFontSizeLarge;
62
+ font-weight: @baseFontWeightRegular;
63
+ color: @baseFontColorGrayed;
64
+ font-family: @baseFontLight;
65
+ }
66
+
67
+ h3 {
68
+ color: @baseFontColor;
69
+ font-size: @baseFontSizeLarged;
70
+ font-weight: @baseFontWeightSemibold;
71
+ font-family: @baseFontLight;
72
+ }
73
+
74
+ h4 {
75
+ font-size: @baseFontSize;
76
+ font-weight: @baseFontWeightSemibold;
77
+ color: @baseFontColorGrayed;
78
+ }
79
+
80
+ .navigation, .item-title, .item-header {
81
+ color: @baseFontColor;
82
+ font-size: @baseFontSize;
83
+ font-weight: @baseFontWeightRegular;
84
+ }
85
+
86
+ .body-text {
87
+ font-size: @baseFontSize;
88
+ font-weight: @baseFontWeightSemilight;
89
+ color: @baseFontColor;
90
+ }
91
+
92
+ .body-text-secondary {
93
+ font-size: @baseFontSizeSmall;
94
+ font-weight: @baseFontWeightRegular;
95
+ color: @baseFontColor;
96
+ }
97
+
98
+ a, .link {
99
+ font-size: @baseFontSize;
100
+ font-weight: @baseFontWeightSemilight;
101
+ color: @baseFontColorHover;
102
+ }
103
+
104
+ .tertiary-info, .tertiary-info-secondary {
105
+ font-size: @baseFontSizeSmall;
106
+ font-weight: @baseFontSize;
107
+ color: @baseFontColorGrayed;
108
+ }
109
+
110
+ .tertiary-info-secondary {
111
+ font-size: @baseFontSizeSmaller;
112
+ }
113
+ }
114
+
115
+
@@ -0,0 +1,61 @@
1
+ /*
2
+ * Metro UI CSS v 1.0.1
3
+ * Copyright 2012 Sergey Pimenov
4
+ * Licensed under the MIT Lilcense
5
+ */
6
+
7
+ // Colors
8
+ @white: #ffffff;
9
+ @black: #000000;
10
+ @blue: #2d89f0;
11
+ @blueDark: #0064cd;
12
+ @green: #01a31c;
13
+ @greenDark: #005200;
14
+ @red: #bc1c48;
15
+ @yellow: #ffc40d;
16
+ @orange: #d44a26;
17
+ @pink: #c3325f;
18
+ @purple: #603cba;
19
+ @darken: #1c1c1c;
20
+
21
+ @textColor: #ffffff;
22
+ @linkColor: #ffffff;
23
+
24
+ // Typography
25
+ @baseFontFamily: Segoe UI, Tahoma, Arial, Verdana, sans-serif;
26
+ @baseFontSize: 12px;
27
+ @baseLineHeight: 18px;
28
+
29
+ // Tiles
30
+ @tileSmall: 150px;
31
+ @tileLarge: 310px;
32
+ @tileMargin: 5px;
33
+
34
+ @block-width: 190px;
35
+ @block-height: 130px;
36
+ @block-image-height: 130px;
37
+ @block-image-width: 190px;
38
+
39
+ @large-block-width: 250px;
40
+ @large-block-height: 250px;
41
+ @large-block-image-height: 160px;
42
+ @large-block-image-width: 250px;
43
+
44
+ @block-margin: 0 10px 10px 0;
45
+
46
+ @overlay-height: 30px;
47
+ @large-overlay-height: 90px;
48
+ @large-overlay-width: 250px;
49
+ @overlay-speed: .3s;
50
+
51
+ // Background colors
52
+ .bg-color-blue {background-color: @blue !important;}
53
+ .bg-color-blueDark {background-color: @blueDark !important;}
54
+ .bg-color-green {background-color: @green !important;}
55
+ .bg-color-greenDark {background-color: @greenDark !important;}
56
+ .bg-color-red {background-color: @red !important;}
57
+ .bg-color-yellow {background-color: @yellow !important;}
58
+ .bg-color-orange {background-color: @orange !important;}
59
+ .bg-color-pink {background-color: @pink !important;}
60
+ .bg-color-purple {background-color: @purple !important;}
61
+ .bg-color-darken {background-color: @darken !important;}
metadata ADDED
@@ -0,0 +1,84 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: metro-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Martin Schürrer
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-06-07 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: less-rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ description: metroui.org.ua as a plugin for the Rails Asset Pipeline
31
+ email:
32
+ - martin@schuerrer.org
33
+ executables: []
34
+ extensions: []
35
+ extra_rdoc_files: []
36
+ files:
37
+ - .gitignore
38
+ - Gemfile
39
+ - LICENSE
40
+ - README.md
41
+ - Rakefile
42
+ - lib/metro-rails.rb
43
+ - lib/metro-rails/version.rb
44
+ - metro-rails.gemspec
45
+ - vendor/assets/images/metro/back.png
46
+ - vendor/assets/images/metro/next.png
47
+ - vendor/assets/stylesheets/metro/buttons.less
48
+ - vendor/assets/stylesheets/metro/buttons.scss
49
+ - vendor/assets/stylesheets/metro/form.less
50
+ - vendor/assets/stylesheets/metro/images.less
51
+ - vendor/assets/stylesheets/metro/metro.less
52
+ - vendor/assets/stylesheets/metro/notices.less
53
+ - vendor/assets/stylesheets/metro/reset.less
54
+ - vendor/assets/stylesheets/metro/routines.less
55
+ - vendor/assets/stylesheets/metro/themes.less
56
+ - vendor/assets/stylesheets/metro/tiles.less
57
+ - vendor/assets/stylesheets/metro/typography.less
58
+ - vendor/assets/stylesheets/metro/variables.less
59
+ homepage: ''
60
+ licenses: []
61
+ post_install_message:
62
+ rdoc_options: []
63
+ require_paths:
64
+ - lib
65
+ required_ruby_version: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ! '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ requirements: []
78
+ rubyforge_project:
79
+ rubygems_version: 1.8.23
80
+ signing_key:
81
+ specification_version: 3
82
+ summary: Uses less and not sass for now.
83
+ test_files: []
84
+ has_rdoc: