_popups.less 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466
  1. // /**
  2. // * Copyright © Magento, Inc. All rights reserved.
  3. // * See COPYING.txt for license details.
  4. // */
  5. //
  6. // Components -> Popups
  7. // _____________________________________________
  8. //
  9. // Jquery UI popup window
  10. // _____________________________________________
  11. .ui-dialog {
  12. .appearing__off();
  13. background: @popup__background-color;
  14. min-width: 40%;
  15. transform: scale(.7);
  16. transition: all .3s;
  17. width: 75%;
  18. &.ui-dialog-active {
  19. .appearing__on();
  20. transform: scale(1);
  21. }
  22. &.ui-draggable {
  23. .ui-dialog-titlebar {
  24. cursor: move;
  25. }
  26. }
  27. .ui-dialog-titlebar {
  28. color: @popup-title__color;
  29. font-size: @popup-title__font-size;
  30. line-height: @popup-title__line-height;
  31. padding: @popup__padding__vertical @popup__padding__horizontal * 2 @popup__padding__vertical @popup__padding__horizontal;
  32. }
  33. .ui-dialog-titlebar-close {
  34. cursor: pointer;
  35. .lib-icon-font(
  36. @_icon-font-content: @popup-close-icon__content,
  37. @_icon-font: @popup-close-icon__font,
  38. @_icon-font-size: @popup-close-icon__font-size,
  39. @_icon-font-color: @popup-close-icon__color,
  40. @_icon-font-color-hover: @popup-close-icon__hover__color
  41. );
  42. position: absolute;
  43. right: @popup-close-icon__right;
  44. top: @popup-close-icon__top - .3;
  45. .ui-icon {
  46. display: none;
  47. }
  48. &.ui-state-hover {
  49. border: none;
  50. }
  51. }
  52. .ui-dialog-content {
  53. overflow: auto;
  54. padding: 0 @popup__padding__horizontal @popup__padding__vertical;
  55. .fieldset {
  56. padding-left: 0;
  57. padding-right: 0;
  58. }
  59. }
  60. .ui-dialog-buttonpane {
  61. padding: 0 @popup__padding__horizontal @popup__padding__vertical;
  62. }
  63. .content + .ui-dialog-buttonset {
  64. padding-top: @popup__padding__vertical;
  65. text-align: right;
  66. }
  67. .ui-dialog-buttonset {
  68. &:extend(.abs-clearfix all);
  69. }
  70. .action-close {
  71. &:extend(.abs-action-tertiary all);
  72. font-size: @button__large__font-size;
  73. margin: 0 0 0 @popup__padding__horizontal;
  74. padding: @button__large__padding-vertical 0;
  75. &:before {
  76. content: normal;
  77. }
  78. span {
  79. overflow: auto;
  80. position: static;
  81. }
  82. }
  83. .ui-button,
  84. .action-primary {
  85. &:extend(.abs-action-secondary all);
  86. &:extend(.abs-action-l all);
  87. float: right;
  88. margin: 0 0 0 @popup__padding__horizontal;
  89. }
  90. .fieldset {
  91. &:last-child {
  92. padding-bottom: 0;
  93. }
  94. }
  95. .main-col,
  96. .side-col {
  97. float: left;
  98. padding-bottom: 0;
  99. &:after {
  100. display: none;
  101. }
  102. }
  103. .side-col {
  104. width: 20%;
  105. }
  106. .main-col {
  107. padding-right: 0;
  108. width: 80%;
  109. }
  110. .grid,
  111. .pager {
  112. padding-bottom: 0;
  113. }
  114. .grid-actions {
  115. padding-top: 0;
  116. }
  117. .ui-resizable {
  118. position: relative;
  119. }
  120. .ui-resizable-handle {
  121. display: block;
  122. font-size: .1px;
  123. position: absolute;
  124. }
  125. .ui-resizable-disabled,
  126. .ui-resizable-autohide {
  127. .ui-resizable-handle {
  128. display: none;
  129. }
  130. }
  131. .ui-resizable-n {
  132. cursor: n-resize;
  133. height: 7px;
  134. left: 0;
  135. top: -5px;
  136. width: 100%;
  137. }
  138. .ui-resizable-s {
  139. bottom: 0;
  140. cursor: s-resize;
  141. height: 7px;
  142. left: 0;
  143. width: 100%;
  144. }
  145. .ui-resizable-e {
  146. cursor: e-resize;
  147. height: 100%;
  148. right: 0;
  149. top: 0;
  150. width: 7px;
  151. }
  152. .ui-resizable-w {
  153. cursor: w-resize;
  154. height: 100%;
  155. left: -7px;
  156. top: 0;
  157. width: 7px;
  158. }
  159. .ui-resizable-se {
  160. bottom: 1px;
  161. cursor: se-resize;
  162. height: 12px;
  163. right: 1px;
  164. width: 12px;
  165. }
  166. .ui-resizable-sw {
  167. bottom: 0;
  168. cursor: sw-resize;
  169. height: 9px;
  170. left: -5px;
  171. width: 9px;
  172. }
  173. .ui-resizable-nw {
  174. cursor: nw-resize;
  175. height: 9px;
  176. left: -5px;
  177. top: -5px;
  178. width: 9px;
  179. }
  180. .ui-resizable-ne {
  181. cursor: ne-resize;
  182. height: 9px;
  183. right: 0;
  184. top: -5px;
  185. width: 9px;
  186. }
  187. //
  188. // Block 'Insert File'
  189. // -----------------------------------------
  190. .main-col,
  191. .magento-message {
  192. .insert-title-inner {
  193. &:extend(.abs-clearfix all);
  194. border-bottom: 1px solid @color-gray68;
  195. margin: 0 0 @indent__base;
  196. padding-bottom: @indent__xs;
  197. }
  198. .insert-actions {
  199. float: right;
  200. }
  201. .title {
  202. font-size: @font-size__l;
  203. padding-top: @indent__xs;
  204. }
  205. .main-col-inner .uploader {
  206. border: 1px solid @color-gray68;
  207. margin: 0 0 @indent__s;
  208. padding: @indent__xs;
  209. }
  210. .breadcrumbs {
  211. list-style: none;
  212. padding-left: 0;
  213. li {
  214. display: inline-block;
  215. margin: 0 @indent__xs @indent__xs 0;
  216. &:after {
  217. content: '';
  218. margin: 0 @indent__xs 0 0;
  219. }
  220. }
  221. }
  222. .contents-uploader {
  223. margin: 0 0 @indent__base;
  224. }
  225. .fileinput-button {
  226. cursor: pointer;
  227. display: inline-block;
  228. float: none;
  229. vertical-align: middle;
  230. span {
  231. display: none;
  232. }
  233. input {
  234. -moz-transform: none;
  235. border: none;
  236. opacity: 1;
  237. position: static;
  238. transform: none;
  239. }
  240. }
  241. .file-row {
  242. border: 1px solid @color-gray68;
  243. margin: @indent__xs 0;
  244. padding: 2px;
  245. }
  246. .filecnt {
  247. border: 1px solid @color-gray68;
  248. display: inline-block;
  249. margin: 0 @indent__xs 15px 0;
  250. overflow: hidden;
  251. padding: 3px;
  252. text-overflow: ellipsis;
  253. width: 100px;
  254. &.selected {
  255. border-color: @color-blue-dodger;
  256. }
  257. p {
  258. text-align: center;
  259. }
  260. }
  261. .contents-uploader {
  262. &:extend(.abs-clearfix all);
  263. }
  264. .x-tree {
  265. margin-bottom: @indent__base;
  266. }
  267. }
  268. }
  269. .ui-dialog {
  270. .admin__fieldset {
  271. > .admin__legend {
  272. float: none;
  273. font-size: 1.8rem;
  274. margin: 0 0 @indent__base @popup-fieldset__margin-left;
  275. width: auto;
  276. }
  277. .product-options {
  278. margin-left: @popup-fieldset__margin-left;
  279. .admin__field-control {
  280. margin-bottom: @indent__base;
  281. }
  282. }
  283. }
  284. }
  285. // The message/dialog popup
  286. .ui-popup-message {
  287. .ui-dialog-titlebar {
  288. background: @color-lazy-sun;
  289. font-size: 1.4rem;
  290. font-weight: @font-weight__bold;
  291. padding: 2rem 2rem 0 7.5rem;
  292. }
  293. .ui-dialog-titlebar-close {
  294. right: 1.5rem;
  295. top: 1rem;
  296. &:before {
  297. font-size: 1.4rem;
  298. }
  299. }
  300. .ui-dialog-content {
  301. background: @color-lazy-sun;
  302. margin-bottom: 0;
  303. overflow: inherit;
  304. padding: 0 2rem 2rem;
  305. .messages,
  306. .message {
  307. &:last-child {
  308. margin-bottom: 0;
  309. }
  310. }
  311. .message {
  312. &:first-child {
  313. padding-top: 0;
  314. &:before {
  315. top: 0;
  316. }
  317. }
  318. &:last-child {
  319. padding-bottom: 0;
  320. }
  321. }
  322. }
  323. .ui-dialog-buttonpane {
  324. background: @color-lazy-sun;
  325. padding: 0 2rem 2rem;
  326. }
  327. }
  328. //
  329. // Block 'Insert Variable'
  330. // _____________________________________________
  331. .insert-variable {
  332. list-style: none;
  333. margin: 0;
  334. padding: 0;
  335. li {
  336. margin-top: @indent__xs;
  337. padding-left: @indent__s;
  338. b {
  339. display: inline-block;
  340. margin-left: -@indent__s;
  341. }
  342. }
  343. }
  344. //
  345. // Attribute Popup
  346. // _____________________________________________
  347. .attribute-popup { // ToDo UI: remove or refactor after New attribute popup refactored to sliding panel
  348. .page-content {
  349. padding: 0;
  350. }
  351. }
  352. .attribute-popup-actions { // ToDo UI: remove or refactor after New attribute popup refactored to sliding panel
  353. &:extend(.abs-clearfix all);
  354. background: @page-main-actions__background-color;
  355. border-bottom: 1px solid @page-main-actions__border-color;
  356. border-top: 1px solid @page-main-actions__border-color;
  357. padding: @page-main-actions__padding;
  358. &.page-actions {
  359. float: none;
  360. }
  361. &.fixed { // ToDo UI: remove or refactor after New attribute popup refactored to sliding panel
  362. background: @color-white !important;
  363. border-bottom: 0 !important;
  364. left: 0 !important;
  365. padding: @popup__padding !important;
  366. .page-actions-buttons {
  367. padding-right: 0;
  368. }
  369. }
  370. .action-default {
  371. &.reset {
  372. &:extend(.abs-action-tertiary all);
  373. font-size: @button__large__font-size;
  374. padding: @button__large__padding-vertical 0;
  375. }
  376. }
  377. .page-actions-buttons > button.action-default.primary {
  378. &:extend(.abs-action-secondary all);
  379. &:extend(.abs-action-l all);
  380. float: right;
  381. }
  382. .page-actions-inner {
  383. &:before {
  384. display: none;
  385. }
  386. }
  387. }