|
5 | 5 |
|
6 | 6 | define(function (require, exports, module) { |
7 | 7 | const LiveDevProtocol = require("LiveDevelopment/MultiBrowserImpl/protocol/LiveDevProtocol"); |
8 | | - const optionsBoxStyles = ` |
9 | | - :host { |
10 | | - all: initial !important; |
11 | | - } |
12 | | -
|
13 | | - .phoenix-more-options-box { |
14 | | - background-color: #4285F4 !important; |
15 | | - color: white !important; |
16 | | - border-radius: 3px !important; |
17 | | - box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important; |
18 | | - font-size: 12px !important; |
19 | | - font-family: Arial, sans-serif !important; |
20 | | - z-index: 2147483646 !important; |
21 | | - position: absolute !important; |
22 | | - left: -1000px; |
23 | | - top: -1000px; |
24 | | - box-sizing: border-box !important; |
25 | | - } |
26 | | -
|
27 | | - .node-options { |
28 | | - display: flex !important; |
29 | | - align-items: center !important; |
30 | | - } |
31 | | -
|
32 | | - .node-options span { |
33 | | - padding: 4px 3.9px !important; |
34 | | - cursor: pointer !important; |
35 | | - display: flex !important; |
36 | | - align-items: center !important; |
37 | | - border-radius: 0 !important; |
38 | | - } |
39 | | -
|
40 | | - .node-options span:first-child { |
41 | | - border-radius: 3px 0 0 3px !important; |
42 | | - } |
43 | | -
|
44 | | - .node-options span:last-child { |
45 | | - border-radius: 0 3px 3px 0 !important; |
46 | | - } |
47 | | -
|
48 | | - .node-options span:hover { |
49 | | - background-color: rgba(255, 255, 255, 0.15) !important; |
50 | | - } |
51 | | -
|
52 | | - .node-options span > svg { |
53 | | - width: 16px !important; |
54 | | - height: 16px !important; |
55 | | - display: block !important; |
56 | | - } |
57 | | -
|
58 | | - .node-options span[data-action="image-gallery"].selected { |
59 | | - background-color: rgba(50, 50, 220, 0.5) !important; |
60 | | - } |
61 | | -
|
62 | | - .node-options span[data-action="image-gallery"].selected:hover { |
63 | | - background-color: rgba(100, 100, 230, 0.6) !important; |
64 | | - } |
65 | | - `; |
66 | | - |
67 | | - const optionsBoxDropdownStyles = ` |
68 | | - :host { |
69 | | - all: initial !important; |
70 | | - } |
71 | | -
|
72 | | - .phoenix-dropdown { |
73 | | - background-color: #2c2c2c !important; |
74 | | - color: #cdcdcd !important; |
75 | | - border: 1px solid #4a4a4a !important; |
76 | | - border-radius: 6px !important; |
77 | | - box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25) !important; |
78 | | - font-size: 13px !important; |
79 | | - font-family: Arial, sans-serif !important; |
80 | | - z-index: 2147483647 !important; |
81 | | - position: absolute !important; |
82 | | - left: -1000px; |
83 | | - top: -1000px; |
84 | | - box-sizing: border-box !important; |
85 | | - min-width: 130px !important; |
86 | | - padding: 3px 0 !important; |
87 | | - overflow: hidden !important; |
88 | | - } |
89 | | -
|
90 | | - .more-options-dropdown { |
91 | | - display: flex !important; |
92 | | - flex-direction: column !important; |
93 | | - } |
94 | | -
|
95 | | - .dropdown-item { |
96 | | - padding: 7px 14px !important; |
97 | | - cursor: pointer !important; |
98 | | - white-space: nowrap !important; |
99 | | - user-select: none !important; |
100 | | - display: flex !important; |
101 | | - align-items: center !important; |
102 | | - gap: 6px !important; |
103 | | - } |
104 | | -
|
105 | | - .dropdown-item:hover { |
106 | | - background-color: #3c3f41 !important; |
107 | | - } |
108 | | -
|
109 | | - .item-icon { |
110 | | - display: flex !important; |
111 | | - align-items: center !important; |
112 | | - justify-content: center !important; |
113 | | - width: 16px !important; |
114 | | - height: 16px !important; |
115 | | - flex-shrink: 0 !important; |
116 | | - } |
117 | | -
|
118 | | - .item-icon svg { |
119 | | - width: 16px !important; |
120 | | - height: 16px !important; |
121 | | - display: block !important; |
122 | | - } |
123 | | -
|
124 | | - .item-label { |
125 | | - flex: 1 !important; |
126 | | - } |
127 | | -
|
128 | | - .item-label.show-ruler-label { |
129 | | - margin-top: 1px !important; |
130 | | - } |
131 | | -
|
132 | | - .dropdown-separator { |
133 | | - height: 1px !important; |
134 | | - background-color: #4a4a4a !important; |
135 | | - margin: 2px 0 !important; |
136 | | - } |
137 | 8 |
|
138 | | - .item-checkmark { |
139 | | - margin-left: auto !important; |
140 | | - padding-left: 4px !important; |
141 | | - padding-bottom: 1px !important; |
142 | | - font-size: 14px !important; |
143 | | - display: flex !important; |
144 | | - align-items: center !important; |
145 | | - justify-content: center !important; |
146 | | - width: 14px !important; |
147 | | - height: 14px !important; |
148 | | - } |
149 | | -
|
150 | | - .item-checkmark svg { |
151 | | - width: 14px !important; |
152 | | - height: 14px !important; |
153 | | - display: block !important; |
154 | | - } |
155 | | - `; |
| 9 | + // this is the box that comes up with the tools like select parent, duplicate, delete, etc.. |
| 10 | + const optionsBoxStyles = require("text!./browser-css/options-box.css"); |
| 11 | + // this is the more options dropdown that comes up when clicking the ... icon in the option box. |
| 12 | + const optionsBoxDropdownStyles = require("text!./browser-css/more-options-dropdown.css"); |
156 | 13 |
|
157 | 14 | const infoBoxStyles = ` |
158 | 15 | :host { |
|
0 commit comments