a zip code crypto-currency system good for red ONLY

alert.wp.scss 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641
  1. @import "../../themes/ionic.globals.wp";
  2. // Windows Alerts
  3. // --------------------------------------------------
  4. /// @prop - Background of the alert backdrop
  5. $alert-wp-backdrop-background: #fff !default;
  6. /// @prop - Width of the alert
  7. $alert-wp-width: 100% !default;
  8. /// @prop - Max width of the alert
  9. $alert-wp-max-width: 520px !default;
  10. /// @prop - Border width of the alert
  11. $alert-wp-border-width: 1px !default;
  12. /// @prop - Border style of the alert
  13. $alert-wp-border-style: solid !default;
  14. /// @prop - Border color of the alert
  15. $alert-wp-border-color: color($colors-wp, primary) !default;
  16. /// @prop - Border radius of the alert
  17. $alert-wp-border-radius: 0 !default;
  18. /// @prop - Background color of the alert
  19. $alert-wp-background: #e6e6e6 !default;
  20. // deprecated
  21. $alert-wp-head-padding: null !default;
  22. /// @prop - Padding top of the alert head
  23. $alert-wp-head-padding-top: 20px !default;
  24. /// @prop - Padding end of the alert head
  25. $alert-wp-head-padding-end: 22px !default;
  26. /// @prop - Padding bottom of the alert head
  27. $alert-wp-head-padding-bottom: 5px !default;
  28. /// @prop - Padding start of the alert head
  29. $alert-wp-head-padding-start: 22px !default;
  30. /// @prop - Text align of the alert head
  31. $alert-wp-head-text-align: start !default;
  32. /// @prop - Font size of the alert title
  33. $alert-wp-title-font-size: 20px !default;
  34. /// @prop - Font weight of the alert title
  35. $alert-wp-title-font-weight: 400 !default;
  36. /// @prop - Font size of the alert sub title
  37. $alert-wp-sub-title-font-size: 16px !default;
  38. // deprecated
  39. $alert-wp-message-padding: null !default;
  40. /// @prop - Padding top of the alert message
  41. $alert-wp-message-padding-top: 0 !default;
  42. /// @prop - Padding end of the alert message
  43. $alert-wp-message-padding-end: 22px !default;
  44. /// @prop - Padding bottom of the alert message
  45. $alert-wp-message-padding-bottom: 8px !default;
  46. /// @prop - Padding start of the alert message
  47. $alert-wp-message-padding-start: 22px !default;
  48. // deprecated
  49. $alert-wp-message-padding-empty: null !default;
  50. /// @prop - Padding top of the alert empty message
  51. $alert-wp-message-empty-padding-top: 0 !default;
  52. /// @prop - Padding end of the alert empty message
  53. $alert-wp-message-empty-padding-end: $alert-wp-message-empty-padding-top !default;
  54. /// @prop - Padding bottom of the alert empty message
  55. $alert-wp-message-empty-padding-bottom: $alert-wp-message-empty-padding-top !default;
  56. /// @prop - Padding start of the alert empty message
  57. $alert-wp-message-empty-padding-start: $alert-wp-message-empty-padding-end !default;
  58. /// @prop - Text color of the alert message
  59. $alert-wp-message-text-color: #000 !default;
  60. /// @prop - Font size of the alert message
  61. $alert-wp-message-font-size: 13px !default;
  62. /// @prop - Maximum height of the alert content
  63. $alert-wp-content-max-height: 240px !default;
  64. // deprecated
  65. $alert-wp-input-margin: null !default;
  66. /// @prop - Margin top of the alert input
  67. $alert-wp-input-margin-top: 5px !default;
  68. /// @prop - Margin end of the alert input
  69. $alert-wp-input-margin-end: 0 !default;
  70. /// @prop - Margin bottom of the alert input
  71. $alert-wp-input-margin-bottom: 5px !default;
  72. /// @prop - Margin start of the alert input
  73. $alert-wp-input-margin-start: 0 !default;
  74. // deprecated
  75. $alert-wp-input-padding: null !default;
  76. /// @prop - Padding top on the alert input
  77. $alert-wp-input-padding-top: 0 !default;
  78. /// @prop - Padding end on the alert input
  79. $alert-wp-input-padding-end: 8px !default;
  80. /// @prop - Padding bottom on the alert input
  81. $alert-wp-input-padding-bottom: $alert-wp-input-padding-top !default;
  82. /// @prop - Padding start on the alert input
  83. $alert-wp-input-padding-start: $alert-wp-input-padding-end !default;
  84. /// @prop - Border width of the alert input
  85. $alert-wp-input-border-width: 2px !default;
  86. /// @prop - Border style of the alert input
  87. $alert-wp-input-border-style: $alert-wp-border-style !default;
  88. /// @prop - Border color of the alert input
  89. $alert-wp-input-border-color: $input-wp-border-color !default;
  90. /// @prop - Border color of the alert input when focused
  91. $alert-wp-input-border-color-focused: color($colors-wp, primary) !default;
  92. /// @prop - Line height of the alert input
  93. $alert-wp-input-line-height: 3rem !default;
  94. /// @prop - Color of the text in the alert input
  95. $alert-wp-input-text-color: #000 !default;
  96. // deprecated
  97. $alert-wp-button-padding: null !default;
  98. /// @prop - Padding top of the alert button
  99. $alert-wp-button-padding-top: 5px !default;
  100. /// @prop - Padding end of the alert button
  101. $alert-wp-button-padding-end: $alert-wp-button-padding-top !default;
  102. /// @prop - Padding bottom of the alert button
  103. $alert-wp-button-padding-bottom: $alert-wp-button-padding-top !default;
  104. /// @prop - Padding start of the alert button
  105. $alert-wp-button-padding-start: $alert-wp-button-padding-end !default;
  106. /// @prop - Width of the alert button
  107. $alert-wp-button-width: 49.5% !default;
  108. /// @prop - Border radius of the alert button
  109. $alert-wp-button-border-radius: 0 !default;
  110. /// @prop - Font weight of the alert button
  111. $alert-wp-button-font-weight: 400 !default;
  112. /// @prop - Color of the text in the alert button
  113. $alert-wp-button-text-color: #000 !default;
  114. /// @prop - Background color of the alert button
  115. $alert-wp-button-background: #b8b8b8 !default;
  116. /// @prop - Background color of the activated alert button
  117. $alert-wp-button-background-activated: color-shade($alert-wp-button-background) !default;
  118. // deprecated
  119. $alert-wp-button-margin-right: 1% !default;
  120. /// @prop - Margin end of the alert button
  121. $alert-wp-button-margin-end: $alert-wp-button-margin-right !default;
  122. $alert-wp-button-group-padding: null !default;
  123. /// @prop - Padding top of the alert button group
  124. $alert-wp-button-group-padding-top: 20px !default;
  125. /// @prop - Padding end of the alert button group
  126. $alert-wp-button-group-padding-end: 22px !default;
  127. /// @prop - Padding bottom of the alert button group
  128. $alert-wp-button-group-padding-bottom: 20px !default;
  129. /// @prop - Padding start of the alert button group
  130. $alert-wp-button-group-padding-start: 22px !default;
  131. /// @prop - Justify content of the alert button group
  132. $alert-wp-button-group-justify-content: flex-end !default;
  133. /// @prop - Flex wrap of the alert button group
  134. $alert-wp-button-group-flex-wrap: wrap-reverse !default;
  135. /// @prop - Vertical width of the vertical alert button group
  136. $alert-wp-button-group-vertical-width: 100% !default;
  137. /// @prop - Margin top of the vertical alert button group
  138. $alert-wp-button-group-vertical-margin-top: 5px !default;
  139. /// @prop - Background color of the radio alert
  140. $alert-wp-radio-background: color($colors-wp, primary) !default;
  141. /// @prop - Border color of the radio alert
  142. $alert-wp-radio-border-color: $input-wp-border-color !default;
  143. // deprecated
  144. $alert-wp-radio-label-padding: null !default;
  145. /// @prop - Padding top of the label for the radio alert
  146. $alert-wp-radio-label-padding-top: 13px !default;
  147. /// @prop - Padding end of the label for the radio alert
  148. $alert-wp-radio-label-padding-end: 26px !default;
  149. /// @prop - Padding bottom of the label for the radio alert
  150. $alert-wp-radio-label-padding-bottom: $alert-wp-radio-label-padding-top !default;
  151. /// @prop - Padding start of the label for the radio alert
  152. $alert-wp-radio-label-padding-start: $alert-wp-radio-label-padding-end !default;
  153. /// @prop - Text color of the label for the radio alert
  154. $alert-wp-radio-label-text-color: initial !default;
  155. /// @prop - Text color of the label for the checked radio alert
  156. $alert-wp-radio-label-text-color-checked: $alert-wp-button-text-color !default;
  157. /// @prop - Top of the radio alert
  158. $alert-wp-radio-top: 0 !default;
  159. /// @prop - Left of the radio alert
  160. $alert-wp-radio-left: 13px !default;
  161. /// @prop - Width of the radio alert
  162. $alert-wp-radio-width: 16px !default;
  163. /// @prop - Height of the radio alert
  164. $alert-wp-radio-height: 16px !default;
  165. /// @prop - Border width of the radio alert
  166. $alert-wp-radio-border-width: 2px !default;
  167. /// @prop - Border style of the radio alert
  168. $alert-wp-radio-border-style: solid !default;
  169. /// @prop - Border radius of the radio alert
  170. $alert-wp-radio-border-radius: 50% !default;
  171. /// @prop - Border color of the radio alert
  172. $alert-wp-radio-border-color: $input-wp-border-color !default;
  173. /// @prop - Top of the icon in the radio alert
  174. $alert-wp-radio-icon-top: 2px !default;
  175. // deprecated
  176. $alert-wp-radio-icon-left: 2px !default;
  177. /// @prop - Start of the icon in the radio alert
  178. $alert-wp-radio-icon-start: $alert-wp-radio-icon-left !default;
  179. /// @prop - Width of the icon in the radio alert
  180. $alert-wp-radio-icon-width: 8px !default;
  181. /// @prop - Height of the icon in the radio alert
  182. $alert-wp-radio-icon-height: 8px !default;
  183. /// @prop - Border radius of the icon in the radio alert
  184. $alert-wp-radio-icon-border-radius: $alert-wp-radio-border-radius !default;
  185. // deprecated
  186. $alert-wp-checkbox-label-padding: null !default;
  187. /// @prop - Padding top of the label for the checkbox in the alert
  188. $alert-wp-checkbox-label-padding-top: 13px !default;
  189. /// @prop - Padding end of the label for the checkbox in the alert
  190. $alert-wp-checkbox-label-padding-end: 26px !default;
  191. /// @prop - Padding bottom of the label for the checkbox in the alert
  192. $alert-wp-checkbox-label-padding-bottom: $alert-wp-checkbox-label-padding-top !default;
  193. /// @prop - Padding start of the label for the checkbox in the alert
  194. $alert-wp-checkbox-label-padding-start: $alert-wp-checkbox-label-padding-end !default;
  195. /// @prop - Text color of the label for the checkbox in the alert
  196. $alert-wp-checkbox-label-text-color: initial !default;
  197. /// @prop - Text color of the label for the checked checkbox in the alert
  198. $alert-wp-checkbox-label-text-color-checked: initial !default;
  199. /// @prop - Top of the checkbox in the alert
  200. $alert-wp-checkbox-top: 0 !default;
  201. /// @prop - Left of the checkbox in the alert
  202. $alert-wp-checkbox-left: 13px !default;
  203. /// @prop - Width of the checkbox in the alert
  204. $alert-wp-checkbox-width: 16px !default;
  205. /// @prop - Height of the checkbox in the alert
  206. $alert-wp-checkbox-height: 16px !default;
  207. /// @prop - Border width of the checkbox in the alert
  208. $alert-wp-checkbox-border-width: 2px !default;
  209. /// @prop - Border style of the checkbox in the alert
  210. $alert-wp-checkbox-border-style: solid !default;
  211. /// @prop - Border radius of the checkbox in the alert
  212. $alert-wp-checkbox-border-radius: 0 !default;
  213. /// @prop - Border color of the checkbox in the alert
  214. $alert-wp-checkbox-border-color: $input-wp-border-color !default;
  215. /// @prop - Background color of the checkbox in the alert when off
  216. $alert-wp-checkbox-background-off: transparent !default;
  217. /// @prop - Background color of the checkbox in the alert when on
  218. $alert-wp-checkbox-background-on: color($colors-wp, primary) !default;
  219. /// @prop - Top of the icon in the checkbox alert
  220. $alert-wp-checkbox-icon-top: -2px !default;
  221. // deprecated
  222. $alert-wp-checkbox-icon-left: 3px !default;
  223. /// @prop - Start of the icon in the checkbox alert
  224. $alert-wp-checkbox-icon-start: $alert-wp-checkbox-icon-left !default;
  225. /// @prop - Width of the icon in the checkbox alert
  226. $alert-wp-checkbox-icon-width: 6px !default;
  227. /// @prop - Height of the icon in the checkbox alert
  228. $alert-wp-checkbox-icon-height: 12px !default;
  229. /// @prop - Border width of the icon in the checkbox alert
  230. $alert-wp-checkbox-icon-border-width: 1px !default;
  231. /// @prop - Border style of the icon in the checkbox alert
  232. $alert-wp-checkbox-icon-border-style: solid !default;
  233. /// @prop - Border color of the icon in the checkbox alert
  234. $alert-wp-checkbox-icon-border-color: color-contrast($colors-wp, $alert-wp-checkbox-background-on) !default;
  235. /// @prop - Transform of the icon in the checkbox alert
  236. $alert-wp-checkbox-icon-transform: rotate(45deg) !default;
  237. .alert-wp ion-backdrop {
  238. background: $alert-wp-backdrop-background;
  239. }
  240. .alert-wp .alert-wrapper {
  241. @include border-radius($alert-wp-border-radius);
  242. width: $alert-wp-width;
  243. max-width: $alert-wp-max-width;
  244. border: $alert-wp-border-width $alert-wp-border-style $alert-wp-border-color;
  245. background: $alert-wp-background;
  246. }
  247. // Windows Alert Header
  248. // --------------------------------------------------
  249. .alert-wp .alert-head {
  250. @include text-align($alert-wp-head-text-align);
  251. @include deprecated-variable(padding, $alert-wp-head-padding) {
  252. @include padding($alert-wp-head-padding-top, $alert-wp-head-padding-end, $alert-wp-head-padding-bottom, $alert-wp-head-padding-start);
  253. }
  254. }
  255. .alert-wp .alert-title {
  256. font-size: $alert-wp-title-font-size;
  257. font-weight: $alert-wp-title-font-weight;
  258. }
  259. .alert-wp .alert-sub-title {
  260. font-size: $alert-wp-sub-title-font-size;
  261. }
  262. // Windows Alert Message
  263. // --------------------------------------------------
  264. .alert-wp .alert-message,
  265. .alert-wp .alert-input-group {
  266. color: $alert-wp-message-text-color;
  267. @include deprecated-variable(padding, $alert-wp-message-padding) {
  268. @include padding($alert-wp-message-padding-top, $alert-wp-message-padding-end, $alert-wp-message-padding-bottom, $alert-wp-message-padding-start);
  269. }
  270. }
  271. .alert-wp .alert-message {
  272. max-height: $alert-wp-content-max-height;
  273. font-size: $alert-wp-message-font-size;
  274. }
  275. .alert-wp .alert-message:empty {
  276. @include deprecated-variable(padding, $alert-wp-message-padding-empty) {
  277. @include padding($alert-wp-message-empty-padding-top, $alert-wp-message-empty-padding-end, $alert-wp-message-empty-padding-bottom, $alert-wp-message-empty-padding-start);
  278. }
  279. }
  280. // Windows Alert Input
  281. // --------------------------------------------------
  282. .alert-wp .alert-input {
  283. border: $alert-wp-input-border-width $alert-wp-input-border-style $alert-wp-input-border-color;
  284. line-height: $alert-wp-input-line-height;
  285. color: $alert-wp-input-text-color;
  286. @include deprecated-variable(margin, $alert-wp-input-margin) {
  287. @include margin($alert-wp-input-margin-top, $alert-wp-input-margin-end, $alert-wp-input-margin-bottom, $alert-wp-input-margin-start);
  288. }
  289. @include deprecated-variable(padding, $alert-wp-input-padding) {
  290. @include padding($alert-wp-input-padding-top, $alert-wp-input-padding-end, $alert-wp-input-padding-bottom, $alert-wp-input-padding-start);
  291. }
  292. }
  293. .alert-wp .alert-input:focus {
  294. border-color: $alert-wp-input-border-color-focused;
  295. }
  296. // Windows Alert Radio/Checkbox Group
  297. // --------------------------------------------------
  298. .alert-wp .alert-radio-group,
  299. .alert-wp .alert-checkbox-group {
  300. position: relative;
  301. overflow: auto;
  302. max-height: $alert-wp-content-max-height;
  303. }
  304. .alert-wp .alert-tappable {
  305. position: relative;
  306. display: flex;
  307. overflow: hidden;
  308. // TODO this should be a variable that matches item
  309. min-height: 4.4rem;
  310. }
  311. // Windows Alert Radio Label
  312. // --------------------------------------------------
  313. .alert-wp .alert-radio-label {
  314. overflow: hidden;
  315. flex: 1;
  316. text-overflow: ellipsis;
  317. white-space: nowrap;
  318. color: $alert-wp-radio-label-text-color;
  319. @include deprecated-variable(padding, $alert-wp-radio-label-padding) {
  320. @include padding($alert-wp-radio-label-padding-top, $alert-wp-radio-label-padding-end, $alert-wp-radio-label-padding-bottom, $alert-wp-radio-label-padding-start);
  321. }
  322. }
  323. // Windows Alert Radio Unchecked Circle
  324. // ---------------------------------------------------
  325. .alert-wp .alert-radio-icon {
  326. @include position($alert-wp-radio-top, null, null, $alert-wp-radio-left);
  327. @include margin(0);
  328. @include border-radius($alert-wp-radio-border-radius);
  329. position: relative;
  330. display: block;
  331. width: $alert-wp-radio-width;
  332. height: $alert-wp-radio-height;
  333. border-width: $alert-wp-radio-border-width;
  334. border-style: $alert-wp-radio-border-style;
  335. border-color: $alert-wp-radio-border-color;
  336. }
  337. // Windows Alert Radio Checked Dot
  338. // ---------------------------------------------------
  339. .alert-wp .alert-radio-inner {
  340. @include position($alert-wp-radio-icon-top, null, null, $alert-wp-radio-icon-start);
  341. @include border-radius($alert-wp-radio-icon-border-radius);
  342. position: absolute;
  343. display: none;
  344. width: $alert-wp-radio-icon-width;
  345. height: $alert-wp-radio-icon-height;
  346. background: $alert-wp-radio-background;
  347. }
  348. // Windows Alert Radio Checked
  349. // ---------------------------------------------------
  350. .alert-wp [aria-checked=true] .alert-radio-label {
  351. color: $alert-wp-radio-label-text-color-checked;
  352. }
  353. .alert-wp [aria-checked=true] .alert-radio-icon {
  354. border-color: $alert-wp-radio-border-color;
  355. }
  356. .alert-wp [aria-checked=true] .alert-radio-inner {
  357. display: block;
  358. }
  359. // Windows Alert Checkbox Label
  360. // --------------------------------------------------
  361. .alert-wp .alert-checkbox-label {
  362. overflow: hidden;
  363. flex: 1;
  364. text-overflow: ellipsis;
  365. white-space: nowrap;
  366. color: $alert-wp-checkbox-label-text-color;
  367. @include deprecated-variable(padding, $alert-wp-checkbox-label-padding) {
  368. @include padding($alert-wp-checkbox-label-padding-top, $alert-wp-checkbox-label-padding-end, $alert-wp-checkbox-label-padding-bottom, $alert-wp-checkbox-label-padding-start);
  369. }
  370. }
  371. .alert-wp [aria-checked=true] .alert-checkbox-label {
  372. color: $alert-wp-checkbox-label-text-color-checked;
  373. }
  374. // Windows Alert Checkbox Outline: Unchecked
  375. // --------------------------------------------------
  376. .alert-wp .alert-checkbox-icon {
  377. @include position($alert-wp-checkbox-top, null, null, $alert-wp-checkbox-left);
  378. @include border-radius($alert-wp-checkbox-border-radius);
  379. position: relative;
  380. width: $alert-wp-checkbox-width;
  381. height: $alert-wp-checkbox-height;
  382. border-width: $alert-wp-checkbox-border-width;
  383. border-style: $alert-wp-checkbox-border-style;
  384. border-color: $alert-wp-checkbox-border-color;
  385. background: $alert-wp-checkbox-background-off;
  386. }
  387. // Windows Alert Checkbox Outline: Checked
  388. // --------------------------------------------------
  389. .alert-wp [aria-checked=true] .alert-checkbox-icon {
  390. border-color: $alert-wp-checkbox-background-on;
  391. background: $alert-wp-checkbox-background-on;
  392. }
  393. // Windows Alert Checkbox Checkmark: Checked
  394. // --------------------------------------------------
  395. .alert-wp [aria-checked=true] .alert-checkbox-inner {
  396. @include position($alert-wp-checkbox-icon-top, null, null, $alert-wp-checkbox-icon-start);
  397. position: absolute;
  398. width: $alert-wp-checkbox-icon-width;
  399. height: $alert-wp-checkbox-icon-height;
  400. border-width: $alert-wp-checkbox-icon-border-width;
  401. border-top-width: 0;
  402. border-left-width: 0;
  403. border-style: $alert-wp-checkbox-icon-border-style;
  404. border-color: $alert-wp-checkbox-icon-border-color;
  405. transform: $alert-wp-checkbox-icon-transform;
  406. }
  407. // Windows Alert Button
  408. // --------------------------------------------------
  409. .alert-wp .alert-button-group {
  410. flex-wrap: $alert-wp-button-group-flex-wrap;
  411. justify-content: $alert-wp-button-group-justify-content;
  412. @include deprecated-variable(padding, $alert-wp-button-group-padding) {
  413. @include padding($alert-wp-button-group-padding-top, $alert-wp-button-group-padding-end, $alert-wp-button-group-padding-bottom, $alert-wp-button-group-padding-start);
  414. }
  415. }
  416. .alert-wp .alert-button-group-vertical .alert-button {
  417. @include margin($alert-wp-button-group-vertical-margin-top, null, null, null);
  418. width: $alert-wp-button-group-vertical-width;
  419. }
  420. .alert-wp .alert-button-group-vertical .alert-button:first-child:not(:only-child) {
  421. @include margin(0, 0, null, null);
  422. }
  423. .alert-wp .alert-button {
  424. @include border-radius($alert-wp-button-border-radius);
  425. width: $alert-wp-button-width;
  426. font-weight: $alert-wp-button-font-weight;
  427. color: $alert-wp-button-text-color;
  428. background: $alert-wp-button-background;
  429. @include deprecated-variable(padding, $alert-wp-button-padding) {
  430. @include padding($alert-wp-button-padding-top, $alert-wp-button-padding-end, $alert-wp-button-padding-bottom, $alert-wp-button-padding-start);
  431. }
  432. }
  433. .alert-wp .alert-button:first-child:not(:only-child) {
  434. @include margin-horizontal(null, $alert-wp-button-margin-end);
  435. }
  436. .alert-wp .alert-button.activated {
  437. background: $alert-wp-button-background-activated;
  438. }