app.component.scss 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. :host {
  2. --bright-blue: oklch(51.01% 0.274 263.83);
  3. --pill-accent: var(--bright-blue);
  4. }
  5. .container {
  6. display: flex;
  7. flex-flow: row;
  8. }
  9. .container > .left {
  10. flex-grow: 1;
  11. }
  12. .container > .main {
  13. flex-grow: 4;
  14. margin: 1rem;
  15. height: calc(100vh - 75px);
  16. }
  17. .container > .right {
  18. flex-grow: 1;
  19. }
  20. .toolbar-item {
  21. display: flex;
  22. flex-flow: column;
  23. align-items: center;
  24. flex: 1;
  25. max-height: 100% !important;
  26. transition: background 0.3s ease;
  27. border-radius: 10px;
  28. .mat-icon {
  29. flex-grow: 2;
  30. }
  31. mat-label {
  32. line-height: 9pt;
  33. font-size: 8pt;
  34. }
  35. }
  36. .toolbar-item:hover {
  37. background: color-mix(in srgb, var(--pill-accent) 15%, transparent);
  38. }
  39. .toolbar, .mobile-toolbar {
  40. height: 40px;
  41. }
  42. .mobile-toolbar {
  43. display: none;
  44. position: fixed;
  45. bottom: 0;
  46. }
  47. .right-toolbar-panel {
  48. display: flex;
  49. flex-direction: row;
  50. position: absolute;
  51. right: 10px;
  52. .toolbar-item {
  53. padding-left: 0.5rem;
  54. padding-right: 0.5rem;
  55. mat-label {display: none;}
  56. }
  57. #home {display: none;}
  58. #clock_in {display: none;}
  59. #clock_out {display: none;}
  60. }
  61. .language-flag {
  62. display: inline-flex;
  63. border-radius: 50%;
  64. height: 1.3rem;
  65. width: 1.3rem;
  66. background-size: cover;
  67. background-position: center;
  68. }
  69. /** Mobile styles */
  70. @media screen and (pointer: none), (pointer: coarse) {
  71. .toolbar {display: none;}
  72. .container > .left {display: none;}
  73. .container > .right {display: none;}
  74. .mobile-toolbar {
  75. display: flex;
  76. }
  77. }