Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

header.css 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. /* based on Fomantic UI header module, with just the parts extracted that we use. If you find any
  2. unused rules here after refactoring, please remove them. */
  3. .ui.header {
  4. color: var(--color-text);
  5. border: none;
  6. margin: calc(2rem - 0.1428571428571429em) 0 1rem;
  7. padding: 0;
  8. font-family: var(--fonts-regular);
  9. font-weight: var(--font-weight-medium);
  10. line-height: 1.28571429;
  11. }
  12. .ui.header:first-child {
  13. margin-top: -0.14285714em;
  14. }
  15. .ui.header:last-child {
  16. margin-bottom: 0;
  17. }
  18. .ui.header .ui.label {
  19. margin-left: 0.25rem;
  20. vertical-align: middle;
  21. }
  22. .ui.header > .ui.label.compact {
  23. margin-top: inherit;
  24. }
  25. .ui.header .sub.header {
  26. display: block;
  27. font-weight: var(--font-weight-normal);
  28. padding: 0;
  29. margin: 0;
  30. font-size: 1rem;
  31. line-height: 1.2;
  32. color: var(--color-text-light-1);
  33. }
  34. .ui.header > i.icon {
  35. display: table-cell;
  36. opacity: 1;
  37. font-size: 1.5em;
  38. padding-top: 0;
  39. vertical-align: middle;
  40. }
  41. .ui.header > i.icon:only-child {
  42. display: inline-block;
  43. padding: 0;
  44. margin-right: 0.75rem;
  45. }
  46. .ui.header + p {
  47. margin-top: 0;
  48. }
  49. h2.ui.header {
  50. font-size: 1.71428571rem;
  51. }
  52. h2.ui.header .sub.header {
  53. font-size: 1.14285714rem;
  54. }
  55. h4.ui.header {
  56. font-size: 1.07142857rem;
  57. }
  58. h4.ui.header .sub.header {
  59. font-size: 1rem;
  60. }
  61. .ui.sub.header {
  62. padding: 0;
  63. margin-bottom: 0.14285714rem;
  64. font-weight: var(--font-weight-normal);
  65. font-size: 0.85714286em;
  66. }
  67. .ui.icon.header svg {
  68. width: 3em;
  69. height: 3em;
  70. float: none;
  71. display: block;
  72. line-height: var(--line-height-default);
  73. padding: 0;
  74. margin: 0 auto 0.5rem;
  75. opacity: 1;
  76. }
  77. .ui.header:not(h1,h2,h3,h4,h5,h6) {
  78. font-size: 1.28571429em;
  79. }
  80. .ui.attached.header {
  81. position: relative;
  82. background: var(--color-box-header);
  83. padding: 0.78571429rem 1rem;
  84. margin: 0 -1px;
  85. border-radius: 0;
  86. border: 1px solid var(--color-secondary);
  87. }
  88. .ui.attached:not(.top).header {
  89. border-top: none;
  90. }
  91. .ui.top.attached.header {
  92. border-radius: 0.28571429rem 0.28571429rem 0 0;
  93. }
  94. .ui.bottom.attached.header {
  95. border-radius: 0 0 0.28571429rem 0.28571429rem;
  96. }
  97. .ui.attached.header:not(h1,h2,h3,h4,h5,h6) {
  98. font-size: 1em;
  99. }
  100. /* fix misaligned right buttons on box headers */
  101. .ui.attached.header > .ui.right {
  102. position: absolute;
  103. right: 0.78571429rem;
  104. top: 0;
  105. bottom: 0;
  106. display: flex;
  107. align-items: center;
  108. gap: 0.25em;
  109. }
  110. /* the default ".ui.attached.header > .ui.right" is only able to contain "tiny" buttons, other buttons are too large */
  111. .ui.attached.header > .ui.right .ui.tiny.button {
  112. padding: 6px 10px;
  113. font-weight: var(--font-weight-normal);
  114. }
  115. /* open dropdown menus to the left in right-attached headers */
  116. .ui.attached.header > .ui.right .ui.dropdown .menu {
  117. right: 0;
  118. left: auto;
  119. }
  120. /* if a .top.attached.header is followed by a .segment, add some margin */
  121. .ui.segments + .ui.top.attached.header,
  122. .ui.attached.segment + .ui.top.attached.header {
  123. margin-top: 1rem;
  124. }
  125. .ui.dividing.header {
  126. border-bottom-color: var(--color-secondary);
  127. }
  128. .ui.dividing.header .sub.header {
  129. padding-bottom: 0.21428571rem;
  130. }
  131. .ui.dividing.header i.icon {
  132. margin-bottom: 0;
  133. }
  134. .ui.error.header {
  135. background: var(--color-error-bg) !important;
  136. color: var(--color-error-text) !important;
  137. border-color: var(--color-error-border) !important;
  138. }
  139. .ui.warning.header {
  140. background: var(--color-warning-bg) !important;
  141. color: var(--color-warning-text) !important;
  142. border-color: var(--color-warning-border) !important;
  143. }
  144. .attention-header {
  145. padding: 0.5em 0.75em !important;
  146. color: var(--color-text) !important;
  147. }