cartilage 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.markdown +57 -0
  3. data/Rakefile +84 -0
  4. data/app/assets/images/cartilage/patterns/background.dark.png +0 -0
  5. data/app/assets/images/cartilage/patterns/background.dark.psd +0 -0
  6. data/app/assets/images/cartilage/patterns/background.light.png +0 -0
  7. data/app/assets/images/cartilage/patterns/background.light.psd +0 -0
  8. data/app/assets/images/cartilage/patterns/background.medium.png +0 -0
  9. data/app/assets/images/cartilage/patterns/background.medium.psd +0 -0
  10. data/app/assets/images/cartilage/patterns/background.png +0 -0
  11. data/app/assets/images/cartilage/patterns/background.psd +0 -0
  12. data/app/assets/javascripts/cartilage/application.js.coffee +45 -0
  13. data/app/assets/javascripts/cartilage/collections/segments.js.coffee +4 -0
  14. data/app/assets/javascripts/cartilage/core.js.coffee +8 -0
  15. data/app/assets/javascripts/cartilage/models/model.js.coffee +2 -0
  16. data/app/assets/javascripts/cartilage/models/segment.js.coffee +2 -0
  17. data/app/assets/javascripts/cartilage/views/bar_segment_view.js.coffee +58 -0
  18. data/app/assets/javascripts/cartilage/views/bar_view.js.coffee +85 -0
  19. data/app/assets/javascripts/cartilage/views/content_view.js.coffee +16 -0
  20. data/app/assets/javascripts/cartilage/views/image_view.js.coffee +76 -0
  21. data/app/assets/javascripts/cartilage/views/list_view.js.coffee +515 -0
  22. data/app/assets/javascripts/cartilage/views/list_view_item.js.coffee +85 -0
  23. data/app/assets/javascripts/cartilage/views/loading_indicator_view.js.coffee +147 -0
  24. data/app/assets/javascripts/cartilage/views/matrix_view.js.coffee +253 -0
  25. data/app/assets/javascripts/cartilage/views/matrix_view_item.js.coffee +5 -0
  26. data/app/assets/javascripts/cartilage/views/modal_view.js.coffee +26 -0
  27. data/app/assets/javascripts/cartilage/views/popover_view.js.coffee +212 -0
  28. data/app/assets/javascripts/cartilage/views/source_list_view.js.coffee +69 -0
  29. data/app/assets/javascripts/cartilage/views/source_list_view_item.js.coffee +5 -0
  30. data/app/assets/javascripts/cartilage/views/split_view.js.coffee +175 -0
  31. data/app/assets/javascripts/cartilage/views/usage_bar_view.js.coffee +5 -0
  32. data/app/assets/javascripts/cartilage/views/view.js.coffee +232 -0
  33. data/app/assets/javascripts/cartilage.js.coffee +18 -0
  34. data/app/assets/javascripts/extensions/console.js.coffee +9 -0
  35. data/app/assets/javascripts/extensions/constructor_name.js.coffee +10 -0
  36. data/app/assets/javascripts/extensions/properties.js.coffee +45 -0
  37. data/app/assets/javascripts/extensions/underscore.js.coffee +71 -0
  38. data/app/assets/stylesheets/cartilage/core.css.scss +432 -0
  39. data/app/assets/stylesheets/cartilage/mixins.css.scss +19 -0
  40. data/app/assets/stylesheets/cartilage/responsive.css.scss +192 -0
  41. data/app/assets/stylesheets/cartilage/variables.css.scss +113 -0
  42. data/app/assets/stylesheets/cartilage/views/list_view.css.scss +41 -0
  43. data/app/assets/stylesheets/cartilage/views/list_view_item.css.scss +47 -0
  44. data/app/assets/stylesheets/cartilage/views/loading_indicator_view.css.scss +50 -0
  45. data/app/assets/stylesheets/cartilage/views/matrix_view.css.scss +87 -0
  46. data/app/assets/stylesheets/cartilage/views/popover_view.css.scss +124 -0
  47. data/app/assets/stylesheets/cartilage/views/segmented_view.css.scss +98 -0
  48. data/app/assets/stylesheets/cartilage/views/source_list_view.css.scss +65 -0
  49. data/app/assets/stylesheets/cartilage/views/split_view.css.scss +80 -0
  50. data/app/assets/stylesheets/cartilage/views/usage_bar_view.css.scss +101 -0
  51. data/app/assets/stylesheets/cartilage/views/view.css.scss +13 -0
  52. data/app/assets/stylesheets/cartilage.css.scss +5 -0
  53. data/lib/cartilage/engine.rb +14 -0
  54. data/lib/cartilage/version.rb +3 -0
  55. data/lib/cartilage.rb +5 -0
  56. data/lib/tasks/cartilage_tasks.rake +4 -0
  57. data/test/cartilage_test.rb +7 -0
  58. data/test/dummy/Rakefile +7 -0
  59. data/test/dummy/app/assets/javascripts/application.js +9 -0
  60. data/test/dummy/app/assets/stylesheets/application.css +7 -0
  61. data/test/dummy/app/controllers/application_controller.rb +3 -0
  62. data/test/dummy/app/helpers/application_helper.rb +2 -0
  63. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  64. data/test/dummy/config/application.rb +45 -0
  65. data/test/dummy/config/boot.rb +10 -0
  66. data/test/dummy/config/database.yml +25 -0
  67. data/test/dummy/config/environment.rb +5 -0
  68. data/test/dummy/config/environments/development.rb +30 -0
  69. data/test/dummy/config/environments/production.rb +60 -0
  70. data/test/dummy/config/environments/test.rb +42 -0
  71. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  72. data/test/dummy/config/initializers/inflections.rb +10 -0
  73. data/test/dummy/config/initializers/mime_types.rb +5 -0
  74. data/test/dummy/config/initializers/secret_token.rb +7 -0
  75. data/test/dummy/config/initializers/session_store.rb +8 -0
  76. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  77. data/test/dummy/config/locales/en.yml +5 -0
  78. data/test/dummy/config/routes.rb +58 -0
  79. data/test/dummy/config.ru +4 -0
  80. data/test/dummy/db/readme +6 -0
  81. data/test/dummy/public/404.html +26 -0
  82. data/test/dummy/public/422.html +26 -0
  83. data/test/dummy/public/500.html +26 -0
  84. data/test/dummy/public/favicon.ico +0 -0
  85. data/test/dummy/script/rails +6 -0
  86. data/test/framework/cartilage/application_test.js.coffee +14 -0
  87. data/test/framework/cartilage/views/bar_segment_view_test.js.coffee +5 -0
  88. data/test/framework/cartilage/views/bar_view_test.js.coffee +30 -0
  89. data/test/framework/cartilage/views/image_view_test.js.coffee +27 -0
  90. data/test/framework/cartilage/views/list_view_item_test.js.coffee +17 -0
  91. data/test/framework/cartilage/views/list_view_test.js.coffee +190 -0
  92. data/test/framework/cartilage/views/loading_indicator_view_test.js.coffee +5 -0
  93. data/test/framework/cartilage/views/matrix_view_item_test.js.coffee +5 -0
  94. data/test/framework/cartilage/views/matrix_view_test.js.coffee +5 -0
  95. data/test/framework/cartilage/views/popover_view_test.js.coffee +5 -0
  96. data/test/framework/cartilage/views/source_list_view_item_test.js.coffee +5 -0
  97. data/test/framework/cartilage/views/source_list_view_test.js.coffee +5 -0
  98. data/test/framework/cartilage/views/split_view_test.js.coffee +5 -0
  99. data/test/framework/cartilage/views/usage_bar_view_test.js.coffee +5 -0
  100. data/test/framework/cartilage/views/view_test.js.coffee +85 -0
  101. data/test/framework/extensions/properties_test.js.coffee +82 -0
  102. data/test/framework/extensions/underscore_test.js.coffee +73 -0
  103. data/test/framework/index.html +72 -0
  104. data/test/framework/vendor/backbone.js +1431 -0
  105. data/test/framework/vendor/coffee-script.js +8 -0
  106. data/test/framework/vendor/jquery.js +9440 -0
  107. data/test/framework/vendor/phantomjs-runner.js +196 -0
  108. data/test/framework/vendor/qunit.css +235 -0
  109. data/test/framework/vendor/qunit.js +1977 -0
  110. data/test/framework/vendor/run-qunit.js +81 -0
  111. data/test/framework/vendor/sinon-1.5.0.js +4142 -0
  112. data/test/framework/vendor/sinon-qunit-1.0.0.js +62 -0
  113. data/test/framework/vendor/underscore.js +1059 -0
  114. data/test/test_helper.rb +10 -0
  115. metadata +373 -0
