|
| 1 | +@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600'); |
| 2 | + |
1 | 3 | /* Components to hide */ |
2 | 4 | #working-set-list-container { |
3 | | - display: none !important; |
| 5 | + display: none !important; |
4 | 6 | } |
| 7 | + |
5 | 8 | span#project-title.title { |
6 | | - display: none; |
| 9 | + display: none; |
7 | 10 | } |
| 11 | + |
8 | 12 | div.working-set-option-btn[style] { |
9 | | - display: none !important; |
| 13 | + display: none !important; |
10 | 14 | } |
11 | 15 |
|
12 | | -/* Recoloring */ |
| 16 | +/* Dark Theme Color */ |
| 17 | +/* TODO - move this to the dark theme CSS later */ |
| 18 | + |
13 | 19 | #sidebar { |
14 | | - background-color: black; |
15 | | - text-shadow: none; |
16 | | - color: #333333; |
| 20 | + background-color: black; |
| 21 | + text-shadow: none; |
| 22 | +} |
| 23 | + |
| 24 | +#project-files-container { |
| 25 | + padding-left: 0; |
| 26 | + font-weight: 400; |
| 27 | + font-family: "Open Sans", "Helvetica Neue", sans-serif; |
17 | 28 | } |
18 | | -li.jstree-leaf>a { |
19 | | - padding: 5px; |
| 29 | + |
| 30 | +#project-files-container ul { |
| 31 | + padding: 0; |
| 32 | +} |
| 33 | + |
| 34 | + |
| 35 | +/* File tree basic styles */ |
| 36 | + |
| 37 | +li.jstree-leaf a span, |
| 38 | +li.jstree-leaf span.extension { |
| 39 | + font-size: 15px; |
| 40 | + color: rgba(255,255,255,.5); |
| 41 | +} |
| 42 | + |
| 43 | +li.jstree-closed > a span, |
| 44 | +li.jstree-open > a span { |
| 45 | + font-size: 15px; |
| 46 | + color: rgba(255,255,255,.7); |
| 47 | +} |
| 48 | + |
| 49 | + |
| 50 | +/* Overrides not needed margin */ |
| 51 | + |
| 52 | +.jstree-brackets li.jstree-leaf, |
| 53 | +.jstree-brackets li.jstree-closed, |
| 54 | +.jstree-brackets li.jstree-open { |
| 55 | + margin-left: 0; |
| 56 | +} |
| 57 | + |
| 58 | + |
| 59 | +/* Basic formatting of all items in file menu */ |
| 60 | + |
| 61 | +li.jstree-open a, |
| 62 | +li.jstree-closed a, |
| 63 | +li.jstree-leaf a { |
| 64 | + padding: 10px 10px 10px 30px; |
| 65 | + cursor: pointer !important; |
| 66 | +} |
| 67 | + |
| 68 | + |
| 69 | +/* Folders get bold text treatment */ |
| 70 | + |
| 71 | +li.jstree-open > a, |
| 72 | +li.jstree-closed > a { |
| 73 | + font-weight: 600; |
| 74 | +} |
| 75 | + |
| 76 | + |
| 77 | +/* Selected Item */ |
| 78 | + |
| 79 | +li.jstree-leaf a.selected-node, |
| 80 | +li.jstree-leaf a.selected-node span, |
| 81 | +li.jstree-leaf a.selected-node .extension { |
| 82 | + color: white !important; |
| 83 | +} |
| 84 | + |
| 85 | + |
| 86 | +/* Hover state for all items */ |
| 87 | + |
| 88 | +li.jstree-leaf a:not(.selected-node):hover, |
| 89 | +li.jstree-open a:first-of-type:hover, |
| 90 | +li.jstree-closed a:first-of-type:hover { |
| 91 | + background: rgba(255,255,255,.08); |
| 92 | +} |
| 93 | + |
| 94 | + |
| 95 | +/* Hover state item text */ |
| 96 | + |
| 97 | +li.jstree-leaf a:not(.selected-node):hover > span { |
| 98 | + color: rgba(255,255,255,.6); |
| 99 | +} |
| 100 | + |
| 101 | +li.jstree-open > a span, |
| 102 | +li.jstree-closed > a span { |
| 103 | + color: rgba(255,255,255,.7); |
| 104 | +} |
| 105 | + |
| 106 | + |
| 107 | +/* Message for when there are no files in a folder */ |
| 108 | + |
| 109 | +li.jstree-open > ul:empty:after { |
| 110 | + content: "This folder is empty"; |
| 111 | + color: rgba(255,255,255,.4); |
| 112 | + padding: 10px 10px 10px 30px; |
| 113 | + font-style: italic; |
| 114 | + display: block; |
20 | 115 | } |
21 | | -li.jstree-leaf>a>span { |
22 | | - font-size: 15px; |
23 | | - color: #666666; |
| 116 | + |
| 117 | + |
| 118 | +/* Right-clicked file */ |
| 119 | + |
| 120 | +li.jstree-closed a.context-node, |
| 121 | +li.jstree-open a.context-node, |
| 122 | +li.jstree-leaf a.context-node { |
| 123 | + background: rgba(255,255,255,0.08); |
24 | 124 | } |
25 | | -li.jstree-open>a>span { |
26 | | - font-size: 15px; |
27 | | - color: #666666; |
| 125 | + |
| 126 | + |
| 127 | +/* Currently selected (edited) file */ |
| 128 | + |
| 129 | +li.jstree-leaf a.selected-node, |
| 130 | +li.jstree-leaf a.selected-node:hover { |
| 131 | + background: #222; |
28 | 132 | } |
29 | | -li.jstree-closed>a>span { |
30 | | - font-size: 15px; |
31 | | - color: #666666; |
| 133 | + |
| 134 | + |
| 135 | +/* Adds icon for folders only icon */ |
| 136 | + |
| 137 | +.jstree-brackets li.jstree-closed > .jstree-icon, |
| 138 | +.jstree-brackets li.jstree-open > .jstree-icon { |
| 139 | + transition: transform .15s ease-out !important; |
| 140 | + top: 9px; |
| 141 | + left: 7px !important; |
| 142 | + margin: 0; |
| 143 | + background-image: url(../images/folder-arrow.svg); |
| 144 | + background-position: center; |
| 145 | + background-size: 7px; |
| 146 | + background-repeat: no-repeat; |
| 147 | + cursor: pointer; |
| 148 | + opacity: .8; |
32 | 149 | } |
33 | | -li.jstree-leaf>a>span.extension { |
34 | | - color: #666666; |
| 150 | + |
| 151 | + |
| 152 | +/* Opened folder gets a lighter icon */ |
| 153 | + |
| 154 | +.jstree-brackets li.jstree-open > .jstree-icon { |
| 155 | + opacity: 1; |
35 | 156 | } |
36 | | -.filetree-selection { |
37 | | - background-color: #333333; |
38 | | - border: none; |
39 | | - color: white; |
40 | | - font-weight: bolder; |
41 | | - padding: 13px; |
42 | | - width: 100% !important; |
| 157 | + |
| 158 | + |
| 159 | +/* Hides file icon for non-folders */ |
| 160 | + |
| 161 | +.jstree-brackets li.jstree-leaf > .jstree-icon { |
| 162 | + display: none; |
43 | 163 | } |
44 | | -.filetree-selection-extension { |
45 | | - opacity: 0; |
| 164 | + |
| 165 | + |
| 166 | +/* Indents files within a folder */ |
| 167 | + |
| 168 | +.jstree-open > ul { |
| 169 | + margin-left: 15px; |
| 170 | + border-left: solid 2px rgba(255,255,255,.1); |
46 | 171 | } |
47 | | -.filetree-context { |
48 | | - background-color: rgba(255,255,255,0.12); |
49 | | - height: 27px; |
| 172 | + |
| 173 | + |
| 174 | +/* Hides selected (and right-clicked) file overlay, not needed */ |
| 175 | +/* Still keeping the DOM element in case it has a functional purpose */ |
| 176 | + |
| 177 | +.filetree-selection, .filetree-context { |
| 178 | + background: transparent; |
| 179 | + border: none; |
| 180 | + height: 37px; |
50 | 181 | } |
| 182 | + |
| 183 | +.filetree-selection-extension, |
51 | 184 | .filetree-context-extension { |
52 | | - opacity: 0; |
| 185 | + opacity: 0; |
| 186 | +} |
| 187 | + |
| 188 | +/* File renaming UI */ |
| 189 | + |
| 190 | +#project-files-container .jstree-brackets .jstree-rename-input { |
| 191 | + padding: 18px 5px 19px 5px; |
| 192 | + font-size: 15px; |
| 193 | + line-height: 15px; |
| 194 | + margin-left: 22px; |
| 195 | + background: white; |
| 196 | + font-family: inherit; |
| 197 | + color: black; |
| 198 | + border-radius: 0; |
| 199 | + position: static; |
| 200 | + border: none !important; |
| 201 | + width: calc(100% - 40px) !important; |
| 202 | + box-sizing: border-box; |
| 203 | +} |
| 204 | + |
| 205 | +/* Overrides for Folder rename UI */ |
| 206 | + |
| 207 | +#project-files-container .jstree-brackets .jstree-closed .jstree-rename-input, |
| 208 | +#project-files-container .jstree-brackets .jstree-open .jstree-rename-input { |
| 209 | + margin-left: 30px; |
| 210 | +} |
| 211 | + |
| 212 | +#project-files-container .jstree-brackets .jstree-closed .jstree-rename-input + a, |
| 213 | +#project-files-container .jstree-brackets .jstree-open .jstree-rename-input + a { |
| 214 | + display: none; |
| 215 | +} |
| 216 | + |
| 217 | + |
| 218 | +/* Right-click File Menu */ |
| 219 | +/* TODO - separate dark and light styles into separate theme CSS files. */ |
| 220 | + |
| 221 | +.context-menu .dropdown-menu { |
| 222 | + padding: 0; |
| 223 | + border-radius: 0; |
| 224 | + border: none; |
53 | 225 | } |
54 | | -.menu-name { |
55 | | - font-size: 15px; |
| 226 | + |
| 227 | +.context-menu .dropdown-menu li a { |
| 228 | + padding: 10px 12px; |
| 229 | + line-height: 16px; |
| 230 | + font-size: 16px; |
| 231 | + cursor: pointer; |
56 | 232 | } |
57 | | -.context { |
58 | | - color: rgba(255,255,255,0.6); |
| 233 | + |
| 234 | +.context-menu .dropdown-menu li a:before { |
| 235 | + display: none; |
59 | 236 | } |
60 | | -li.jstree-leaf>a.jstree-clicked>span { |
61 | | - color: white; |
| 237 | + |
| 238 | +.context-menu .dropdown-menu li a:hover { |
| 239 | + background: rgba(0,0,0,.1); |
62 | 240 | } |
63 | | -li.jstree-leaf>a.jstree-clicked>span.extension { |
64 | | - color: white; |
| 241 | + |
| 242 | +.dark .context-menu .dropdown-menu li a { |
| 243 | + color: rgba(255,255,255,.5); |
65 | 244 | } |
66 | | -a.jstree-clicked .extension { |
67 | | - color: white !important; |
| 245 | + |
| 246 | +.dark .context-menu .dropdown-menu li a:hover { |
| 247 | + background: rgba(255,255,255,.1); |
| 248 | + color: rgba(255,255,255,.8); |
68 | 249 | } |
0 commit comments