netguru_theme 0.0.6 → 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2cba7d85dc78d2c2e2d6d2609ff3893289eefb51
4
- data.tar.gz: a9a9f6cded2c73e24141b89be3fdd5bcb492f055
3
+ metadata.gz: ea4e9222120f9436e2aa949a751ef915e10aa2a3
4
+ data.tar.gz: 0e7275706a81631d1d07e9ba3aab6e0ada677feb
5
5
  SHA512:
6
- metadata.gz: 29cdb3efcda453c5345cb00c3d4f59b6f81fcc1b234b7b8747136e1ad3f6d994fc9909709d08ed0f8b0c3bbf922f2b0f15e438c08acf7900a217417899c900a1
7
- data.tar.gz: 64fbb20890f72b8ced6b3c543d609cdcd1e32f1de0122674ab899d58803777197a18af09627ebab56f8c5f0f2a4fdf2104a332cc8db21302db17743f350b442d
6
+ metadata.gz: c0de55ca10bcc13ea805ef41477ca7003b036d3c2e41f7fafd51723c68c2f04b24eb5f64906f4ff7fd1fe2bf9a9d923487600940025cf0f9ab6d615080915503
7
+ data.tar.gz: 7b5306a8f29269746e11cd8e47ed835542a8b7a5802b565e71453cca0990ae8da1587d8d8845c9796368017b59c8883288fdc9dfe7abe441eb72ffd09e21daa2
data/.gitignore CHANGED
@@ -3,6 +3,7 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
+ .DS_Store
6
7
  Gemfile.lock
7
8
  InstalledFiles
8
9
  _yardoc
@@ -3,14 +3,15 @@
3
3
 
4
4
  @import 'netguru-theme/settings/custom-variables';
5
5
  @import 'netguru-theme/settings/bootstrap-variables';
6
+ @import 'netguru-theme/settings/z-index-variables';
7
+
8
+ @import 'netguru-theme/settings/bootstrap-components';
9
+
10
+ @import 'netguru-theme/settings/breakpoint-variables';
6
11
 
7
12
  @import 'netguru-theme/utilities/functions';
8
13
  @import 'netguru-theme/utilities/mixins';
9
14
  @import 'netguru-theme/utilities/typography';
10
15
  @import 'netguru-theme/utilities/presentional-classes';
11
16
 
12
- @import 'netguru-theme/settings/bootstrap-components';
13
17
  @import 'netguru-theme/settings/bootstrap-overrides';
