TimeHeader.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. /**
  2. * @class Ext.panel.TimeHeader
  3. */
  4. /**
  5. * @var {color}
  6. * Time Header background color
  7. */
  8. $timeheader-background-color: dynamic($base-color);
  9. /**
  10. * @var {color}
  11. * Time Header text color
  12. */
  13. $timeheader-color: dynamic($light-color);
  14. /**
  15. * @var {number}
  16. * Time Header minutes width
  17. */
  18. $timeheader-minutes-width: dynamic(75px);
  19. /**
  20. * @var {number}
  21. * Time Header padding
  22. */
  23. $timeheader-padding: dynamic(10px 40px);
  24. @mixin timeheader-ui(
  25. $ui: null,
  26. $background-color: null,
  27. $color: null,
  28. $minutes-width: null,
  29. $padding: null,
  30. $xtype: analogtimeheader
  31. ) {
  32. $ui-suffix: ui-suffix($ui);
  33. .#{$prefix}#{$xtype}#{$ui-suffix} {
  34. .#{$prefix}header-position-left & {
  35. // Required for flexbox issue on iOS 10
  36. height: 100%;
  37. .#{$prefix}header-el {
  38. flex-direction: column;
  39. justify-content: center;
  40. height: 100%;
  41. width: 190px;
  42. }
  43. .#{$prefix}meridiem-wrapper-el {
  44. height: auto;
  45. padding-left: 0;
  46. }
  47. .#{$prefix}time-el {
  48. font-size: 42px;
  49. }
  50. }
  51. .#{$prefix}header-el {
  52. display: flex;
  53. flex-direction: row;
  54. justify-content: flex-end;
  55. align-items: center;
  56. background-color: $background-color;
  57. height: 100px;
  58. padding: $padding;
  59. color: $color;
  60. @include no-select;
  61. }
  62. .#{$prefix}meridiem-wrapper-el {
  63. display: flex;
  64. justify-content: center;
  65. flex-direction: column;
  66. padding-left: 12px;
  67. height: 100%;
  68. }
  69. .#{$prefix}time-wrapper-el {
  70. display: flex;
  71. flex-direction: row;
  72. width: 100%;
  73. }
  74. .#{$prefix}time-el {
  75. font-size: 68px;
  76. line-height: normal;
  77. }
  78. .#{$prefix}time-el, .#{$prefix}meridiem-el {
  79. user-select: none;
  80. cursor: pointer;
  81. opacity: .7;
  82. }
  83. .#{$prefix}time-el.active, .#{$prefix}meridiem-el.active {
  84. opacity: 1;
  85. }
  86. .#{$prefix}time-el.#{$prefix}minute-el {
  87. flex: 1;
  88. text-align: left;
  89. }
  90. .#{$prefix}time-el.#{$prefix}hour-el {
  91. flex: 1;
  92. text-align: right;
  93. }
  94. }
  95. }