flexa_lib 0.1.3 → 0.1.5

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.
Files changed (59) hide show
  1. data/lib/flexa_lib/version.rb +1 -1
  2. data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
  3. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  4. data/vendor/assets/javascripts/bootstrap-alert.js +94 -0
  5. data/vendor/assets/javascripts/bootstrap-button.js +98 -0
  6. data/vendor/assets/javascripts/bootstrap-carousel.js +157 -0
  7. data/vendor/assets/javascripts/bootstrap-collapse.js +136 -0
  8. data/vendor/assets/javascripts/bootstrap-dropdown.js +92 -0
  9. data/vendor/assets/javascripts/bootstrap-modal.js +210 -0
  10. data/vendor/assets/javascripts/bootstrap-popover.js +95 -0
  11. data/vendor/assets/javascripts/bootstrap-scrollspy.js +125 -0
  12. data/vendor/assets/javascripts/bootstrap-tab.js +130 -0
  13. data/vendor/assets/javascripts/bootstrap-tooltip.js +270 -0
  14. data/vendor/assets/javascripts/bootstrap-transition.js +51 -0
  15. data/vendor/assets/javascripts/bootstrap-typeahead.js +271 -0
  16. data/vendor/assets/javascripts/bootstrap.js +12 -0
  17. data/vendor/assets/javascripts/flexa-themejs.js +94 -0
  18. data/vendor/assets/javascripts/jquery.cookie.js +96 -0
  19. data/vendor/assets/javascripts/jquery.pjax.js +460 -0
  20. data/vendor/assets/javascripts/populate.js +272 -0
  21. data/vendor/assets/stylesheets/_bootstrap-responsive.scss +318 -0
  22. data/vendor/assets/stylesheets/_bootstrap.scss +63 -0
  23. data/vendor/assets/stylesheets/bootstrap/_accordion.scss +28 -0
  24. data/vendor/assets/stylesheets/bootstrap/_alerts.scss +62 -0
  25. data/vendor/assets/stylesheets/bootstrap/_breadcrumbs.scss +22 -0
  26. data/vendor/assets/stylesheets/bootstrap/_button-groups.scss +136 -0
  27. data/vendor/assets/stylesheets/bootstrap/_buttons.scss +163 -0
  28. data/vendor/assets/stylesheets/bootstrap/_carousel.scss +116 -0
  29. data/vendor/assets/stylesheets/bootstrap/_close.scss +18 -0
  30. data/vendor/assets/stylesheets/bootstrap/_code.scss +56 -0
  31. data/vendor/assets/stylesheets/bootstrap/_component-animations.scss +18 -0
  32. data/vendor/assets/stylesheets/bootstrap/_dropdowns.scss +126 -0
  33. data/vendor/assets/stylesheets/bootstrap/_forms.scss +463 -0
  34. data/vendor/assets/stylesheets/bootstrap/_grid.scss +8 -0
  35. data/vendor/assets/stylesheets/bootstrap/_hero-unit.scss +20 -0
  36. data/vendor/assets/stylesheets/bootstrap/_labels.scss +32 -0
  37. data/vendor/assets/stylesheets/bootstrap/_layouts.scss +17 -0
  38. data/vendor/assets/stylesheets/bootstrap/_mixins.scss +530 -0
  39. data/vendor/assets/stylesheets/bootstrap/_modals.scss +83 -0
  40. data/vendor/assets/stylesheets/bootstrap/_navbar.scss +288 -0
  41. data/vendor/assets/stylesheets/bootstrap/_navs.scss +329 -0
  42. data/vendor/assets/stylesheets/bootstrap/_pager.scss +30 -0
  43. data/vendor/assets/stylesheets/bootstrap/_pagination.scss +53 -0
  44. data/vendor/assets/stylesheets/bootstrap/_popovers.scss +49 -0
  45. data/vendor/assets/stylesheets/bootstrap/_progress-bars.scss +95 -0
  46. data/vendor/assets/stylesheets/bootstrap/_reset.scss +105 -0
  47. data/vendor/assets/stylesheets/bootstrap/_scaffolding.scss +29 -0
  48. data/vendor/assets/stylesheets/bootstrap/_sprites.scss +157 -0
  49. data/vendor/assets/stylesheets/bootstrap/_tables.scss +126 -0
  50. data/vendor/assets/stylesheets/bootstrap/_thumbnails.scss +35 -0
  51. data/vendor/assets/stylesheets/bootstrap/_tooltip.scss +35 -0
  52. data/vendor/assets/stylesheets/bootstrap/_type.scss +209 -0
  53. data/vendor/assets/stylesheets/bootstrap/_utilities.scss +23 -0
  54. data/vendor/assets/stylesheets/bootstrap/_variables.scss +103 -0
  55. data/vendor/assets/stylesheets/bootstrap/_wells.scss +17 -0
  56. data/vendor/assets/stylesheets/docs.css.scss +790 -0
  57. data/vendor/assets/stylesheets/flexa-theme.css.scss +32 -0
  58. data/vendor/assets/stylesheets/override.css.scss +77 -0
  59. metadata +60 -3