@@ -0,0 +1,113 @@
1
+ // Variables.less
2
+ // Variables to customize the look and feel of Bootstrap
3
+ // -----------------------------------------------------
4
+
5
+
6
+
7
+ // GLOBAL VALUES
8
+ // --------------------------------------------------
9
+
10
+ // Links
11
+ $linkColor: #08c;
12
+ $linkColorHover: darken($linkColor, 15%);
13
+
14
+ // Grays
15
+ $black: #000;
16
+ $grayDarker: #222;
17
+ $grayDark: #333;
18
+ $gray: #555;
19
+ $grayLight: #999;
20
+ $grayLighter: #eee;
21
+ $white: #fff;
22
+
23
+ // Accent colors
24
+ $blue: #049cdb;
25
+ $blueDark: #0064cd;
26
+ $green: #46a546;
27
+ $red: #9d261d;
28
+ $yellow: #ffc40d;
29
+ $orange: #f89406;
30
+ $pink: #c3325f;
31
+ $purple: #7a43b6;
32
+
33
+ // Typography
34
+ $baseFontSize: 13px;
35
+ $baseFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
36
+ $baseLineHeight: 18px;
37
+ $textColor: $grayDark;
38
+
39
+ // Buttons
40
+ $primaryButtonBackground: $linkColor;
41
+
42
+
43
+
44
+ // COMPONENT VARIABLES
45
+ // --------------------------------------------------
46
+
47
+ // Z-index master list
48
+ // Used for a bird's eye view of components dependent on the z-axis
49
+ // Try to avoid customizing these :)
50
+ $zindexDropdown: 1032;
51
+ $zindexPopover: 1010;
52
+ $zindexTooltip: 1020;
53
+ $zindexFixedNavbar: 1030;
54
+ $zindexModalBackdrop: 1040;
55
+ $zindexModal: 1050;
56
+
57
+ // Input placeholder text color
58
+ $placeholderText: $grayLight;
59
+
60
+ // Navigation Bar ------------------------------------------------------------
61
+
62
+ //
63
+ // The navigation bar (or "navbar") is the primary header for the site that is
64
+ // pinned to the top of the page and is responsible for primary navigation and
65
+ // other global actions.
66
+ //
67
+
68
+ $navbarHeight: 64px;
69
+ $navbarBackground: #233137;
70
+ $navbarBackgroundHighlight: #464d53;
71
+
72
+ $navbarText: $grayLight;
73
+ $navbarLinkColor: rgba(255, 255, 255, 0.9);
74
+ $navbarLinkColorHover: $white;
75
+ $navbarLinkColorActive: $black;
76
+
77
+ // Form states and alerts
78
+ $warningText: #c09853;
79
+ $warningBackground: #fcf8e3;
80
+ $warningBorder: darken(adjust-hue($warningBackground, -10), 3%);
81
+
82
+ $errorText: #b94a48;
83
+ $errorBackground: #f2dede;
84
+ $errorBorder: darken(adjust-hue($errorBackground, -10), 3%);
85
+
86
+ $successText: #468847;
87
+ $successBackground: #dff0d8;
88
+ $successBorder: darken(adjust-hue($successBackground, -10), 5%);
89
+
90
+ $infoText: #3a87ad;
91
+ $infoBackground: #d9edf7;
92
+ $infoBorder: darken(adjust-hue($infoBackground, -10), 20%);
93
+
94
+ // Content
95
+
96
+ $sectionWellBackground: #a4aaad asset-url("cartilage/patterns/background.medium.png", image);
97
+
98
+ // Source List View
99
+
100
+ $sourceListBackground: #dee4ea;
101
+
102
+ // GRID
103
+ // --------------------------------------------------
104
+
105
+ // Default 940px grid
106
+ $gridColumns: 12;
107
+ $gridColumnWidth: 60px;
108
+ $gridGutterWidth: 20px;
109
+ $gridRowWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1));
110
+
111
+ // Fluid grid
112
+ $fluidGridColumnWidth: 6.382978723%;
113
+ $fluidGridGutterWidth: 2.127659574%;
@@ -0,0 +1,41 @@
1
+
2
+ // Cartilage Support ---------------------------------------------------------
3
+
4
+ @import "cartilage/mixins";
5
+ @import "cartilage/variables";
6
+
7
+ // List View -----------------------------------------------------------------
8
+
9
+ .list-view
10
+ {
11
+ position: absolute;
12
+ top: 0;
13
+ left: 0;
14
+ right: 0;
15
+ bottom: 0;
16
+
17
+ cursor: default;
18
+
19
+ @include user-select(none);
20
+
21
+ > .list-view-items-container
22
+ {
23
+ position: absolute;
24
+ top: 0;
25
+ left: 0;
26
+ right: 0;
27
+ bottom: 0;
28
+
29
+ margin: 0;
30
+ padding: 0;
31
+
32
+ overflow: auto;
33
+
34
+ list-style: none;
35
+
36
+ &:focus
37
+ {
38
+ outline: none;
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,47 @@
1
+
2
+ // Cartilage Support ---------------------------------------------------------
3
+
4
+ @import "cartilage/mixins";
5
+ @import "cartilage/variables";
6
+
7
+ // List View Item ------------------------------------------------------------
8
+
9
+ .list-view-item
10
+ {
11
+ margin: 0;
12
+ padding: 6px;
13
+ text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
14
+
15
+ @include box-sizing(border-box);
16
+
17
+ &:nth-of-type(even)
18
+ {
19
+ background-color: rgba(0, 0, 0, 0.025);
20
+ }
21
+
22
+ &:focus
23
+ {
24
+ outline: none;
25
+ }
26
+
27
+ &.disabled
28
+ {
29
+ color: rgba(0, 0, 0, 0.4)
30
+ }
31
+
32
+ &.selected
33
+ {
34
+ background-color: #73adff;
35
+ }
36
+
37
+ &.drop-before
38
+ {
39
+ border-top: 2px solid black;
40
+ }
41
+
42
+ &.drop-after
43
+ {
44
+ border-bottom: 2px solid black;
45
+ }
46
+
47
+ }
@@ -0,0 +1,50 @@
1
+
2
+ // Cartilage Support ---------------------------------------------------------
3
+
4
+ @import "cartilage/mixins";
5
+ @import "cartilage/variables";
6
+
7
+ // Loading Indicator View ----------------------------------------------------
8
+
9
+ /* Configuration */
10
+
11
+ $loadingIndicatorSize: 96px;
12
+
13
+ /* Definition */
14
+
15
+ .loading-indicator-view
16
+ {
17
+ position: absolute;
18
+ top: 50%;
19
+ left: 50%;
20
+ margin-top: -($loadingIndicatorSize / 2);
21
+ margin-left: -($loadingIndicatorSize / 2);
22
+ height: $loadingIndicatorSize;
23
+ width: $loadingIndicatorSize;
24
+ overflow: hidden;
25
+
26
+ background: transparent;
27
+ background-color: rgba(0, 0, 0, 0.15);
28
+
29
+ @include box-shadow(inset 1px 1px 3px rgba(0, 0, 0, 0.15));
30
+ @include border-radius(10px);
31
+
32
+ color: rgb(50, 50, 50);
33
+
34
+ canvas
35
+ {
36
+ position: absolute;
37
+ top: 0;
38
+ left: 0;
39
+ right: 0;
40
+ bottom: 0;
41
+ // width: $loadingIndicatorSize;
42
+ // height: $loadingIndicatorSize;
43
+
44
+ // > div
45
+ // {
46
+ // width: $loadingIndicatorSize;
47
+ // height: $loadingIndicatorSize;
48
+ // }
49
+ }
50
+ }
@@ -0,0 +1,87 @@
1
+
2
+ // Cartilage Support ---------------------------------------------------------
3
+
4
+ @import "cartilage/mixins";
5
+ @import "cartilage/variables";
6
+
7
+ // Matrix View ---------------------------------------------------------------
8
+
9
+ .matrix-view
10
+ {
11
+ position: absolute;
12
+ left: 0;
13
+ top: 0;
14
+ right: 0;
15
+ bottom: 0;
16
+
17
+ margin: 10px;
18
+ font-size: 7pt; // TODO Change this to px
19
+
20
+ li
21
+ {
22
+ float: left;
23
+ width: 192px;
24
+ height: 192px;
25
+ margin: 10px;
26
+ text-align: center;
27
+ font-weight: bold;
28
+ font-size: 120%;
29
+ border: 1px dotted rgba(0, 0, 0, 0.1);
30
+ color: rgba(0, 0, 0, 0.25);
31
+
32
+ border-radius: 5px;
33
+
34
+ text-overflow: ellipsis;
35
+ background-color: white;
36
+
37
+ &:nth-of-type(even)
38
+ {
39
+ background-color: white;
40
+ }
41
+
42
+ &.selected
43
+ {
44
+ border: 1px solid rgba(0, 0, 255, 0.15);
45
+ background-color: rgba(0, 0, 0, 0.025);
46
+ @include box-shadow(#{
47
+ inset 0 1px 0 rgba(255, 255, 255, 0.95),
48
+ inset 1px 0 0 rgba(255, 255, 255, 0.75),
49
+ inset -1px 0 0 rgba(255, 255, 255, 0.75),
50
+ inset 0 -1px 0 rgba(0, 0, 0, 0.05)
51
+ });
52
+ }
53
+
54
+ &:focus
55
+ {
56
+ outline: none;
57
+ @include box-shadow(#{
58
+ inset 0 1px 0 rgba(255, 255, 255, 0.95),
59
+ inset 1px 0 0 rgba(255, 255, 255, 0.75),
60
+ inset -1px 0 0 rgba(255, 255, 255, 0.75),
61
+ inset 0 -1px 0 rgba(0, 0, 0, 0.05),
62
+ 0 0 5px rgba(43, 122, 186, 0.25)
63
+ });
64
+ }
65
+ }
66
+
67
+ &:after
68
+ {
69
+ content: "";
70
+ display: block;
71
+ clear: both;
72
+ padding-bottom: 20px;
73
+ }
74
+
75
+ .overlay
76
+ {
77
+ position: absolute;
78
+ height: 0px;
79
+ width: 0px;
80
+
81
+ z-index: $zindexModalBackdrop;
82
+
83
+ background-color: #336699;
84
+ border: 1px solid black;
85
+ @include opacity(0.25);
86
+ }
87
+ }
@@ -0,0 +1,124 @@
1
+
2
+ // Cartilage Support ---------------------------------------------------------
3
+
4
+ @import "cartilage/mixins";
5
+ @import "cartilage/variables";
6
+
7
+ // Popover View --------------------------------------------------------------
8
+
9
+ .popover-view
10
+ {
11
+ position: absolute;
12
+
13
+ width: 100px; /* auto; */
14
+ height: 80px; /* auto; */
15
+ z-index: 1000;
16
+ margin: 20px;
17
+
18
+ border: 2px solid rgb(0, 0, 0) !important;
19
+ border: 2px solid rgba(0, 0, 0, 0.9) !important;
20
+ @include border-radius(2px);
21
+
22
+ color: white;
23
+ text-align: center;
24
+ line-height: 40px;
25
+
26
+ @include box-shadow(0px 0px 16px rgba(0, 0, 0, 0.5));
27
+
28
+ .triangle
29
+ {
30
+ position: absolute;
31
+ top: 50%;
32
+ left: 50%;
33
+
34
+ width:0px;
35
+ height:0px;
36
+
37
+ margin-left: -14px;
38
+
39
+ font-size: 0px;
40
+ line-height: 0px;
41
+ }
42
+
43
+ .content-view
44
+ {
45
+ position: relative;
46
+
47
+ background-color: rgba(0, 0, 0, 0.9);
48
+
49
+ @include gradient-vertical(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.95));
50
+ @include box-shadow(inset 1px 1px 0 rgba(255, 255, 255, 0.25));
51
+
52
+ p, li
53
+ {
54
+ text-shadow: none;
55
+ }
56
+
57
+ }
58
+ }
59
+
60
+ .popover-view.top
61
+ {
62
+ .triangle
63
+ {
64
+ top: auto;
65
+ bottom: 0;
66
+ margin-bottom: -15px;
67
+
68
+ border-left: 14px solid transparent;
69
+ border-right: 14px solid transparent;
70
+ border-top: 14px solid rgb(0, 0, 0);
71
+ border-top: 14px solid rgba(0, 0, 0, 0.85);
72
+ }
73
+ }
74
+
75
+ .popover-view.bottom
76
+ {
77
+ .triangle
78
+ {
79
+ top: 0;
80
+ bottom: auto;
81
+ margin-top: -15px;
82
+
83
+ border-left: 14px solid transparent;
84
+ border-right: 14px solid transparent;
85
+ border-bottom: 14px solid rgb(0, 0, 0);
86
+ border-bottom: 14px solid rgba(0, 0, 0, 0.85);
87
+ }
88
+ }
89
+
90
+ .popover-view.left
91
+ {
92
+ .triangle
93
+ {
94
+ top: 50%;
95
+ bottom: auto;
96
+ right: 0;
97
+ left: auto;
98
+ margin-right: -15px;
99
+ margin-top: -15px;
100
+
101
+ border-left: 14px solid rgb(0, 0, 0);
102
+ border-left: 14px solid rgba(0, 0, 0, 0.85);
103
+ border-top: 14px solid transparent;
104
+ border-bottom: 14px solid transparent;
105
+ }
106
+ }
107
+
108
+ .popover-view.right
109
+ {
110
+ .triangle
111
+ {
112
+ top: 50%;
113
+ bottom: auto;
114
+ right: auto;
115
+ left: 0;
116
+ margin-left: -15px;
117
+ margin-top: -15px;
118
+
119
+ border-right: 14px solid rgb(0, 0, 0);
120
+ border-right: 14px solid rgba(0, 0, 0, 0.85);
121
+ border-top: 14px solid transparent;
122
+ border-bottom: 14px solid transparent;
123
+ }
124
+ }
@@ -0,0 +1,98 @@
1
+
2
+ // Cartilage Support ---------------------------------------------------------
3
+
4
+ @import "cartilage/mixins";
5
+ @import "cartilage/variables";
6
+
7
+ // Segmented View ------------------------------------------------------------
8
+
9
+ fieldset.segmented-view
10
+ {
11
+ margin: 0;
12
+ padding: 0;
13
+ float: left;
14
+
15
+ font-size: 10px;
16
+ line-height: 26px;
17
+
18
+ legend
19
+ {
20
+ margin: 0;
21
+ padding: 0;
22
+ font-size: inherit;
23
+ line-height: inherit;
24
+ float: left;
25
+ margin-right: 10px;
26
+ width: auto;
27
+
28
+ color: rgb(115, 115, 115);
29
+ color: rgba(0, 0, 0, 0.5);
30
+ text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.9);
31
+ font-weight: bold;
32
+ }
33
+
34
+ input[type=radio]
35
+ {
36
+ display: none;
37
+ }
38
+
39
+ label
40
+ {
41
+ margin: 0;
42
+ padding: 0;
43
+ float: left;
44
+ width: auto;
45
+ font-size: inherit;
46
+ line-height: inherit;
47
+ padding-left: 6px;
48
+ padding-right: 6px;
49
+ margin-right: 4px;
50
+
51
+ color: rgb(115, 115, 115);
52
+ color: rgba(0, 0, 0, 0.5);
53
+ text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.9) !important;
54
+
55
+ @include border-radius(2px);
56
+ @include transition(color 0.5s);
57
+
58
+ &:hover
59
+ {
60
+ background: none;
61
+ color: rgb(85, 85, 85);
62
+ color: rgba(0, 0, 0, 0.6);
63
+ @include box-shadow(none);
64
+ }
65
+
66
+ &:active
67
+ {
68
+ background-color: transparent !important;
69
+ background-image: none !important;
70
+ color: rgb(85, 85, 85);
71
+ color: rgba(0, 0, 0, 0.6);
72
+ @include box-shadow(none);
73
+ }
74
+ }
75
+
76
+ input[type=radio]:checked + label,
77
+ input[type=radio]:checked + label:hover
78
+ {
79
+ color: rgb(85, 85, 85);
80
+ color: rgba(0, 0, 0, 0.6);
81
+
82
+ @include box-shadow(#{
83
+ inset 0 1px 0 rgba(0, 0, 0, 0.1),
84
+ inset 1px 0 0 rgba(0, 0, 0, 0.05),
85
+ inset -1px 0 0 rgba(0, 0, 0, 0.05),
86
+ inset 0 -1px 0 rgba(255, 255, 255, 0.8)
87
+ });
88
+
89
+ @include gradient-vertical(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
90
+ }
91
+
92
+ &:after
93
+ {
94
+ content: "";
95
+ display: block;
96
+ clear: both;
97
+ }
98
+ }
@@ -0,0 +1,65 @@
1
+
2
+ // Cartilage Support ---------------------------------------------------------
3
+
4
+ @import "cartilage/mixins";
5
+ @import "cartilage/variables";
6
+
7
+ // Source List View ----------------------------------------------------------
8
+
9
+ .source-list-view
10
+ {
11
+ background: $sourceListBackground;
12
+ border-right: 1px solid rgba(0, 0, 0, 0.45);
13
+
14
+ overflow: hidden;
15
+
16
+ > .header-view
17
+ {
18
+ position: absolute;
19
+ top: 0;
20
+ left: 0;
21
+ right: 0;
22
+
23
+ z-index: 1;
24
+
25
+ // List Views are absolutely positioned to take up all available space,
26
+ // by default. When in a header view, we want to force it to relative
27
+ // position so that we can calculate its height.
28
+ > .list-view
29
+ {
30
+ position: relative;
31
+
32
+ > .list-view-items-container
33
+ {
34
+ position: relative;
35
+ }
36
+ }
37
+
38
+ &:after
39
+ {
40
+ content: "";
41
+ position: absolute;
42
+ bottom: -3px;
43
+ left: 0;
44
+ right: 0;
45
+ height: 4px;
46
+ background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyYWRpYWxHcmFkaWVudCBpZD0iZyI+PHN0b3Agb2Zmc2V0PSIwLjM4IiBzdG9wLWNvbG9yPSJyZ2JhKDAsIDAsIDAsIDAuMDc1KSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0icmdiYSgwLCAwLCAwLCAwKSIvPjwvcmFkaWFsR3JhZGllbnQ+PHJlY3QgeD0iMCUiIHk9IjAlIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJyZ2JhKDAsIDAsIDAsIDApIiAvPjxyZWN0IHg9IjAlIiB5PSItMTAwJSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMjAwJSIgZmlsbD0idXJsKCNnKSIgLz48L3N2Zz4=);
47
+ background-image: -webkit-gradient(radial, 50% 0%, 0, 50% 0%, 283, color-stop(38%, rgba(0, 0, 0, 0.075)), color-stop(100%, rgba(0, 0, 0, 0)));
48
+ background-image: -webkit-radial-gradient(center top, farthest-side, rgba(0, 0, 0, 0.075) 38%, rgba(0, 0, 0, 0) 100%);
49
+ background-image: -moz-radial-gradient(center top, farthest-side, rgba(0, 0, 0, 0.075) 38%, rgba(0, 0, 0, 0) 100%);
50
+ background-image: -ms-radial-gradient(center top, farthest-side, rgba(0, 0, 0, 0.075) 38%, rgba(0, 0, 0, 0) 100%);
51
+ background-image: -o-radial-gradient(center top, farthest-side, rgba(0, 0, 0, 0.075) 38%, rgba(0, 0, 0, 0) 100%);
52
+ background-image: radial-gradient(farthest-side at center top, rgba(0, 0, 0, 0.075) 38%, rgba(0, 0, 0, 0) 100%);
53
+ }
54
+ }
55
+
56
+ > .footer-view
57
+ {
58
+ position: absolute;
59
+ left: 0;
60
+ right: 0;
61
+ bottom: 0;
62
+
63
+ z-index: 1;
64
+ }
65
+ }
@@ -0,0 +1,80 @@
1
+
2
+ // Cartilage Support ---------------------------------------------------------
3
+
4
+ @import "cartilage/mixins";
5
+ @import "cartilage/variables";
6
+
7
+ // Split View ----------------------------------------------------------------
8
+
9
+ .split-view
10
+ {
11
+ position: absolute;
12
+ top: 0;
13
+ left: 0;
14
+ right: 0;
15
+ bottom: 0;
16
+
17
+ > .first-view,
18
+ > .second-view
19
+ {
20
+ position: absolute;
21
+ top: 0;
22
+ left: 0;
23
+ right: 0;
24
+ bottom: 0;
25
+
26
+ overflow: auto;
27
+ }
28
+
29
+ &.horizontal
30
+ {
31
+ .first-view
32
+ {
33
+ height: 50%;
34
+ }
35
+
36
+ .second-view
37
+ {
38
+ top: 50%;
39
+ }
40
+
41
+ .drag-handle
42
+ {
43
+ position: absolute;
44
+ left: 0;
45
+ right: 0;
46
+
47
+ top: 50%;
48
+ height: 5px;
49
+ z-index: 100;
50
+
51
+ cursor: row-resize;
52
+ }
53
+ }
54
+
55
+ &.vertical
56
+ {
57
+ .first-view
58
+ {
59
+ width: 50%;
60
+ }
61
+
62
+ .second-view
63
+ {
64
+ left: 50%;
65
+ }
66
+
67
+ .drag-handle
68
+ {
69
+ position: absolute;
70
+ top: 0;
71
+ bottom: 0;
72
+
73
+ left: 50%;
74
+ width: 5px;
75
+ z-index: 100;
76
+
77
+ cursor: col-resize;
78
+ }
79
+ }
80
+ }