progress.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466
  1. @mixin linearGradient($top, $bottom) {
  2. background-color: $top; /* Old browsers */
  3. background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, $top), color-stop(100%, $bottom)); /* Chrome,Safari4+ */
  4. background-image: -webkit-linear-gradient(top, $top 0%, $bottom 100%); /* Chrome10+,Safari5.1+ */
  5. background-image: -o-linear-gradient(top, $top 0%, $bottom 100%); /* Opera 11.10+ */
  6. background-image: -ms-linear-gradient(top, $top 0%, $bottom 100%); /* IE10+ */
  7. background-image: linear-gradient(to bottom, $top 0%, $bottom 100%); /* W3C */
  8. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#000000', GradientType=0); /* IE6-9 */
  9. background-image: -moz-linear-gradient(top, $top 0%, $bottom 100%); /* FF3.6+ */
  10. background-image: linear-gradient($top, $bottom);
  11. }
  12. $button-width: 300px;
  13. $button-height: 55px;
  14. $button-font: 400 13.333px/1 "Helvetica Neue", Helvetica, Arial, Tahoma, sans-serif;
  15. $button-gradient-first: #32AB9A;
  16. $button-gradient-second: #00948E;
  17. $button-background-hover: #2b9385;
  18. $button-gradient-hover-first: #2b9385;
  19. $button-gradient-hover-second: #007571;
  20. $progress-width: calc(#{$button-width} - 3px);
  21. $progress-background: #32AB9A;
  22. $inner-progress-background: #00605a;
  23. $progress-button-background: #1d9650;
  24. $progress-button-color: #ffffff;
  25. $button-letter_spacing: 2px;
  26. $button-active-text-color: #ffffff;
  27. $button-border-color: #0c4d26;
  28. $h2-color: #777777;
  29. $button-margin: 20px 0 12px 30px;
  30. div#Upgrade_modx {
  31. *, *:after, *::before {
  32. -webkit-box-sizing: border-box;
  33. -moz-box-sizing: border-box;
  34. box-sizing: border-box;
  35. background-color: transparent;
  36. }
  37. /* General styles for all types of buttons */
  38. .progress-button {
  39. font-size: 16px;
  40. margin: $button-margin;
  41. position: relative;
  42. display: block;
  43. height: $button-height;
  44. width: $button-width;
  45. padding: 0;
  46. outline: none;
  47. }
  48. .progress-button[disabled],
  49. .progress-button[disabled].state-loading {
  50. cursor: default;
  51. }
  52. .progress-button .content {
  53. position: relative;
  54. display: block;
  55. }
  56. span#button_content.content {
  57. letter-spacing: $button-letter_spacing;
  58. font: $button-font;
  59. font-size: 1em;
  60. line-height: 2.9em;
  61. @include linearGradient($button-gradient-first, $button-gradient-second);
  62. }
  63. .progress-button:hover span#button_content.content {
  64. transition: background-image 0.25s ease;
  65. @include linearGradient($button-gradient-hover-first, $button-gradient-hover-second);
  66. color: #ffffff;
  67. }
  68. .progress-button.state-loading span#button_content.content {
  69. transition: background-image 0.25s ease;
  70. @include linearGradient($button-gradient-first, $button-gradient-second);
  71. }
  72. .progress-button:hover {
  73. cursor: pointer;
  74. }
  75. .notransition {
  76. -webkit-transition: none !important;
  77. transition: none !important;
  78. }
  79. .progress-button .progress {
  80. background: $button-gradient-second;
  81. }
  82. .progress-button .progress-inner {
  83. position: absolute;
  84. left: 0;
  85. background: $inner-progress-background;
  86. }
  87. .progress-button[data-horizontal] .progress-inner {
  88. top: 0;
  89. width: 0;
  90. height: 100%;
  91. -webkit-transition: width 0.3s, opacity 0.3s;
  92. transition: width 0.3s, opacity 0.3s;
  93. }
  94. /* CSS for IE < Edge */
  95. /* Fill horizontal */
  96. /* ====================== */
  97. .progress-button[data-style="fill"][data-horizontal] {
  98. border: 1px solid #0c4d26;
  99. border-radius: 3px !important;
  100. overflow: hidden;
  101. background: $button-gradient-first;
  102. -webkit-font-smoothing: antialiased;
  103. }
  104. .progress-button[data-style="fill"][data-horizontal][disabled], .progress-button[data-style="fill"][data-horizontal].state-loading {
  105. transition: padding 0.25s;
  106. padding-bottom: 70px;
  107. }
  108. .progress-button[data-style="fill"][data-horizontal] .content {
  109. z-index: 10;
  110. -webkit-font-smoothing: antialiased;
  111. -webkit-transition: -webkit-transform 0.3s;
  112. transition: transform 0.3s;
  113. line-height: 3.4em !important;
  114. }
  115. /* Necessary 3d styles for buttons with perspective */
  116. .progress-button[data-perspective] {
  117. display: inline-block;
  118. padding: 0;
  119. background: transparent;
  120. -webkit-perspective: 900px;
  121. perspective: 900px;
  122. }
  123. .progress-button[data-perspective] .content {
  124. border: 1px solid $button-border-color;
  125. border-radius: 3px !important;
  126. padding: 0;
  127. width: 100%;
  128. -webkit-font-smoothing: antialiased;
  129. }
  130. .progress-button[data-perspective] .progress-wrap {
  131. width: 100%;
  132. border: none;
  133. display: block;
  134. -webkit-transition: -webkit-transform 0.2s;
  135. transition: transform 0.2s;
  136. -webkit-transform-style: preserve-3d;
  137. transform-style: preserve-3d;
  138. }
  139. .progress-button[data-perspective] .content,
  140. .progress-button[data-perspective] .progress {
  141. outline: 1px solid rgba(0, 0, 0, 0); /* Smooth jagged edges in FF */
  142. }
  143. /* Rotate bottom 3d */
  144. /* ====================== */
  145. .progress-button[data-style="rotate-angle-bottom"] .progress {
  146. position: absolute;
  147. top: 100%;
  148. left: 1.5px;
  149. border-bottom: none;
  150. width: $progress-width;
  151. outline: 1px solid $button-border-color;
  152. height: 30px;
  153. box-shadow: 0 -1px 0 #148544; /* fix the blurriness that causes a gap */
  154. -webkit-transform: rotateX(-90deg);
  155. transform: rotateX(-90deg);
  156. -webkit-transform-origin: 50% 0;
  157. transform-origin: 50% 0;
  158. }
  159. .progress-button[data-style="rotate-angle-bottom"].state-loading .progress-wrap {
  160. -webkit-transform: rotateX(45deg);
  161. transform: rotateX(45deg);
  162. border-bottom: none;
  163. }
  164. /* UpgradeMODX page styles */
  165. /* ====================== */
  166. p.ugm_error {
  167. width:400px;
  168. color:red;
  169. padding: 17px;
  170. text-shadow:none;
  171. text-align:left;
  172. border: 1px solid $button-border-color;
  173. background: #f4fffc;
  174. -webkit-border-radius: 5px;
  175. -moz-border-radius: 5px;
  176. border-radius: 5px;
  177. }
  178. a {
  179. text-decoration: none;
  180. outline: none;
  181. margin: 0;
  182. padding: 0;
  183. font-size: 100%;
  184. vertical-align: baseline;
  185. background: 0 0
  186. }
  187. table {
  188. border-collapse: collapse;
  189. border-spacing: 0
  190. }
  191. td, td img {
  192. vertical-align: top
  193. }
  194. button, input, select, textarea {
  195. margin: 0;
  196. font-size: 100%;
  197. }
  198. input[type=password], input[type=text], textarea {
  199. padding: 0
  200. }
  201. input[type=checkbox] {
  202. vertical-align: bottom
  203. }
  204. input[type=radio] {
  205. vertical-align: middle;
  206. display: inline-block;
  207. }
  208. article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  209. display: block
  210. }
  211. html {
  212. overflow-y: scroll
  213. }
  214. a, a:active, a:focus, a:hover, a:visited, button, input[type=button], input[type=submit], label {
  215. cursor: pointer;
  216. }
  217. .button, button {
  218. border: none;
  219. color: #fff;
  220. display: inline-block;
  221. padding: 15px;
  222. font-size: 20px;
  223. text-decoration: none;
  224. background-color: #67a749;
  225. text-shadow: 2px 2px 1px #0c4d26;
  226. }
  227. h3 {
  228. margin-top: 20px;
  229. font-weight: normal;
  230. }
  231. #upgrade_form {
  232. margin: 10px 0 18px;
  233. display: block;
  234. }
  235. #upgrade_form p {
  236. margin-top: 15px;
  237. }
  238. #upgrade_form .column {
  239. margin: 15px 0;
  240. padding-left: 37px;
  241. display: block;
  242. box-sizing: border-box;
  243. width: 500px;
  244. }
  245. .column h3 {
  246. display: inline-block;
  247. padding: 0 0 5px;
  248. margin: 0 0 20px;
  249. border-bottom: 2px solid #000
  250. }
  251. .column label {
  252. display: block;
  253. width: 100%;
  254. padding: 12px;
  255. border: 0;
  256. box-shadow: 0 0 0 1px #E4E4E4;
  257. margin: 0;
  258. border-collapse: collapse;
  259. background-color: transparent;
  260. }
  261. .column label:last-of-type {
  262. border-radius: 0 0 3px 3px;
  263. }
  264. .column label.ugm_version_header {
  265. font-weight: bold;
  266. background-color: #E4E9EE;
  267. border-radius: 3px 3px 0 0;
  268. }
  269. label > input {
  270. margin: 3px 5px 5px 5px;
  271. }
  272. /*************** BIG SCREENS below 1300 px ************* */
  273. @media only screen and (max-width: 1300px) {
  274. .content_div {
  275. margin: 0 auto;
  276. padding: 3% 0 0 0;
  277. }
  278. .content_div h2, h3 {
  279. margin-left: 30px;
  280. }
  281. #upgrade_form .column {
  282. margin: 0 auto;
  283. width: 100%;
  284. }
  285. #upgrade_form {
  286. margin-left: 0;
  287. padding-left: 0;
  288. }
  289. .column label {
  290. // border: 1px solid $button-border-color;
  291. font-size: 200% !important;
  292. margin: 0;
  293. padding: 45px 5px;
  294. width: 90%;
  295. }
  296. label > input {
  297. margin: 0 5px 0 5px;
  298. border: 0;
  299. width: 60px;
  300. height: 1em;
  301. }
  302. #upgrade_form p {
  303. // font-size: 200% !important;
  304. line-height: 35px;
  305. margin: 20px 0 43px 30px;
  306. }
  307. input[type=radio] {
  308. clear: left !important;
  309. }
  310. }
  311. /*********** BIG PHONES, TABLETS ***********/
  312. @media only screen and (max-width: 768px) {
  313. body {
  314. text-align: center;
  315. }
  316. .footer {
  317. text-align: left;
  318. }
  319. #upgrade_form .column {
  320. margin: 15px auto;
  321. padding-left: 37px;
  322. display: block;
  323. box-sizing: border-box;
  324. width: 100%;
  325. }
  326. .content_div h2 {
  327. margin: 0 auto;
  328. padding: 0 10%;
  329. }
  330. div.column {
  331. margin: 0 auto;
  332. padding: 1%;
  333. }
  334. .content_div {
  335. margin-left: 0;
  336. padding-left: 0;
  337. }
  338. #upgrade_form {
  339. margin-left: 0;
  340. padding-left: 0;
  341. }
  342. #upgrade_form p {
  343. margin: 0 auto;
  344. font-size: 200% !important;
  345. line-height: 35px;
  346. text-align: left;
  347. padding: 20px 0 0 24px;
  348. width: 100%;
  349. }
  350. .column label {
  351. text-align: left;
  352. font-size: 200% !important;
  353. margin: 0;
  354. width: 95%;
  355. display: block;
  356. }
  357. label > input {
  358. margin: 0 5px 0 5px;
  359. border: 0;
  360. width: 20px;
  361. height: 1em;
  362. display: inline;
  363. }
  364. }
  365. /************ SMALL PHONES **************/
  366. @media only screen and (max-width: 421px) {
  367. #upgrade_form .column {
  368. margin: 0;
  369. padding: 0;
  370. }
  371. .column label {
  372. display: block;
  373. font-size: 200% !important;
  374. margin: 0 5px;
  375. padding: 45px 15px;
  376. width: 98%;
  377. line-height: 30px;
  378. }
  379. .content_div h2 {
  380. line-height: 32px;
  381. }
  382. #upgrade_form p {
  383. padding: 20px 0 25px 24px;
  384. font-size: 200% !important;
  385. line-height: 35px;
  386. }
  387. label > input[type=radio] {
  388. display: none;
  389. }
  390. .footer a {
  391. text-shadow: none;
  392. color: #333333;
  393. }
  394. }
  395. } // end div#Upgrade_modx