Skip to content

Commit

Permalink
Merge pull request #45 from GainTime/2.2.1
Browse files Browse the repository at this point in the history
2.2.1
  • Loading branch information
JP Rodrigues authored Jul 3, 2017
2 parents 55a6c7e + f47f2b6 commit df6e2e3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 73 deletions.
3 changes: 2 additions & 1 deletion factory/sass/components/_dropdowns.sass
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@
margin: 3px 0
max-height: 200px
overflow-y: auto
height: auto

li
padding: 5px 10px
border: none
border: none!important
color: $color-default
&:hover
background-color: #d1d5da
Expand Down
81 changes: 10 additions & 71 deletions factory/sass/helpers/_grid.sass
Original file line number Diff line number Diff line change
Expand Up @@ -30,82 +30,21 @@ $columns: 12

=col-factory($param, $abr)
@media ($param)
.#{$abr}-12
width: calc(100% - 10px)
.#{$abr}-11
width: calc(91.667% - 10px)
.#{$abr}-10
width: calc(83.333% - 10px)
.#{$abr}-9
width: calc(75% - 10px)
.#{$abr}-8
width: calc(66.667% - 10px)
.#{$abr}-7
width: calc(58.334% - 10px)
.#{$abr}-6
width: calc(50% - 10px)
.#{$abr}-5
width: calc(41.666% - 10px)
.#{$abr}-4
width: calc(33.333% - 10px)
.#{$abr}-3
width: calc(25% - 10px)
.#{$abr}-2
width: calc(16.6666666667% - 10px)
.#{$abr}-1
width: calc(8.333% - 10px)

.off-#{$abr}-11
margin-left: calc(91.667% + 5px)
.off-#{$abr}-10
margin-left: calc(83.333% + 5px)
.off-#{$abr}-9
margin-left: calc(75% + 5px)
.off-#{$abr}-8
margin-left: calc(66.667% + 5px)
.off-#{$abr}-7
margin-left: calc(58.334% + 5px)
.off-#{$abr}-6
margin-left: calc(50% + 5px)
.off-#{$abr}-5
margin-left: calc(41.666% + 5px)
.off-#{$abr}-4
margin-left: calc(33.333% + 5px)
.off-#{$abr}-3
margin-left: calc(25% + 5px)
.off-#{$abr}-2
margin-left: calc(16.6666666667% + 5px)
.off-#{$abr}-1
margin-left: calc(8.333% + 5px)
@for $i from 1 through $columns
$num: $i / 12 * 100
.#{$abr}-#{$i}
width: calc(#{$num}% - 10px)
.off-#{$abr}-#{$i}
margin-left: calc(#{$num}% + 5px)
.off-#{$abr}-0
margin-left: 5px

=col-factory-to-false-gutter($param, $abr)
@media ($param)
.#{$abr}-12
width: 100%
.#{$abr}-11
width: 91.667%
.#{$abr}-10
width: 83.333%
.#{$abr}-9
width: 75%
.#{$abr}-8
width: 66.667%
.#{$abr}-7
width: 58.334%
.#{$abr}-6
width: 50%
.#{$abr}-5
width: 41.666%
.#{$abr}-4
width: 33.333%
.#{$abr}-3
width: 25%
.#{$abr}-2
width: 16.6666666667%
.#{$abr}-1
width: 8.333%
@for $i from 1 through $columns
$num: percentage($i / 12)
.#{$abr}-#{$i}
width: $num

+col-factory("min-width: 0px", xs)
+col-factory("min-width: 769px", sm)
Expand Down
3 changes: 2 additions & 1 deletion factory/sass/layouts/_header.sass
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,12 @@
text-decoration: none
color: inherit

li:not(.btn):not(.action):not(.tag)
border-bottom: 2px solid transparent
li
cursor: pointer
padding: 10px 8px
margin: 0 1px
border-bottom: 2px solid transparent
+transition()

&.dropdown
Expand Down

0 comments on commit df6e2e3

Please sign in to comment.