14
-
15
- @import 'netguru-theme/components/navbar-search';
16
- @import 'netguru-theme/components/user-card';
@@ -0,0 +1,2 @@
1
+ @import 'netguru-theme/apps/people/navbar-search';
2
+ @import 'netguru-theme/apps/people/user-card';
@@ -0,0 +1,25 @@
1
+ .navbar-search-input {
2
+ background: $header-search-background-color;
3
+ color: $header-search-text-color;
4
+ border: 1px solid $header-search-border-color;
5
+ &:focus {
6
+ @include box-shadow(none);
7
+ border: 1px solid lighten($header-search-border-color, 20)
8
+ }
9
+ @include placeholder($header-search-placeholder-color);
10
+ }
11
+
12
+ .navbar-search-button {
13
+ background: $header-search-background-color;
14
+ border: 1px solid $header-search-border-color;
15
+ color: $header-search-button-color;
16
+ padding: 7px 12px;
17
+ &:hover {
18
+ color: lighten($header-search-button-color, 20);
19
+ }
20
+ &:focus {
21
+ outline: none;
22
+ color: lighten($header-search-button-color, 20);
23
+ border: 1px solid lighten($header-search-border-color, 20);
24
+ }
25
+ }
@@ -0,0 +1,99 @@
1
+ //
2
+ // User card
3
+ // --------------------------------------------------
4
+
5
+ .user-card {
6
+ border-radius: $border-radius-large;
7
+ border: 1px solid $gray-light;
8
+ overflow: hidden;
9
+
10
+ .label-skill {
11
+ background: $gray-light;
12
+ }
13
+
14
+ .intro {
15
+ @include sizing($line-height-computed + 5px);
16
+ color: $white;
17
+ display: inline-block;
18
+ font-size: $font-size-extra-small;
19
+ font-weight: bold;
20
+ margin-right: $half-gutter-width / 2;
21
+ text-align: center;
22
+ }
23
+
24
+ p {
25
+ margin-bottom: $half-gutter-width;
26
+ }
27
+ }
28
+
29
+ .user-card-header {
30
+ padding: $half-gutter-width;
31
+ }
32
+
33
+ .user-card-content {
34
+ overflow: hidden;
35
+ position: relative;
36
+ > .content-part {
37
+ border-top: 1px solid $gray-light;
38
+ padding: $half-gutter-width;
39
+ }
40
+ }
41
+
42
+ .user-card-avatar {
43
+ @include circle(64px);
44
+ background: $gray-light;
45
+ float: left;
46
+ }
47
+
48
+ .user-card-name {
49
+ font-size: $font-size-large;
50
+ font-weight: bold;
51
+ margin-top: $half-gutter-width / 2;
52
+ }
53
+
54
+ .user-card-profession {
55
+ background: $brand-primary;
56
+ }
57
+
58
+ .user-card-projects-list {
59
+ margin: $half-gutter-width / 2 0 0;
60
+ padding: 0;
61
+ li {
62
+ margin-top: -1px;
63
+ list-style: none;
64
+ line-height: $line-height-computed + 4px;
65
+ }
66
+ }
67
+
68
+ .user-card-current-project {
69
+ background: $gray-light;
70
+ color: $white;
71
+ padding: $half-gutter-width;
72
+ a {
73
+ color: $white;
74
+ font-weight: bold;
75
+ text-decoration: underline;
76
+ }
77
+ }
78
+
79
+ .user-card-download {
80
+ @include centered-vertically;
81
+ font-weight: bold;
82
+ text-align: center;
83
+ .glyphicon {
84
+ font-size: $font-size-large * 2;
85
+ }
86
+ }
87
+
88
+ .user-card-download-link {
89
+ @include absolute(top 0 left 0);
90
+ @include sizing(100%);
91
+ z-index: 9;
92
+ opacity: 0;
93
+ &:hover {
94
+ opacity: 1;
95
+ background: transparentize($brand-primary, .2);
96
+ color: $white;
97
+ text-decoration: underline;
98
+ }
99
+ }
@@ -0,0 +1,11 @@
1
+ $xs-only: '(max-width: #{$screen-xs-max})';
2
+
3
+ $sm-up: '(min-width: #{$screen-sm-min})';
4
+ $sm-down: '(max-width: #{$screen-sm-max})';
5
+ $sm-only: '(min-width: #{$screen-sm-min}) and (max-width: #{$screen-sm-max})';
6
+
7
+ $md-up: '(min-width: #{$screen-md-min})';
8
+ $md-down: '(max-width: #{$screen-md-max})';
9
+ $md-only: '(min-width: #{$screen-md-min}) and (max-width: #{$screen-md-max})';
10
+
11
+ $lg-up: '(min-width: #{$screen-lg-min})';
@@ -0,0 +1,9 @@
1
+ $z-index-1: 1000;
2
+ $z-index-2: 2000;
3
+ $z-index-3: 3000;
4
+ $z-index-4: 4000;
5
+ $z-index-5: 5000;
6
+ $z-index-6: 6000;
7
+ $z-index-7: 7000;
8
+ $z-index-8: 8000;
9
+ $z-index-9: 9000;
@@ -4,10 +4,11 @@
4
4
 
5
5
  .navbar {
6
6
  margin-bottom: 0;
7
- &-logo {
8
- @include centered-vertically;
9
- margin-right: 13px;
10
- }
7
+ }
11
8
 
12
- &-header { height: $navbar-height; }
9
+ .navbar-logo {
10
+ @include centered-vertically;
11
+ margin-right: 13px;
13
12
  }
