anjlab-bootstrap-rails 3.0.0.0.alpha1 → 3.0.0.rc1
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 +4 -4
- data/README.md +14 -27
- data/Rakefile +11 -35
- data/{vendor → app}/assets/javascripts/twitter/bootstrap.js +6 -6
- data/{vendor → app}/assets/javascripts/twitter/bootstrap/affix.js +9 -3
- data/{vendor → app}/assets/javascripts/twitter/bootstrap/alert.js +4 -2
- data/{vendor → app}/assets/javascripts/twitter/bootstrap/button.js +6 -4
- data/{vendor → app}/assets/javascripts/twitter/bootstrap/carousel.js +22 -12
- data/{vendor → app}/assets/javascripts/twitter/bootstrap/collapse.js +69 -43
- data/{vendor → app}/assets/javascripts/twitter/bootstrap/dropdown.js +22 -13
- data/{vendor → app}/assets/javascripts/twitter/bootstrap/modal.js +37 -38
- data/{vendor → app}/assets/javascripts/twitter/bootstrap/popover.js +11 -5
- data/{vendor → app}/assets/javascripts/twitter/bootstrap/scrollspy.js +6 -4
- data/{vendor → app}/assets/javascripts/twitter/bootstrap/tab.js +4 -2
- data/{vendor → app}/assets/javascripts/twitter/bootstrap/tooltip.js +49 -38
- data/{vendor → app}/assets/javascripts/twitter/bootstrap/transition.js +10 -1
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap.scss +0 -0
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_accordion.scss +7 -10
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_alerts.scss +11 -34
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_badges.scss +8 -15
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_bootstrap.scss +0 -1
- data/app/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +23 -0
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_button-groups.scss +23 -22
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_buttons.scss +21 -24
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_carousel.scss +46 -32
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_close.scss +3 -3
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_code.scss +6 -12
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_component-animations.scss +10 -4
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +46 -101
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_forms.scss +139 -179
- data/app/assets/stylesheets/twitter/bootstrap/_grid.scss +155 -0
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_jumbotron.scss +1 -4
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_labels.scss +7 -31
- data/app/assets/stylesheets/twitter/bootstrap/_list-group.scss +89 -0
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_media.scss +8 -6
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_mixins.scss +152 -131
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_modals.scss +11 -12
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_navbar.scss +90 -66
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_navs.scss +56 -68
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_normalize.scss +0 -0
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_pager.scss +4 -3
- data/app/assets/stylesheets/twitter/bootstrap/_pagination.scss +108 -0
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_panels.scss +8 -2
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_popovers.scss +22 -20
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_print.scss +26 -0
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +5 -18
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_responsive-utilities.scss +25 -25
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +24 -8
- data/app/assets/stylesheets/twitter/bootstrap/_tables.scss +211 -0
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +2 -3
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_tooltip.scss +26 -2
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_type.scss +31 -49
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_utilities.scss +0 -0
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_variables.scss +201 -54
- data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_wells.scss +0 -0
- data/bootstrap-rails.gemspec +0 -1
- data/lib/bootstrap-rails/version.rb +1 -1
- metadata +54 -60
- data/vendor/assets/fonts/twitter/glyphiconshalflings-regular.eot +0 -0
- data/vendor/assets/fonts/twitter/glyphiconshalflings-regular.otf +0 -0
- data/vendor/assets/fonts/twitter/glyphiconshalflings-regular.svg +0 -175
- data/vendor/assets/fonts/twitter/glyphiconshalflings-regular.ttf +0 -0
- data/vendor/assets/fonts/twitter/glyphiconshalflings-regular.woff +0 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +0 -28
- data/vendor/assets/stylesheets/twitter/bootstrap/_glyphicons.scss +0 -200
- data/vendor/assets/stylesheets/twitter/bootstrap/_grid.scss +0 -65
- data/vendor/assets/stylesheets/twitter/bootstrap/_list-group.scss +0 -96
- data/vendor/assets/stylesheets/twitter/bootstrap/_pagination.scss +0 -87
- data/vendor/assets/stylesheets/twitter/bootstrap/_tables.scss +0 -242
File without changes
|
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
|
6
6
|
.pager {
|
7
|
+
padding-left: 0;
|
7
8
|
margin: $line-height-computed 0;
|
8
9
|
list-style: none;
|
9
10
|
text-align: center;
|
@@ -16,7 +17,7 @@
|
|
16
17
|
padding: 5px 14px;
|
17
18
|
background-color: $pagination-bg;
|
18
19
|
border: 1px solid $pagination-border;
|
19
|
-
border-radius:
|
20
|
+
border-radius: $pager-border-radius;
|
20
21
|
}
|
21
22
|
|
22
23
|
> a:hover,
|
@@ -45,9 +46,9 @@
|
|
45
46
|
> a:hover,
|
46
47
|
> a:focus,
|
47
48
|
> span {
|
48
|
-
color: $
|
49
|
+
color: $pager-disabled-color;
|
49
50
|
background-color: $pagination-bg;
|
50
|
-
cursor:
|
51
|
+
cursor: not-allowed;
|
51
52
|
}
|
52
53
|
}
|
53
54
|
|
@@ -0,0 +1,108 @@
|
|
1
|
+
//
|
2
|
+
// Pagination (multiple pages)
|
3
|
+
// --------------------------------------------------
|
4
|
+
.pagination {
|
5
|
+
display: inline-block;
|
6
|
+
padding-left: 0;
|
7
|
+
margin: $line-height-computed 0;
|
8
|
+
border-radius: $border-radius-base;
|
9
|
+
|
10
|
+
> li {
|
11
|
+
display: inline; // Remove list-style and block-level defaults
|
12
|
+
> a,
|
13
|
+
> span {
|
14
|
+
float: left; // Collapse white-space
|
15
|
+
padding: 4px 12px;
|
16
|
+
line-height: $line-height-base;
|
17
|
+
text-decoration: none;
|
18
|
+
background-color: $pagination-bg;
|
19
|
+
border: 1px solid $pagination-border;
|
20
|
+
border-left-width: 0;
|
21
|
+
}
|
22
|
+
&:first-child {
|
23
|
+
> a,
|
24
|
+
> span {
|
25
|
+
border-left-width: 1px;
|
26
|
+
@include border-left-radius($border-radius-base);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
&:last-child {
|
30
|
+
> a,
|
31
|
+
> span {
|
32
|
+
@include border-right-radius($border-radius-base);
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
> li > a:hover,
|
38
|
+
> li > a:focus,
|
39
|
+
> .active > a,
|
40
|
+
> .active > span {
|
41
|
+
background-color: $pagination-active-bg;
|
42
|
+
}
|
43
|
+
> .active > a,
|
44
|
+
> .active > span {
|
45
|
+
color: $pagination-active-color;
|
46
|
+
cursor: default;
|
47
|
+
}
|
48
|
+
|
49
|
+
> .disabled {
|
50
|
+
> span,
|
51
|
+
> a,
|
52
|
+
> a:hover,
|
53
|
+
> a:focus {
|
54
|
+
color: $pagination-disabled-color;
|
55
|
+
background-color: $pagination-bg;
|
56
|
+
cursor: not-allowed;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
// Sizing
|
62
|
+
// --------------------------------------------------
|
63
|
+
|
64
|
+
// Large
|
65
|
+
.pagination-large {
|
66
|
+
> li {
|
67
|
+
> a,
|
68
|
+
> span {
|
69
|
+
padding: $padding-large-vertical $padding-large-horizontal;
|
70
|
+
font-size: $font-size-large;
|
71
|
+
}
|
72
|
+
&:first-child {
|
73
|
+
> a,
|
74
|
+
> span {
|
75
|
+
@include border-left-radius($border-radius-large);
|
76
|
+
}
|
77
|
+
}
|
78
|
+
&:last-child {
|
79
|
+
> a,
|
80
|
+
> span {
|
81
|
+
@include border-right-radius($border-radius-large);
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
// Small
|
88
|
+
.pagination-small {
|
89
|
+
> li {
|
90
|
+
> a,
|
91
|
+
> span {
|
92
|
+
padding: $padding-small-vertical $padding-small-horizontal;
|
93
|
+
font-size: $font-size-small;
|
94
|
+
}
|
95
|
+
&:first-child {
|
96
|
+
> a,
|
97
|
+
> span {
|
98
|
+
@include border-left-radius($border-radius-small);
|
99
|
+
}
|
100
|
+
}
|
101
|
+
&:last-child {
|
102
|
+
> a,
|
103
|
+
> span {
|
104
|
+
@include border-right-radius($border-radius-small);
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
@@ -17,14 +17,20 @@
|
|
17
17
|
.panel-heading {
|
18
18
|
margin: -15px -15px 15px;
|
19
19
|
padding: 10px 15px;
|
20
|
-
font-size: ($font-size-base * 1.25);
|
21
|
-
font-weight: 500;
|
22
20
|
background-color: $panel-heading-bg;
|
23
21
|
border-bottom: 1px solid $panel-border;
|
24
22
|
border-top-left-radius: ($panel-border-radius - 1);
|
25
23
|
border-top-right-radius: ($panel-border-radius - 1);
|
26
24
|
}
|
27
25
|
|
26
|
+
// Within heading, strip any `h*` tag of it's default margins for spacing.
|
27
|
+
.panel-title {
|
28
|
+
margin-top: 0;
|
29
|
+
margin-bottom: 0;
|
30
|
+
font-size: ($font-size-base * 1.25);
|
31
|
+
font-weight: 500;
|
32
|
+
}
|
33
|
+
|
28
34
|
// Optional footer (stays gray in every modifier class)
|
29
35
|
.panel-footer {
|
30
36
|
margin: 15px -15px -15px;
|
@@ -9,16 +9,16 @@
|
|
9
9
|
left: 0;
|
10
10
|
z-index: $zindex-popover;
|
11
11
|
display: none;
|
12
|
-
max-width:
|
12
|
+
max-width: $popover-max-width;
|
13
13
|
padding: 1px;
|
14
14
|
text-align: left; // Reset given new insertion method
|
15
15
|
background-color: $popover-bg;
|
16
16
|
-webkit-bg-clip: padding-box;
|
17
17
|
-moz-bg-clip: padding;
|
18
18
|
background-clip: padding-box;
|
19
|
-
border: 1px solid
|
20
|
-
border: 1px solid
|
21
|
-
border-radius:
|
19
|
+
border: 1px solid $popover-fallback-border-color;
|
20
|
+
border: 1px solid $popover-border-color;
|
21
|
+
border-radius: $border-radius-large;
|
22
22
|
@include box-shadow(0 5px 10px rgba(0,0,0,.2));
|
23
23
|
|
24
24
|
// Overrides for proper insertion
|
@@ -40,10 +40,6 @@
|
|
40
40
|
background-color: $popover-title-bg;
|
41
41
|
border-bottom: 1px solid darken($popover-title-bg, 5%);
|
42
42
|
border-radius: 5px 5px 0 0;
|
43
|
-
|
44
|
-
&:empty {
|
45
|
-
display: none;
|
46
|
-
}
|
47
43
|
}
|
48
44
|
|
49
45
|
.popover-content {
|
@@ -54,14 +50,16 @@
|
|
54
50
|
//
|
55
51
|
// .arrow is outer, .arrow:after is inner
|
56
52
|
|
57
|
-
.popover .arrow
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
53
|
+
.popover .arrow {
|
54
|
+
&,
|
55
|
+
&:after {
|
56
|
+
position: absolute;
|
57
|
+
display: block;
|
58
|
+
width: 0;
|
59
|
+
height: 0;
|
60
|
+
border-color: transparent;
|
61
|
+
border-style: solid;
|
62
|
+
}
|
65
63
|
}
|
66
64
|
.popover .arrow {
|
67
65
|
border-width: $popover-arrow-outer-width;
|
@@ -76,10 +74,11 @@
|
|
76
74
|
left: 50%;
|
77
75
|
margin-left: -$popover-arrow-outer-width;
|
78
76
|
border-bottom-width: 0;
|
79
|
-
border-top-color:
|
77
|
+
border-top-color: $popover-arrow-outer-fallback-color; // IE8 fallback
|
80
78
|
border-top-color: $popover-arrow-outer-color;
|
81
79
|
bottom: -$popover-arrow-outer-width;
|
82
80
|
&:after {
|
81
|
+
content: " ";
|
83
82
|
bottom: 1px;
|
84
83
|
margin-left: -$popover-arrow-width;
|
85
84
|
border-bottom-width: 0;
|
@@ -91,9 +90,10 @@
|
|
91
90
|
left: -$popover-arrow-outer-width;
|
92
91
|
margin-top: -$popover-arrow-outer-width;
|
93
92
|
border-left-width: 0;
|
94
|
-
border-right-color:
|
93
|
+
border-right-color: $popover-arrow-outer-fallback-color; // IE8 fallback
|
95
94
|
border-right-color: $popover-arrow-outer-color;
|
96
95
|
&:after {
|
96
|
+
content: " ";
|
97
97
|
left: 1px;
|
98
98
|
bottom: -$popover-arrow-width;
|
99
99
|
border-left-width: 0;
|
@@ -104,10 +104,11 @@
|
|
104
104
|
left: 50%;
|
105
105
|
margin-left: -$popover-arrow-outer-width;
|
106
106
|
border-top-width: 0;
|
107
|
-
border-bottom-color:
|
107
|
+
border-bottom-color: $popover-arrow-outer-fallback-color; // IE8 fallback
|
108
108
|
border-bottom-color: $popover-arrow-outer-color;
|
109
109
|
top: -$popover-arrow-outer-width;
|
110
110
|
&:after {
|
111
|
+
content: " ";
|
111
112
|
top: 1px;
|
112
113
|
margin-left: -$popover-arrow-width;
|
113
114
|
border-top-width: 0;
|
@@ -120,9 +121,10 @@
|
|
120
121
|
right: -$popover-arrow-outer-width;
|
121
122
|
margin-top: -$popover-arrow-outer-width;
|
122
123
|
border-right-width: 0;
|
123
|
-
border-left-color:
|
124
|
+
border-left-color: $popover-arrow-outer-fallback-color; // IE8 fallback
|
124
125
|
border-left-color: $popover-arrow-outer-color;
|
125
126
|
&:after {
|
127
|
+
content: " ";
|
126
128
|
right: 1px;
|
127
129
|
border-right-width: 0;
|
128
130
|
border-left-color: $popover-arrow-color;
|
@@ -71,4 +71,30 @@
|
|
71
71
|
.navbar {
|
72
72
|
display: none;
|
73
73
|
}
|
74
|
+
.table {
|
75
|
+
td,
|
76
|
+
th {
|
77
|
+
background-color: #fff !important;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
.btn,
|
81
|
+
.dropup > .btn {
|
82
|
+
> .caret {
|
83
|
+
border-top-color: #000 !important;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
.label {
|
87
|
+
border: 1px solid #000;
|
88
|
+
}
|
89
|
+
|
90
|
+
.table {
|
91
|
+
border-collapse: collapse !important;
|
92
|
+
}
|
93
|
+
.table-bordered {
|
94
|
+
th,
|
95
|
+
td {
|
96
|
+
border: 1px solid #ddd !important;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
74
100
|
}
|
@@ -57,9 +57,8 @@
|
|
57
57
|
width: 0%;
|
58
58
|
height: 100%;
|
59
59
|
font-size: $font-size-small;
|
60
|
-
color:
|
60
|
+
color: $progress-bar-color;
|
61
61
|
text-align: center;
|
62
|
-
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
63
62
|
background-color: $progress-bar-bg;
|
64
63
|
@include box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));
|
65
64
|
@include transition(width .6s ease);
|
@@ -87,32 +86,20 @@
|
|
87
86
|
|
88
87
|
// Danger (red)
|
89
88
|
.progress-bar-danger {
|
90
|
-
|
91
|
-
.progress-striped & {
|
92
|
-
@include gradient-striped($progress-bar-danger-bg);
|
93
|
-
}
|
89
|
+
@include progress-bar-variant($progress-bar-danger-bg);
|
94
90
|
}
|
95
91
|
|
96
92
|
// Success (green)
|
97
93
|
.progress-bar-success {
|
98
|
-
|
99
|
-
.progress-striped & {
|
100
|
-
@include gradient-striped($progress-bar-success-bg);
|
101
|
-
}
|
94
|
+
@include progress-bar-variant($progress-bar-success-bg);
|
102
95
|
}
|
103
96
|
|
104
97
|
// Warning (orange)
|
105
98
|
.progress-bar-warning {
|
106
|
-
|
107
|
-
.progress-striped & {
|
108
|
-
@include gradient-striped($progress-bar-warning-bg);
|
109
|
-
}
|
99
|
+
@include progress-bar-variant($progress-bar-warning-bg);
|
110
100
|
}
|
111
101
|
|
112
102
|
// Info (teal)
|
113
103
|
.progress-bar-info {
|
114
|
-
|
115
|
-
.progress-striped & {
|
116
|
-
@include gradient-striped($progress-bar-info-bg);
|
117
|
-
}
|
104
|
+
@include progress-bar-variant($progress-bar-info-bg);
|
118
105
|
}
|
@@ -29,49 +29,49 @@
|
|
29
29
|
// Hide from screenreaders and browsers
|
30
30
|
// Credit: HTML5 Boilerplate
|
31
31
|
.hidden {
|
32
|
-
display: none;
|
33
|
-
visibility: hidden;
|
32
|
+
display: none !important;
|
33
|
+
visibility: hidden !important;
|
34
34
|
}
|
35
35
|
|
36
36
|
// Visibility utilities
|
37
37
|
|
38
38
|
// For Phones
|
39
|
-
.visible-sm
|
40
|
-
.visible-md
|
41
|
-
.visible-lg
|
39
|
+
@include responsive-visibility(".visible-sm");
|
40
|
+
@include responsive-invisibility(".visible-md");
|
41
|
+
@include responsive-invisibility(".visible-lg");
|
42
42
|
|
43
|
-
.hidden-sm
|
44
|
-
.hidden-md
|
45
|
-
.hidden-lg
|
43
|
+
@include responsive-invisibility(".hidden-sm");
|
44
|
+
@include responsive-visibility(".hidden-md");
|
45
|
+
@include responsive-visibility(".hidden-lg");
|
46
46
|
|
47
47
|
|
48
48
|
// Tablets & small desktops only
|
49
49
|
@media (min-width: $screen-tablet) and (max-width: $screen-tablet-max) {
|
50
|
-
.visible-sm
|
51
|
-
.visible-md
|
52
|
-
.visible-lg
|
50
|
+
@include responsive-invisibility(".visible-sm");
|
51
|
+
@include responsive-visibility(".visible-md");
|
52
|
+
@include responsive-invisibility(".visible-lg");
|
53
53
|
|
54
|
-
.hidden-sm
|
55
|
-
.hidden-md
|
56
|
-
.hidden-lg
|
54
|
+
@include responsive-visibility(".hidden-sm");
|
55
|
+
@include responsive-invisibility(".hidden-md");
|
56
|
+
@include responsive-visibility(".hidden-lg");
|
57
57
|
}
|
58
58
|
|
59
59
|
// For desktops
|
60
60
|
@media (min-width: $screen-desktop) {
|
61
|
-
.visible-sm
|
62
|
-
.visible-md
|
63
|
-
.visible-lg
|
61
|
+
@include responsive-invisibility(".visible-sm");
|
62
|
+
@include responsive-invisibility(".visible-md");
|
63
|
+
@include responsive-visibility(".visible-lg");
|
64
64
|
|
65
|
-
.hidden-sm
|
66
|
-
.hidden-md
|
67
|
-
.hidden-lg
|
65
|
+
@include responsive-visibility(".hidden-sm");
|
66
|
+
@include responsive-visibility(".hidden-md");
|
67
|
+
@include responsive-invisibility(".hidden-lg");
|
68
68
|
}
|
69
69
|
|
70
70
|
// Print utilities
|
71
|
-
.visible-print
|
72
|
-
.hidden-print
|
71
|
+
@include responsive-invisibility(".visible-print");
|
72
|
+
.hidden-print { }
|
73
73
|
|
74
74
|
@media print {
|
75
|
-
.visible-print
|
76
|
-
.hidden-print
|
77
|
-
}
|
75
|
+
@include responsive-visibility(".visible-print");
|
76
|
+
@include responsive-invisibility(".hidden-print");
|
77
|
+
}
|
@@ -16,8 +16,6 @@
|
|
16
16
|
|
17
17
|
html {
|
18
18
|
font-size: 62.5%;
|
19
|
-
// Touch the Mobile Magic™
|
20
|
-
-webkit-overflow-scrolling: touch;
|
21
19
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
22
20
|
}
|
23
21
|
|
@@ -29,7 +27,7 @@ body {
|
|
29
27
|
background-color: $body-bg;
|
30
28
|
}
|
31
29
|
|
32
|
-
// Reset fonts for
|
30
|
+
// Reset fonts for relevant elements
|
33
31
|
input,
|
34
32
|
button,
|
35
33
|
select,
|
@@ -61,17 +59,23 @@ a:focus {
|
|
61
59
|
// -------------------------
|
62
60
|
|
63
61
|
img {
|
64
|
-
|
65
|
-
|
62
|
+
vertical-align: middle;
|
63
|
+
}
|
64
|
+
|
65
|
+
// Responsive images (ensure images don't scale beyond their parents)
|
66
|
+
@mixin img-responsive {
|
67
|
+
display: inline-block;
|
68
|
+
max-width: 100%; // Part 1: Set a maximum relative to the parent
|
66
69
|
height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching
|
70
|
+
}
|
67
71
|
|
68
|
-
|
69
|
-
|
72
|
+
.img-responsive {
|
73
|
+
@include img-responsive;
|
70
74
|
}
|
71
75
|
|
72
76
|
// Rounded corners
|
73
77
|
.img-rounded {
|
74
|
-
border-radius:
|
78
|
+
border-radius: $border-radius-large;
|
75
79
|
}
|
76
80
|
|
77
81
|
// Image thumbnails
|
@@ -81,3 +85,15 @@ img {
|
|
81
85
|
.img-circle {
|
82
86
|
border-radius: 500px; // crank the border-radius so it works with most reasonably sized images
|
83
87
|
}
|
88
|
+
|
89
|
+
|
90
|
+
// Horizontal rules
|
91
|
+
// -------------------------
|
92
|
+
|
93
|
+
hr {
|
94
|
+
margin-top: $line-height-computed;
|
95
|
+
margin-bottom: $line-height-computed;
|
96
|
+
border: 0;
|
97
|
+
border-top: 1px solid $hr-border;
|
98
|
+
}
|
99
|
+
|