Skip to content

Commit 1f741a8

Browse files
committed
refactor: toast message and dialog overlay styles
1 parent 91c9fa8 commit 1f741a8

File tree

3 files changed

+65
-68
lines changed

3 files changed

+65
-68
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
:host {
2+
all: initial !important;
3+
}
4+
5+
.phoenix-dialog-overlay {
6+
position: fixed !important;
7+
top: 0 !important;
8+
left: 0 !important;
9+
width: 100% !important;
10+
height: 100% !important;
11+
background: rgba(0, 0, 0, 0.5) !important;
12+
z-index: 2147483646 !important;
13+
pointer-events: auto !important;
14+
}
15+
16+
.phoenix-dialog-message-bar {
17+
position: absolute !important;
18+
top: 50% !important;
19+
left: 50% !important;
20+
transform: translate(-50%, -50%) !important;
21+
color: #ffffff !important;
22+
background-color: #333333 !important;
23+
padding: 1em 1.5em !important;
24+
text-align: center !important;
25+
font-size: 16px !important;
26+
border-radius: 3px !important;
27+
font-family: "SourceSansPro", Helvetica, Arial, sans-serif !important;
28+
z-index: 2147483647 !important;
29+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
:host {
2+
all: initial !important;
3+
}
4+
5+
.toast-container {
6+
position: fixed !important;
7+
bottom: 30px !important;
8+
left: 50% !important;
9+
transform: translateX(-50%) translateY(0) !important;
10+
background-color: rgba(51, 51, 51, 0.95) !important;
11+
color: white !important;
12+
padding: 10px 14px !important;
13+
border-radius: 6px !important;
14+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
15+
font-family: Arial, sans-serif !important;
16+
font-size: 13px !important;
17+
line-height: 1.4 !important;
18+
z-index: 2147483647 !important;
19+
text-align: center !important;
20+
max-width: 90% !important;
21+
box-sizing: border-box !important;
22+
animation: slideUp 0.3s ease-out !important;
23+
}
24+
25+
@keyframes slideUp {
26+
from {
27+
opacity: 0;
28+
transform: translateY(20px);
29+
}
30+
to {
31+
opacity: 1;
32+
transform: translateY(0);
33+
}
34+
}

src/extensionsIntegrated/phoenix-pro/remote-styles.js

Lines changed: 2 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -15,74 +15,8 @@ define(function (require, exports, module) {
1515
// this is the rulers and guidelines feature
1616
const rulerStyles = require("text!./browser-css/rulers.css");
1717

18-
const toastMessageStyles = `
19-
:host {
20-
all: initial !important;
21-
}
22-
23-
.toast-container {
24-
position: fixed !important;
25-
bottom: 30px !important;
26-
left: 50% !important;
27-
transform: translateX(-50%) translateY(0) !important;
28-
background-color: rgba(51, 51, 51, 0.95) !important;
29-
color: white !important;
30-
padding: 10px 14px !important;
31-
border-radius: 6px !important;
32-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
33-
font-family: Arial, sans-serif !important;
34-
font-size: 13px !important;
35-
line-height: 1.4 !important;
36-
z-index: 2147483647 !important;
37-
text-align: center !important;
38-
max-width: 90% !important;
39-
box-sizing: border-box !important;
40-
animation: slideUp 0.3s ease-out !important;
41-
}
42-
43-
@keyframes slideUp {
44-
from {
45-
opacity: 0;
46-
transform: translateY(20px);
47-
}
48-
to {
49-
opacity: 1;
50-
transform: translateY(0);
51-
}
52-
}
53-
`;
54-
55-
const dialogOverlayStyles = `
56-
:host {
57-
all: initial !important;
58-
}
59-
60-
.phoenix-dialog-overlay {
61-
position: fixed !important;
62-
top: 0 !important;
63-
left: 0 !important;
64-
width: 100% !important;
65-
height: 100% !important;
66-
background: rgba(0, 0, 0, 0.5) !important;
67-
z-index: 2147483646 !important;
68-
pointer-events: auto !important;
69-
}
70-
71-
.phoenix-dialog-message-bar {
72-
position: absolute !important;
73-
top: 50% !important;
74-
left: 50% !important;
75-
transform: translate(-50%, -50%) !important;
76-
color: #ffffff !important;
77-
background-color: #333333 !important;
78-
padding: 1em 1.5em !important;
79-
text-align: center !important;
80-
font-size: 16px !important;
81-
border-radius: 3px !important;
82-
font-family: "SourceSansPro", Helvetica, Arial, sans-serif !important;
83-
z-index: 2147483647 !important;
84-
}
85-
`;
18+
const toastMessageStyles = require("text!./browser-css/toast-message.css");
19+
const dialogOverlayStyles = require("text!./browser-css/dialog-overlay.css");
8620

8721
const aiPromptBoxStyles = `
8822
:host {

0 commit comments

Comments
 (0)