@@ -0,0 +1,49 @@
1
+ // POPOVERS
2
+ // --------
3
+
4
+ .popover {
5
+ position: absolute;
6
+ top: 0;
7
+ left: 0;
8
+ z-index: $zindexPopover;
9
+ display: none;
10
+ padding: 5px;
11
+ &.top { margin-top: -5px; }
12
+ &.right { margin-left: 5px; }
13
+ &.bottom { margin-top: 5px; }
14
+ &.left { margin-left: -5px; }
15
+ &.top .arrow { @include popoverArrowTop(); }
16
+ &.right .arrow { @include popoverArrowRight(); }
17
+ &.bottom .arrow { @include popoverArrowBottom(); }
18
+ &.left .arrow { @include popoverArrowLeft(); }
19
+ .arrow {
20
+ position: absolute;
21
+ width: 0;
22
+ height: 0;
23
+ }
24
+ }
25
+ .popover-inner {
26
+ padding: 3px;
27
+ width: 280px;
28
+ overflow: hidden;
29
+ background: $black; // has to be full background declaration for IE fallback
30
+ background: rgba(0,0,0,.8);
31
+ @include border-radius(6px);
32
+ @include box-shadow(0 3px 7px rgba(0,0,0,0.3));
33
+ }
34
+ .popover-title {
35
+ padding: 9px 15px;
36
+ line-height: 1;
37
+ background-color: #f5f5f5;
38
+ border-bottom:1px solid #eee;
39
+ @include border-radius(3px 3px 0 0);
40
+ }
41
+ .popover-content {
42
+ padding: 14px;
43
+ background-color: $white;
44
+ @include border-radius(0 0 3px 3px);
45
+ @include background-clip(padding-box);
46
+ p, ul, ol {
47
+ margin-bottom: 0;
48
+ }
49
+ }
@@ -0,0 +1,95 @@
1
+ // PROGRESS BARS
2
+ // -------------
3
+
4
+
5
+ // ANIMATIONS
6
+ // ----------
7
+
8
+ // Webkit
9
+ @-webkit-keyframes progress-bar-stripes {
10
+ from { background-position: 0 0; }
11
+ to { background-position: 40px 0; }
12
+ }
13
+
14
+ // Firefox
15
+ @-moz-keyframes progress-bar-stripes {
16
+ from { background-position: 0 0; }
17
+ to { background-position: 40px 0; }
18
+ }
19
+
20
+ // Spec
21
+ @keyframes progress-bar-stripes {
22
+ from { background-position: 0 0; }
23
+ to { background-position: 40px 0; }
24
+ }
25
+
26
+
27
+
28
+ // THE BARS
29
+ // --------
30
+
31
+ // Outer container
32
+ .progress {
33
+ overflow: hidden;
34
+ height: 18px;
35
+ margin-bottom: 18px;
36
+ @include gradient-vertical(#f5f5f5, #f9f9f9);
37
+ @include box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
38
+ @include border-radius(4px);
39
+ }
40
+
41
+ // Bar of progress
42
+ .progress .bar {
43
+ width: 0%;
44
+ height: 18px;
45
+ color: $white;
46
+ font-size: 12px;
47
+ text-align: center;
48
+ text-shadow: 0 -1px 0 rgba(0,0,0,.25);
49
+ @include gradient-vertical(#149bdf, #0480be);
50
+ @include box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));
51
+ @include box-sizing(border-box);
52
+ @include transition(width .6s ease);
53
+ }
54
+
55
+ // Striped bars
56
+ .progress-striped .bar {
57
+ @include gradient-striped(#62c462);
58
+ @include background-size(40px 40px);
59
+ }
60
+
61
+ // Call animation for the active one
62
+ .progress.active .bar {
63
+ -webkit-animation: progress-bar-stripes 2s linear infinite;
64
+ -moz-animation: progress-bar-stripes 2s linear infinite;
65
+ animation: progress-bar-stripes 2s linear infinite;
66
+ }
67
+
68
+
69
+
70
+ // COLORS
71
+ // ------
72
+
73
+ // Danger (red)
74
+ .progress-danger .bar {
75
+ @include gradient-vertical(#ee5f5b, #c43c35);
76
+ }
77
+ .progress-danger.progress-striped .bar {
78
+ @include gradient-striped(#ee5f5b);
79
+ }
80
+
81
+ // Success (green)
82
+ .progress-success .bar {
83
+ @include gradient-vertical(#62c462, #57a957);
84
+ }
85
+ .progress-success.progress-striped .bar {
86
+ @include gradient-striped(#62c462);
87
+ }
88
+
89
+ // Info (teal)
90
+ .progress-info .bar {
91
+ @include gradient-vertical(#5bc0de, #339bb9);
92
+ }
93
+ .progress-info.progress-striped .bar {
94
+ @include gradient-striped(#5bc0de);
95
+ }
@@ -0,0 +1,105 @@
1
+ // Reset.css.scss
2
+ // Adapted from Normalize.css http://github.com/necolas/normalize.css
3
+ // ------------------------------------------------------------------------
4
+
5
+ // Display in IE6-9 and FF3
6
+ // -------------------------
7
+
8
+ article, aside, details, figcaption, figure, footer, header, hgroup, nav, section {
9
+ display: block;
10
+ }
11
+
12
+ // Display block in IE6-9 and FF3
13
+ // -------------------------
14
+
15
+ audio, canvas, video {
16
+ display: inline-block;
17
+ *display: inline;
18
+ *zoom: 1;
19
+ }
20
+
21
+ // Prevents modern browsers from displaying 'audio' without controls
22
+ // -------------------------
23
+
24
+ audio:not([controls]) {
25
+ display: none;
26
+ }
27
+
28
+ // Base settings
29
+ // -------------------------
30
+
31
+ html {
32
+ font-size: 100%;
33
+ -webkit-text-size-adjust: 100%;
34
+ -ms-text-size-adjust: 100%;
35
+ }
36
+ // Focus states
37
+ a:focus {
38
+ @include tab-focus();
39
+ }
40
+ // Hover & Active
41
+ a:hover, a:active {
42
+ outline: 0;
43
+ }
44
+
45
+ // Prevents sub and sup affecting line-height in all browsers
46
+ // -------------------------
47
+
48
+ sub, sup {
49
+ position: relative;
50
+ font-size: 75%;
51
+ line-height: 0;
52
+ vertical-align: baseline;
53
+ }
54
+ sup {
55
+ top: -0.5em;
56
+ }
57
+ sub {
58
+ bottom: -0.25em;
59
+ }
60
+
61
+ // Img border in a's and image quality
62
+ // -------------------------
63
+
64
+ img {
65
+ max-width: 100%;
66
+ height: auto;
67
+ border: 0;
68
+ -ms-interpolation-mode: bicubic;
69
+ }
70
+
71
+ // Forms
72
+ // -------------------------
73
+
74
+ // Font size in all browsers, margin changes, misc consistency
75
+ button, input, select, textarea {
76
+ margin: 0;
77
+ font-size: 100%;
78
+ vertical-align: middle;
79
+ }
80
+ button, input {
81
+ *overflow: visible; // Inner spacing ie IE6/7
82
+ line-height: normal; // FF3/4 have !important on line-height in UA stylesheet
83
+ }
84
+ button::-moz-focus-inner, input::-moz-focus-inner { // Inner padding and border oddities in FF3/4
85
+ padding: 0;
86
+ border: 0;
87
+ }
88
+ button, input[type="button"], input[type="reset"], input[type="submit"] {
89
+ cursor: pointer; // Cursors on all buttons applied consistently
90
+ -webkit-appearance: button; // Style clickable inputs in iOS
91
+ }
92
+ input[type="search"] { // Appearance in Safari/Chrome
93
+ -webkit-appearance: textfield;
94
+ -webkit-box-sizing: content-box;
95
+ -moz-box-sizing: content-box;
96
+ box-sizing: content-box;
97
+ }
98
+ input[type="search"]::-webkit-search-decoration,
99
+ input[type="search"]::-webkit-search-cancel-button {
100
+ -webkit-appearance: none; // Inner-padding issues in Chrome OSX, Safari 5
101
+ }
102
+ textarea {
103
+ overflow: auto; // Remove vertical scrollbar in IE6-9
104
+ vertical-align: top; // Readability and alignment cross-browser
105
+ }
@@ -0,0 +1,29 @@
1
+ // Scaffolding
2
+ // Basic and global styles for generating a grid system, structural layout, and page templates
3
+ // -------------------------------------------------------------------------------------------
4
+
5
+
6
+ // STRUCTURAL LAYOUT
7
+ // -----------------
8
+
9
+ body {
10
+ margin: 0;
11
+ font-family: $baseFontFamily;
12
+ font-size: $baseFontSize;
13
+ line-height: $baseLineHeight;
14
+ color: $textColor;
15
+ background-color: $white;
16
+ }
17
+
18
+
19
+ // LINKS
20
+ // -----
21
+
22
+ a {
23
+ color: $linkColor;
24
+ text-decoration: none;
25
+ }
26
+ a:hover {
27
+ color: $linkColorHover;
28
+ text-decoration: underline;
29
+ }
@@ -0,0 +1,157 @@
1
+ // SPRITES
2
+ // Glyphs and icons for buttons, nav, and more
3
+ // -------------------------------------------
4
+
5
+
6
+ // ICONS
7
+ // -----
8
+
9
+ // All icons receive the styles of the <i> tag with a base class
10
+ // of .i and are then given a unique class to add width, height,
11
+ // and background-position. Your resulting HTML will look like
12
+ // <i class="icon-inbox"></i>.
13
+
14
+ // For the white version of the icons, just add the .icon-white class:
15
+ // <i class="icon-inbox icon-white"></i>
16
+
17
+ [class^="icon-"], [class*=" icon-"] {
18
+ display: inline-block;
19
+ width: 14px;
20
+ height: 14px;
21
+ line-height: 14px;
22
+ vertical-align: text-top;
23
+ background-image: asset-url("glyphicons-halflings.png", image);
24
+ background-position: 14px 14px;
25
+ background-repeat: no-repeat;
26
+
27
+ @include ie7-restore-right-whitespace();
28
+ }
29
+ .icon-white {
30
+ background-image: asset-url("glyphicons-halflings-white.png", image);
31
+ }
32
+
33
+ .icon-glass { background-position: 0 0; }
34
+ .icon-music { background-position: -24px 0; }
35
+ .icon-search { background-position: -48px 0; }
36
+ .icon-envelope { background-position: -72px 0; }
37
+ .icon-heart { background-position: -96px 0; }
38
+ .icon-star { background-position: -120px 0; }
39
+ .icon-star-empty { background-position: -144px 0; }
40
+ .icon-user { background-position: -168px 0; }
41
+ .icon-film { background-position: -192px 0; }
42
+ .icon-th-large { background-position: -216px 0; }
43
+ .icon-th { background-position: -240px 0; }
44
+ .icon-th-list { background-position: -264px 0; }
45
+ .icon-ok { background-position: -288px 0; }
46
+ .icon-remove { background-position: -312px 0; }
47
+ .icon-zoom-in { background-position: -336px 0; }
48
+ .icon-zoom-out { background-position: -360px 0; }
49
+ .icon-off { background-position: -384px 0; }
50
+ .icon-signal { background-position: -408px 0; }
51
+ .icon-cog { background-position: -432px 0; }
52
+ .icon-trash { background-position: -456px 0; }
53
+
54
+ .icon-home { background-position: 0 -24px; }
55
+ .icon-file { background-position: -24px -24px; }
56
+ .icon-time { background-position: -48px -24px; }
57
+ .icon-road { background-position: -72px -24px; }
58
+ .icon-download-alt { background-position: -96px -24px; }
59
+ .icon-download { background-position: -120px -24px; }
60
+ .icon-upload { background-position: -144px -24px; }
61
+ .icon-inbox { background-position: -168px -24px; }
62
+ .icon-play-circle { background-position: -192px -24px; }
63
+ .icon-repeat { background-position: -216px -24px; }
64
+ .icon-refresh { background-position: -240px -24px; }
65
+ .icon-list-alt { background-position: -264px -24px; }
66
+ .icon-lock { background-position: -287px -24px; } // 1px off
67
+ .icon-flag { background-position: -312px -24px; }
68
+ .icon-headphones { background-position: -336px -24px; }
69
+ .icon-volume-off { background-position: -360px -24px; }
70
+ .icon-volume-down { background-position: -384px -24px; }
71
+ .icon-volume-up { background-position: -408px -24px; }
72
+ .icon-qrcode { background-position: -432px -24px; }
73
+ .icon-barcode { background-position: -456px -24px; }
74
+
75
+ .icon-tag { background-position: 0 -48px; }
76
+ .icon-tags { background-position: -25px -48px; } // 1px off
77
+ .icon-book { background-position: -48px -48px; }
78
+ .icon-bookmark { background-position: -72px -48px; }
79
+ .icon-print { background-position: -96px -48px; }
80
+ .icon-camera { background-position: -120px -48px; }
81
+ .icon-font { background-position: -144px -48px; }
82
+ .icon-bold { background-position: -167px -48px; } // 1px off
83
+ .icon-italic { background-position: -192px -48px; }
84
+ .icon-text-height { background-position: -216px -48px; }
85
+ .icon-text-width { background-position: -240px -48px; }
86
+ .icon-align-left { background-position: -264px -48px; }
87
+ .icon-align-center { background-position: -288px -48px; }
88
+ .icon-align-right { background-position: -312px -48px; }
89
+ .icon-align-justify { background-position: -336px -48px; }
90
+ .icon-list { background-position: -360px -48px; }
91
+ .icon-indent-left { background-position: -384px -48px; }
92
+ .icon-indent-right { background-position: -408px -48px; }
93
+ .icon-facetime-video { background-position: -432px -48px; }
94
+ .icon-picture { background-position: -456px -48px; }
95
+
96
+ .icon-pencil { background-position: 0 -72px; }
97
+ .icon-map-marker { background-position: -24px -72px; }
98
+ .icon-adjust { background-position: -48px -72px; }
99
+ .icon-tint { background-position: -72px -72px; }
100
+ .icon-edit { background-position: -96px -72px; }
101
+ .icon-share { background-position: -120px -72px; }
102
+ .icon-check { background-position: -144px -72px; }
103
+ .icon-move { background-position: -168px -72px; }
104
+ .icon-step-backward { background-position: -192px -72px; }
105
+ .icon-fast-backward { background-position: -216px -72px; }
106
+ .icon-backward { background-position: -240px -72px; }
107
+ .icon-play { background-position: -264px -72px; }
108
+ .icon-pause { background-position: -288px -72px; }
109
+ .icon-stop { background-position: -312px -72px; }
110
+ .icon-forward { background-position: -336px -72px; }
111
+ .icon-fast-forward { background-position: -360px -72px; }
112
+ .icon-step-forward { background-position: -384px -72px; }
113
+ .icon-eject { background-position: -408px -72px; }
114
+ .icon-chevron-left { background-position: -432px -72px; }
115
+ .icon-chevron-right { background-position: -456px -72px; }
116
+
117
+ .icon-plus-sign { background-position: 0 -96px; }
118
+ .icon-minus-sign { background-position: -24px -96px; }
119
+ .icon-remove-sign { background-position: -48px -96px; }
120
+ .icon-ok-sign { background-position: -72px -96px; }
121
+ .icon-question-sign { background-position: -96px -96px; }
122
+ .icon-info-sign { background-position: -120px -96px; }
123
+ .icon-screenshot { background-position: -144px -96px; }
124
+ .icon-remove-circle { background-position: -168px -96px; }
125
+ .icon-ok-circle { background-position: -192px -96px; }
126
+ .icon-ban-circle { background-position: -216px -96px; }
127
+ .icon-arrow-left { background-position: -240px -96px; }
128
+ .icon-arrow-right { background-position: -264px -96px; }
129
+ .icon-arrow-up { background-position: -289px -96px; } // 1px off
130
+ .icon-arrow-down { background-position: -312px -96px; }
131
+ .icon-share-alt { background-position: -336px -96px; }
132
+ .icon-resize-full { background-position: -360px -96px; }
133
+ .icon-resize-small { background-position: -384px -96px; }
134
+ .icon-plus { background-position: -408px -96px; }
135
+ .icon-minus { background-position: -433px -96px; }
136
+ .icon-asterisk { background-position: -456px -96px; }
137
+
138
+ .icon-exclamation-sign { background-position: 0 -120px; }
139
+ .icon-gift { background-position: -24px -120px; }
140
+ .icon-leaf { background-position: -48px -120px; }
141
+ .icon-fire { background-position: -72px -120px; }
142
+ .icon-eye-open { background-position: -96px -120px; }
143
+ .icon-eye-close { background-position: -120px -120px; }
144
+ .icon-warning-sign { background-position: -144px -120px; }
145
+ .icon-plane { background-position: -168px -120px; }
146
+ .icon-calendar { background-position: -192px -120px; }
147
+ .icon-random { background-position: -216px -120px; }
148
+ .icon-comment { background-position: -240px -120px; }
149
+ .icon-magnet { background-position: -264px -120px; }
150
+ .icon-chevron-up { background-position: -288px -120px; }
151
+ .icon-chevron-down { background-position: -313px -119px; } // 1px off
152
+ .icon-retweet { background-position: -336px -120px; }
153
+ .icon-shopping-cart { background-position: -360px -120px; }
154
+ .icon-folder-close { background-position: -384px -120px; }
155
+ .icon-folder-open { background-position: -408px -120px; }
156
+ .icon-resize-vertical { background-position: -432px -119px; }
157
+ .icon-resize-horizontal { background-position: -456px -118px; }
@@ -0,0 +1,126 @@
1
+ //
2
+ // Tables.less
3
+ // Tables for, you guessed it, tabular data
4
+ // ----------------------------------------
5
+
6
+
7
+ // BASE TABLES
8
+ // -----------------
9
+
10
+ table {
11
+ max-width: 100%;
12
+ border-collapse: collapse;
13
+ border-spacing: 0;
14
+ }
15
+
16
+ // BASELINE STYLES
17
+ // ---------------
18
+
19
+ .table {
20
+ width: 100%;
21
+ margin-bottom: $baseLineHeight;
22
+ // Cells
23
+ th, td {
24
+ padding: 8px;
25
+ line-height: $baseLineHeight;
26
+ text-align: left;
27
+ vertical-align: top;
28
+ border-top: 1px solid #ddd;
29
+ }
30
+ th {
31
+ font-weight: bold;
32
+ }
33
+ // Bottom align for column headings
34
+ thead th {
35
+ vertical-align: bottom;
36
+ }
37
+ // Remove top border from thead by default
38
+ thead:first-child tr th, thead:first-child tr td {
39
+ border-top: 0;
40
+ }
41
+ // Account for multiple tbody instances
42
+ tbody + tbody {
43
+ border-top: 2px solid #ddd;
44
+ }
45
+ }
46
+
47
+
48
+
49
+ // CONDENSED TABLE W/ HALF PADDING
50
+ // -------------------------------
51
+
52
+ .table-condensed {
53
+ th, td {
54
+ padding: 4px 5px;
55
+ }
56
+ }
57
+
58
+
59
+ // BORDERED VERSION
60
+ // ----------------
61
+
62
+ .table-bordered {
63
+ border: 1px solid #ddd;
64
+ border-collapse: separate; // Done so we can round those corners!
65
+ *border-collapse: collapsed; // IE7 can't round corners anyway
66
+ @include border-radius(4px);
67
+ th + th, td + td, th + td, td + th {
68
+ border-left: 1px solid #ddd;
69
+ }
70
+ // Prevent a double border
71
+ thead:first-child tr:first-child th, tbody:first-child tr:first-child th, tbody:first-child tr:first-child td {
72
+ border-top: 0;
73
+ }
74
+ // For first th or td in the first row in the first thead or tbody
75
+ thead:first-child tr:first-child th:first-child, tbody:first-child tr:first-child td:first-child {
76
+ @include border-radius(4px 0 0 0);
77
+ }
78
+ thead:first-child tr:first-child th:last-child, tbody:first-child tr:first-child td:last-child {
79
+ @include border-radius(0 4px 0 0);
80
+ }
81
+ // For first th or td in the first row in the first thead or tbody
82
+ thead:last-child tr:last-child th:first-child, tbody:last-child tr:last-child td:first-child {
83
+ @include border-radius(0 0 0 4px);
84
+ }
85
+ thead:last-child tr:last-child th:last-child, tbody:last-child tr:last-child td:last-child {
86
+ @include border-radius(0 0 4px 0);
87
+ }
88
+ }
89
+
90
+
91
+ // ZEBRA-STRIPING
92
+ // --------------
93
+
94
+ // Default zebra-stripe styles (alternating gray and transparent backgrounds)
95
+ .table-striped {
96
+ tbody {
97
+ tr:nth-child(odd) td, tr:nth-child(odd) th {
98
+ background-color: #f9f9f9;
99
+ }
100
+ }
101
+ }
102
+
103
+
104
+ // HOVER EFFECT
105
+ // ------------
106
+ // Placed here since it has to come after the potential zebra striping
107
+ .table {
108
+ tbody tr:hover td, tbody tr:hover th {
109
+ background-color: #f5f5f5;
110
+ }
111
+ }
112
+
113
+ // TABLE CELL SIZING
114
+ // -----------------
115
+
116
+ // Change the columns
117
+ @mixin tableColumns($columnSpan: 1) {
118
+ float: none;
119
+ width: (($gridColumnWidth) * $columnSpan) + ($gridGutterWidth * ($columnSpan - 1)) - 16;
120
+ margin-left: 0;
121
+ }
122
+ table {
123
+ @for $i from 1 through $gridColumns {
124
+ .span#{$i} { @include tableColumns($i); }
125
+ }
126
+ }
@@ -0,0 +1,35 @@
1
+ // THUMBNAILS
2
+ // ----------
3
+
4
+ .thumbnails {
5
+ margin-left: -$gridGutterWidth;
6
+ list-style: none;
7
+ @include clearfix();
8
+ }
9
+ .thumbnails > li {
10
+ float: left;
11
+ margin: 0 0 $baseLineHeight $gridGutterWidth;
12
+ }
13
+ .thumbnail {
14
+ display: block;
15
+ padding: 4px;
16
+ line-height: 1;
17
+ border: 1px solid #ddd;
18
+ @include border-radius(4px);
19
+ @include box-shadow(0 1px 1px rgba(0,0,0,.075));
20
+ }
21
+ // Add a hover state for linked versions only
22
+ a.thumbnail:hover {
23
+ border-color: $linkColor;
24
+ @include box-shadow(0 1px 4px rgba(0,105,214,.25));
25
+ }
26
+ // Images and captions
27
+ .thumbnail > img {
28
+ display: block;
29
+ max-width: 100%;
30
+ margin-left: auto;
31
+ margin-right: auto;
32
+ }
33
+ .thumbnail .caption {
34
+ padding: 9px;
35
+ }
@@ -0,0 +1,35 @@
1
+ // TOOLTIP
2
+ // ------=
3
+
4
+ .tooltip {
5
+ position: absolute;
6
+ z-index: $zindexTooltip;
7
+ display: block;
8
+ visibility: visible;
9
+ padding: 5px;
10
+ font-size: 11px;
11
+ @include opacity(0);
12
+ &.in { @include opacity(0.8); }
13
+ &.top { margin-top: -2px; }
14
+ &.right { margin-left: 2px; }
15
+ &.bottom { margin-top: 2px; }
16
+ &.left { margin-left: -2px; }
17
+ &.top .tooltip-arrow { @include popoverArrowTop(); }
18
+ &.left .tooltip-arrow { @include popoverArrowLeft(); }
19
+ &.bottom .tooltip-arrow { @include popoverArrowBottom(); }
20
+ &.right .tooltip-arrow { @include popoverArrowRight(); }
21
+ }
22
+ .tooltip-inner {
23
+ max-width: 200px;
24
+ padding: 3px 8px;
25
+ color: $white;
26
+ text-align: center;
27
+ text-decoration: none;
28
+ background-color: $black;
29
+ @include border-radius(4px);
30
+ }
31
+ .tooltip-arrow {
32
+ position: absolute;
33
+ width: 0;
34
+ height: 0;
35
+ }