Skip to content

Commit 3a1d61a

Browse files
committed
Refactor dialog
1 parent 3517198 commit 3a1d61a

File tree

3 files changed

+221
-205
lines changed

3 files changed

+221
-205
lines changed
Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,218 @@
1+
.hide-overflow
2+
overflow: hidden
3+
4+
.ui-widget-overlay
5+
background-color: rgba(0,0,0,0.25)
6+
height: 100%
7+
left: 0
8+
position: fixed
9+
top: 0
10+
width: 100%
11+
z-index: 550
12+
13+
14+
.ui-dialog
15+
border-radius: 3px
16+
box-shadow: 0px 0px 10px rgba(0,0,0,0.2)
17+
position: absolute
18+
background-color: #fff
19+
color: $text_base_color
20+
width: auto
21+
z-index: 1000
22+
23+
#dialog_loading
24+
position: fixed
25+
top: 50%
26+
left: 50%
27+
width: 208px
28+
height: 13px
29+
margin: -6px 0 0 -104px
30+
31+
.ui-dialog
32+
.ui-dialog-titlebar
33+
padding: 1.25em
34+
border-bottom: 1px solid $line_separator_colour
35+
36+
.ui-dialog-title
37+
font-size: 1.1em
38+
color: $text_base_color
39+
40+
.ui-dialog-titlebar-close
41+
@include icon('times')
42+
background: none
43+
border: none
44+
cursor: pointer
45+
float: right
46+
font-size: 1.2em
47+
margin-top: -0.15em
48+
49+
span
50+
border: 0
51+
clip: rect(0 0 0 0)
52+
height: 1px
53+
margin: -1px
54+
overflow: hidden
55+
padding: 0
56+
position: absolute
57+
width: 1px
58+
59+
iframe
60+
width: 100% !important
61+
62+
#dialog_container
63+
background-color: white
64+
65+
#dialog_container #content .field,
66+
.dialog_container .field
67+
width: auto
68+
margin: 5px 0
69+
70+
#dialog-form-actions .pagination
71+
margin: -4px 6px -4px 0px
72+
float: right
73+
width: auto
74+
a,
75+
.current,
76+
.disabled
77+
line-height: 15px
78+
79+
#dialog_container #content .form-actions,
80+
.ui-dialog .form-actions,
81+
.dialog_container .form-actions
82+
position: absolute
83+
bottom: 0px
84+
left: 0px
85+
right: 0px
86+
border-right: 0px
87+
border-left: 0px
88+
border-bottom: 0px
89+
width: auto
90+
91+
#dialog_container.dialog.iframed #content .form-actions
92+
position: fixed
93+
94+
95+
96+
// #dialog_frame
97+
// width: 952px
98+
// height: 460px
99+
// padding: 0px
100+
// border: 0px solid #F2F1ED
101+
102+
103+
104+
105+
// .visual_editor_hideables
106+
// display: none
107+
108+
// .wym_dialog .form-actions,
109+
// .ui-dialog .form-actions
110+
// @include form-actions
111+
112+
// .dialog
113+
// form
114+
// margin-bottom: 45px
115+
116+
// .dialog_area > div > .field label:first-child,
117+
// .dialog_area > div > label:first-child
118+
// margin-top: 0px
119+
120+
121+
// .visual_editor_dialog .form-actions,
122+
// #content.form-actions.dialog-form-actions,
123+
// .ui-dialog .form-actions
124+
// margin-top: 16px
125+
126+
// .visual_editor_dialog .form-actions .form-actions-left,
127+
// .visual_editor_dialog .form-actions .form-actions-right,
128+
// .ui-dialog .form-actions .form-actions-left,
129+
// .ui-dialog .form-actions .form-actions-right
130+
// position: absolute
131+
// top: 10px
132+
133+
// .visual_editor_dialog .form-actions .form-actions-left,
134+
// .ui-dialog .form-actions .form-actions-left
135+
// left: 10px
136+
137+
// .visual_editor_dialog .form-actions .form-actions-right,
138+
// .ui-dialog .form-actions .form-actions-right
139+
// right: 10px
140+
141+
// #content .form-actions .save-loader
142+
// position: absolute
143+
// right: -24px
144+
// top: 4px
145+
146+
// .visual_editor_dialog .form-actions, .ui-dialog .form-actions
147+
// border: 0px none
148+
// border-top: 1px solid #E8E8E8
149+
150+
// #dialog_iframe
151+
// position: relative
152+
153+
154+
155+
// body.dialog #content .search_form
156+
// float: right
157+
// width: auto !important
158+
// min-width: 300px
159+
// margin-bottom: 0px
160+
161+
162+
163+
164+
165+
166+
// .ui-dialog[aria-describedby=editor_dialog],
167+
// .ui-dialog[aria-describedby=dialog_iframe]
168+
// outline: none
169+
170+
// &.ui-dialog
171+
// padding: 0
172+
173+
// &.ui-corner-all
174+
// border: 4px solid #22A7F2
175+
// border-radius: 0
176+
177+
// &.ui-widget
178+
// font-family: inherit
179+
// color: inherit
180+
181+
// .ui-widget-header
182+
// background-image: none
183+
// &.ui-corner-all
184+
// border: none
185+
// border-radius: 0
186+
187+
188+
// .ui-dialog-titlebar
189+
// padding: 0
190+
// .ui-dialog-title
191+
// font-weight: normal
192+
193+
// .ui-dialog-titlebar-close
194+
// background-color: #22A7F2
195+
// background-image: none
196+
// border: none
197+
// outline: none
198+
// cursor: pointer
199+
// right: 10px
200+
// .ui-button-text
201+
// display: none
202+
203+
// &.ui-button-icon-only .ui-icon
204+
// position: static
205+
// height: 20px
206+
207+
208+
209+
// .ui-dialog-content
210+
// padding: 0
211+
// overflow: visible
212+
213+
// .editor_dialog
214+
// border: none
215+
216+
// iframe#dialog_frame, iframe#dialog_iframe
217+
// display: block !important
218+

0 commit comments

Comments
 (0)