galileo.less 2.8 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-font-lucida {
  32. font-family: @editor-font-lucida;
  33. }
  34. .galileo-font-monaco {
  35. font-family: @editor-font-monaco;
  36. }
  37. .galileo-body {
  38. padding: 0 @padding-sm @padding-xs @padding-sm;
  39. overflow-y: auto;
  40. flex: 1;
  41. .galileo-suggestions {
  42. .loading {
  43. text-align: center;
  44. margin: @margin-sm;
  45. }
  46. }
  47. .galileo-suggestion {
  48. background: @galileo-suggestion-background;
  49. color: @galileo-color;
  50. margin-top: @margin-xs;
  51. .galileo-suggestion-body {
  52. padding: @padding-xs;
  53. max-height: @line-height-computed * 4; // 4 lines
  54. overflow: hidden;
  55. .galileo-suggestion-text {
  56. white-space: break-spaces;
  57. }
  58. }
  59. .galileo-suggestion-footer {
  60. display: flex;
  61. justify-content: space-between;
  62. padding: @padding-xs;
  63. }
  64. .galileo-suggestion-footer-links {
  65. display: flex;
  66. align-items: flex-end;
  67. gap: @padding-xs;
  68. }
  69. }
  70. .galileo-promo {
  71. margin-top: @margin-md;
  72. text-align: center;
  73. p {
  74. margin: @margin-md 0;
  75. }
  76. }
  77. .galileo-promo-boxes {
  78. display: flex;
  79. justify-content: center;
  80. gap: @margin-md;
  81. text-align: left;
  82. }
  83. .galileo-promo-box {
  84. width: 40%;
  85. background: @galileo-suggestion-background;
  86. padding-top: @padding-xs;
  87. border-radius: @border-radius-base;
  88. img {
  89. width: 100%;
  90. }
  91. h3,
  92. p {
  93. color: @galileo-color;
  94. padding: 0 @padding-sm;
  95. margin: 0;
  96. }
  97. h3 {
  98. padding-top: @padding-xs;
  99. }
  100. h3,
  101. p {
  102. padding-top: @padding-xs;
  103. padding-bottom: @padding-xs;
  104. }
  105. }
  106. .galileo-promo-image {
  107. width: 100%;
  108. height: 100px;
  109. background-size: cover;
  110. }
  111. }
  112. .galileo-footer {
  113. background-color: @galileo-bg;
  114. display: flex;
  115. justify-content: center;
  116. gap: @padding-xs;
  117. padding: @padding-xs 0;
  118. }
  119. a,
  120. button.btn-inline-link {
  121. color: @galileo-color;
  122. text-decoration: underline;
  123. &:hover {
  124. text-decoration: none;
  125. }
  126. }
  127. }