13
+
14
+ .navbar-header { height: $navbar-height; }
@@ -1,4 +1,4 @@
1
- @mixin quantity($args) {
1
+ @mixin sizing($args) {
2
2
  @if length($args) == 2 {
3
3
  width: nth($args, 1);
4
4
  height: nth($args, 2);
@@ -9,36 +9,40 @@
9
9
  }
10
10
  }
11
11
 
12
- @mixin circle($quantity) {
13
- @include quantity($quantity);
12
+ @mixin quantity($args) {
13
+ @warn "Quantity mixin will be depraceted";
14
+ @include sizing($args);
15
+ }
16
+
17
+ @mixin circle($args) {
18
+ @include sizing($args);
14
19
  border-radius: 50%;
15
20
  }
16
21
 
17
22
  @mixin rounded-box($size, $corners) {
18
- @include size($size);
23
+ @include sizing($size);
19
24
  @include inline-border-radius($corners);
20
25
  }
21
26
 
22
27
  @mixin inline-border-radius($args) {
23
28
  @if length($args) == 4 {
24
- $dirs: (top-left, 1),
25
- (top-right, 2),
26
- (bottom-right, 3),
27
- (bottom-left, 4);
28
- @each $dir, $i in $dirs {
29
- border-#{$dir}-radius: nth($args, $i);
30
- }
29
+ border-top-left-radius: nth($args, 1);
30
+ border-top-right-radius: nth($args, 2);
31
+ border-bottom-right-radius: nth($args, 3);
32
+ border-bottom-left-radius: nth($args, 4);
31
33
  }
32
34
  @else if length($args) == 2 {
33
- @include border-top-radius(nth($args, 1));
34
- @include border-bottom-radius(nth($args, 2));
35
+ border-top-left-radius: nth($args, 1);
36
+ border-top-right-radius: nth($args, 1);
37
+ border-bottom-left-radius: nth($args, 2);
38
+ border-bottom-right-radius: nth($args, 2);
35
39
  }
36
40
  @else if length($args) == 1 {
37
41
  border-radius: $args;
38
42
  }
39
43
  }
40
44
 
41
- @mixin position($position, $args) {
45
+ @mixin _position($position, $args) {
42
46
  @each $dir in top, left, bottom, right {
43
47
  $i: index($args, $dir);
44
48
  @if $i {
@@ -49,13 +53,13 @@
49
53
  }
50
54
 
51
55
  @mixin absolute($args) {
52
- @include position(absolute, $args);
56
+ @include _position(absolute, $args);
53
57
  }
54
58
  @mixin relative($args) {
55
- @include position(relative, $args);
59
+ @include _position(relative, $args);
56
60
  }
57
61
  @mixin fixed($args) {
58
- @include position(fixed, $args);
62
+ @include _position(fixed, $args);
59
63
  }
60
64
 
61
65
  @mixin centered-vertically {
@@ -1,3 +1,3 @@
1
1
  module NetguruTheme
2
- VERSION = '0.0.6'
2
+ VERSION = '0.1.0'
3
3
  end
@@ -18,8 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency('sass', '~> 3.3')
22
- spec.add_dependency('bourbon', '~> 4.0')
21
+ spec.add_dependency('sass', '~> 3.2')
22
+ spec.add_dependency('bourbon', '~> 3.2.3')
23
23
  spec.add_dependency('bootstrap-sass', '~> 3.3.0')
24
24
 
25
25
  spec.add_development_dependency "bundler", "~> 1.6"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netguru_theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Czajka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-04 00:00:00.000000000 Z
11
+ date: 2014-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.3'
19
+ version: '3.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.3'
26
+ version: '3.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bourbon
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '4.0'
33
+ version: 3.2.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '4.0'
40
+ version: 3.2.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bootstrap-sass
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -96,12 +96,15 @@ files:
96
96
  - app/assets/images/arrows.png
97
97
  - app/assets/javascripts/netguru_theme.js
98
98
  - app/assets/stylesheets/_netguru-theme.scss
99
- - app/assets/stylesheets/netguru-theme/components/_navbar-search.scss
100
- - app/assets/stylesheets/netguru-theme/components/_user-card.scss
99
+ - app/assets/stylesheets/netguru-theme/apps/_people.scss
100
+ - app/assets/stylesheets/netguru-theme/apps/people/_navbar-search.scss
101
+ - app/assets/stylesheets/netguru-theme/apps/people/_user-card.scss
101
102
  - app/assets/stylesheets/netguru-theme/settings/_bootstrap-components.scss
102
103
  - app/assets/stylesheets/netguru-theme/settings/_bootstrap-overrides.scss
103
104
  - app/assets/stylesheets/netguru-theme/settings/_bootstrap-variables.scss
105
+ - app/assets/stylesheets/netguru-theme/settings/_breakpoint-variables.scss
104
106
  - app/assets/stylesheets/netguru-theme/settings/_custom-variables.scss
107
+ - app/assets/stylesheets/netguru-theme/settings/_z-index-variables.scss
105
108
  - app/assets/stylesheets/netguru-theme/settings/bootstrap-overrides/_badges.scss
106
109
  - app/assets/stylesheets/netguru-theme/settings/bootstrap-overrides/_buttons.scss
107
110
  - app/assets/stylesheets/netguru-theme/settings/bootstrap-overrides/_dropdowns.scss
@@ -1,27 +0,0 @@
1
- .navbar {
2
- &-search-input {
3
- background: $header-search-background-color;
4
- color: $header-search-text-color;
5
- border: 1px solid $header-search-border-color;
6
- &:focus {
7
- @include box-shadow(none);
8
- border: 1px solid lighten($header-search-border-color, 20)
9
- }
10
- @include placeholder($header-search-placeholder-color);
11
- }
12
-
13
- &-search-button {
14
- background: $header-search-background-color;
15
- border: 1px solid $header-search-border-color;
16
- color: $header-search-button-color;
17
- padding: 7px 12px;
18
- &:hover {
19
- color: lighten($header-search-button-color, 20);
20
- }
21
- &:focus {
22
- outline: none;
23
- color: lighten($header-search-button-color, 20);
24
- border: 1px solid lighten($header-search-border-color, 20);
25
- }
26
- }
27
- }
@@ -1,99 +0,0 @@
1
- //
2
- // User card
3
- // --------------------------------------------------
4
-
5
- .user-card {
6
- border-radius: $border-radius-large;
7
- border: 1px solid $gray-light;
8
- overflow: hidden;
9
-
10
- &-header {
11
- padding: $half-gutter-width;
12
- }
13
-
14
- &-content {
15
- overflow: hidden;
16
- position: relative;
17
- > .content-part {
18
- border-top: 1px solid $gray-light;
19
- padding: $half-gutter-width;
20
- }
21
- }
22
-
23
- &-avatar {
24
- @include circle(64px);
25
- background: $gray-light;
26
- float: left;
27
- }
28
-
29
- &-name {
30
- font-size: $font-size-large;
31
- font-weight: bold;
32
- margin-top: $half-gutter-width / 2;
33
- }
34
-
35
- &-profession {
36
- background: $brand-primary;
37
- }
38
-
39
- .label-skill {
40
- background: $gray-light;
41
- }
42
-
43
- &-projects-list {
44
- margin: $half-gutter-width / 2 0 0;
45
- padding: 0;
46
- li {
47
- margin-top: -1px;
48
- list-style: none;
49
- line-height: $line-height-computed + 4px;
50
- }
51
- }
52
-
53
- .intro {
54
- @include quantity($line-height-computed + 5px);
55
- color: $white;
56
- display: inline-block;
57
- font-size: $font-size-extra-small;
58
- font-weight: bold;
59
- margin-right: $half-gutter-width / 2;
60
- text-align: center;
61
- }
62
-
63
- &-current-project {
64
- background: $gray-light;
65
- color: $white;
66
- padding: $half-gutter-width;
67
- a {
68
- color: $white;
69
- font-weight: bold;
70
- text-decoration: underline;
71
- }
72
- }
73
-
74
- &-download {
75
- @include centered-vertically;
76
- font-weight: bold;
77
- text-align: center;
78
- .glyphicon {
79
- font-size: $font-size-large * 2;
80
- }
81
- }
82
-
83
- &-download-link {
84
- @include absolute(top 0 left 0);
85
- @include quantity(100%);
86
- z-index: 9;
87
- opacity: 0;
88
- &:hover {
89
- opacity: 1;
90
- background: transparentize($brand-primary, .2);
91
- color: $white;
92
- text-decoration: underline;
93
- }
94
- }
95
-
96
- p {
97
- margin-bottom: $half-gutter-width;
98
- }
99
- }