galileo.less 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. .galileo {
  2. display: flex;
  3. flex-direction: column;
  4. width: 100%;
  5. height: 100%;
  6. min-height: 220px;
  7. background-color: @galileo-bg;
  8. color: @galileo-color;
  9. .galileo-header {
  10. display: flex;
  11. align-items: center;
  12. padding-left: @padding-sm;
  13. background-color: @galileo-header-background;
  14. :first-child {
  15. flex: 1;
  16. }
  17. .toggle-switch {
  18. overflow: clip;
  19. margin-left: @margin-sm;
  20. }
  21. .galileo-close-button {
  22. background: transparent;
  23. color: @galileo-color;
  24. padding-left: @padding-sm;
  25. padding-right: @padding-sm;
  26. font-size: 24px;
  27. font-weight: bold;
  28. line-height: 1;
  29. }
  30. }
  31. .galileo-body {
  32. padding: 0 @padding-sm @padding-xs @padding-sm;
  33. overflow-y: auto;
  34. flex: 1;
  35. .galileo-suggestions {
  36. .loading {
  37. text-align: center;
  38. margin: @margin-sm;
  39. }
  40. }
  41. .galileo-promo {
  42. margin-top: @margin-md;
  43. text-align: center;
  44. p {
  45. margin: @margin-md 0;
  46. }
  47. }
  48. .galileo-promo-boxes {
  49. display: flex;
  50. justify-content: center;
  51. gap: @margin-md;
  52. text-align: left;
  53. }
  54. .galileo-promo-box {
  55. width: 40%;
  56. background: @galileo-suggestion-background;
  57. padding-top: @padding-xs;
  58. border-radius: @border-radius-base;
  59. img {
  60. width: 100%;
  61. }
  62. h3,
  63. p {
  64. color: @galileo-color;
  65. padding: 0 @padding-sm;
  66. margin: 0;
  67. }
  68. h3 {
  69. padding-top: @padding-xs;
  70. }
  71. h3,
  72. p {
  73. padding-top: @padding-xs;
  74. padding-bottom: @padding-xs;
  75. }
  76. }
  77. .galileo-promo-image {
  78. width: 100%;
  79. height: 100px;
  80. background-size: cover;
  81. }
  82. }
  83. .galileo-footer {
  84. background-color: @galileo-bg;
  85. display: flex;
  86. justify-content: center;
  87. gap: @padding-xs;
  88. padding: @padding-xs 0;
  89. }
  90. a,
  91. button.btn-inline-link {
  92. color: @galileo-color;
  93. text-decoration: underline;
  94. &:hover {
  95. text-decoration: none;
  96. }
  97. }
  98. }
  99. .galileo-suggestion {
  100. background: @galileo-suggestion-background;
  101. color: @galileo-color;
  102. margin-top: @margin-xs;
  103. .galileo-suggestion-body {
  104. padding: @padding-xs;
  105. max-height: @line-height-computed * 4; // 4 lines
  106. overflow: hidden;
  107. }
  108. .galileo-suggestion-footer {
  109. display: flex;
  110. justify-content: space-between;
  111. padding: @padding-xs;
  112. }
  113. .galileo-suggestion-footer-links {
  114. display: flex;
  115. align-items: flex-end;
  116. gap: @padding-xs;
  117. }
  118. }
  119. .galileo-suggestion-text {
  120. white-space: break-spaces;
  121. }
  122. .galileo-font-lucida {
  123. font-family: @editor-font-lucida;
  124. }
  125. .galileo-font-monaco {
  126. font-family: @editor-font-monaco;
  127. }