header.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. #pg-header {
  2. width: 100%;
  3. height: 100%;
  4. grid-column: 2 / 4;
  5. grid-row: 1;
  6. padding: 0;
  7. margin: 0;
  8. display: grid;
  9. grid-template-columns: auto 1fr;
  10. grid-template-rows: 100%;
  11. background: #201936;
  12. .logo-area {
  13. grid-column: 1;
  14. grid-row: 1;
  15. display: grid;
  16. width: 430px;
  17. grid-template-columns: 1fr auto;
  18. grid-template-rows: 100%;
  19. user-select: none;
  20. svg {
  21. height: 100%;
  22. grid-column: 1;
  23. grid-row: 1;
  24. }
  25. .version {
  26. display: flex;
  27. justify-items: right;
  28. align-items: center;
  29. grid-column: 2;
  30. grid-row: 1;
  31. vertical-align: top;
  32. height: 100%;
  33. margin-right: 12px;
  34. font-size: 20px;
  35. color: #d5d2ca;
  36. .version-number {
  37. font-weight: bold;
  38. color:white;
  39. }
  40. }
  41. }
  42. .command-bar {
  43. grid-row: 1;
  44. grid-column: 2;
  45. display: grid;
  46. width: 100%;
  47. grid-template-columns: 74px 144px 1fr;
  48. grid-template-rows: 100%;
  49. .language-button {
  50. grid-row: 1;
  51. grid-column: 2;
  52. color: white;
  53. width: 144px;
  54. font-size: 18px;
  55. text-align: center;
  56. display: grid;
  57. align-content: center;
  58. border-top-left-radius: 14px;
  59. transform: scale(1);
  60. user-select: none;
  61. &.active {
  62. width: 74px;
  63. cursor: pointer;
  64. grid-column: 1;
  65. margin-right: -5px;
  66. transform: translateX(10px);
  67. }
  68. }
  69. }
  70. }
  71. @media screen and (max-width: 1280px) {
  72. #pg-header {
  73. .logo-area {
  74. width: 300px;
  75. .version {
  76. .version-text {
  77. display: none;
  78. }
  79. }
  80. }
  81. }
  82. }
  83. @media screen and (max-width: 1024px) {
  84. #pg-header {
  85. grid-template-columns: 100%;
  86. .logo-area {
  87. width: 100%;
  88. .version {
  89. .version-text {
  90. display: none;
  91. }
  92. }
  93. }
  94. .command-bar {
  95. display: none;
  96. }
  97. }
  98. }