app.component.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. @import 'angularlib/styles/common.scss';
  2. :host {
  3. --bright-blue: oklch(51.01% 0.274 263.83);
  4. --pill-accent: var(--bright-blue);
  5. }
  6. .container {
  7. display: flex;
  8. flex-flow: row;
  9. }
  10. .container > .left {
  11. flex-grow: 1;
  12. }
  13. .container > .main {
  14. flex-grow: 4;
  15. margin: 1rem;
  16. height: calc(100vh - 75px);
  17. }
  18. .container > .right {
  19. flex-grow: 1;
  20. }
  21. #notifications {
  22. position: relative;
  23. }
  24. #notifications .count {
  25. position: absolute;
  26. width:15px;
  27. height: 15px;
  28. background-color: red;
  29. right: 3px;
  30. top: -5px;
  31. font-size: 8pt;
  32. border-radius: 50%;
  33. display: flex;
  34. align-items: center;
  35. justify-content: center;
  36. }
  37. .toolbar-item {
  38. display: flex;
  39. flex-flow: column;
  40. align-items: center;
  41. flex: 1;
  42. max-height: 100% !important;
  43. transition: background 0.3s ease;
  44. border-radius: 10px;
  45. .mat-icon {
  46. flex-grow: 2;
  47. max-height: fit-content;
  48. }
  49. mat-label {
  50. line-height: 9pt;
  51. font-size: 8pt;
  52. }
  53. }
  54. .toolbar-item:hover {
  55. background: color-mix(in srgb, var(--pill-accent) 15%, transparent);
  56. }
  57. .toolbar, .mobile-toolbar {
  58. height: 40px;
  59. }
  60. .mobile-toolbar {
  61. display: none;
  62. position: fixed;
  63. bottom: 0;
  64. }
  65. .right-toolbar-panel {
  66. display: flex;
  67. flex-direction: row;
  68. position: absolute;
  69. right: 10px;
  70. .toolbar-item {
  71. padding-left: 0.5rem;
  72. padding-right: 0.5rem;
  73. mat-label {display: none;}
  74. }
  75. #home {display: none;}
  76. #clock_in {display: none;}
  77. #clock_out {display: none;}
  78. }
  79. .language-flag {
  80. display: inline-flex;
  81. border-radius: 50%;
  82. height: 1.3rem;
  83. width: 1.3rem;
  84. background-size: cover;
  85. background-position: center;
  86. }
  87. .test {
  88. position: absolute;
  89. right: 0;
  90. bottom: 0;
  91. }
  92. footer {
  93. padding-top: 2px;
  94. color:#868686;
  95. font-size: 8pt;
  96. display: flex;
  97. align-items: flex-end;
  98. justify-content: center;
  99. border-top: 1px solid;
  100. }
  101. [class*='dark-theme'] {
  102. footer {
  103. color: #bdbdbd;
  104. }
  105. }
  106. /** Mobile styles */
  107. @media screen and (pointer: none), (pointer: coarse) {
  108. .toolbar {display: none;}
  109. .container > .left {display: none;}
  110. .container > .right {display: none;}
  111. .mobile-toolbar {
  112. display: flex;
  113. }
  114. #notifications .count {
  115. right: 35%;
  116. top: -3px;
  117. }
  118. }