_layout.scss 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  1. @use "mixins";
  2. @use "variables";
  3. /*=== STRUCTURE */
  4. /*===============*/
  5. /*=== Header */
  6. .header {
  7. background: variables.$sid-bg;
  8. .item {
  9. vertical-align: middle;
  10. &.title {
  11. a {
  12. padding: 0.5rem 1rem;
  13. .logo {
  14. filter: invert(80%);
  15. }
  16. &:hover {
  17. .logo {
  18. filter: invert(80%) opacity(80%);
  19. }
  20. }
  21. }
  22. }
  23. &.search {
  24. input {
  25. width: 350px;
  26. color: variables.$sid-font-color;
  27. border: none;
  28. border-radius: 2px 0 0 2px;
  29. background-color: variables.$sid-bg-alt;
  30. @include mixins.transition(all, 0.15s, ease-in-out);
  31. &:hover {
  32. background-color: variables.$sid-bg-dark;
  33. }
  34. &:focus {
  35. color: variables.$grey-dark;
  36. background-color: variables.$white;
  37. }
  38. }
  39. input:focus ~ .btn,
  40. input:hover ~ .btn {
  41. background-color: variables.$main-first;
  42. .icon {
  43. filter: brightness(3);
  44. }
  45. }
  46. .btn {
  47. width: 3rem;
  48. border-radius: 0 2px 2px 0;
  49. background-color: variables.$sid-bg-alt;
  50. border-left-width: 0;
  51. min-height: 35px;
  52. .icon {
  53. filter: invert(49%) sepia(13%) saturate(2426%) hue-rotate(346deg) brightness(99%) contrast(95%);
  54. }
  55. &:hover {
  56. background-color: variables.$main-first-alt;
  57. .icon {
  58. filter: brightness(3);
  59. }
  60. }
  61. }
  62. }
  63. &.configure {
  64. text-align: center;
  65. .btn {
  66. padding: 0.25rem 1rem;
  67. background-color: transparent;
  68. }
  69. }
  70. }
  71. }
  72. /*=== Body */
  73. #global {
  74. height: calc(100vh - (calc(3rem + 2 * var(--frss-padding-top-bottom))));
  75. }
  76. /*=== Prompt (centered) */
  77. main.prompt {
  78. background: variables.$grey-light;
  79. border-radius: 5px;
  80. }
  81. /*=== New article notification */
  82. #new-article {
  83. background: variables.$main-first;
  84. font-size: 1rem;
  85. text-align: center;
  86. }
  87. #new-article > a {
  88. line-height: 3em;
  89. font-weight: bold;
  90. color: variables.$white;
  91. }
  92. #new-article > a:hover {
  93. text-decoration: none;
  94. background: variables.$main-first-alt;
  95. }
  96. /*=== Day indication */
  97. .day {
  98. padding: 1rem 0 0 1.25rem;
  99. color: variables.$light-font-color;
  100. font-size: 0.875rem;
  101. font-weight: 700;
  102. line-height: 3em;
  103. letter-spacing: 1px;
  104. text-transform: uppercase;
  105. .name {
  106. padding: 0 1rem 0 1rem;
  107. color: variables.$main-font-color;
  108. font-size: 0.875rem;
  109. position: relative;
  110. left: 0;
  111. text-transform: uppercase;
  112. }
  113. }
  114. .btn {
  115. border-left-width: 0;
  116. padding: 0.5rem 1rem;
  117. background-color: variables.$grey-light;
  118. background-position: center;
  119. background-repeat: no-repeat;
  120. @include mixins.transition(all, 0.15s, ease-in-out);
  121. &:hover {
  122. background-color: variables.$grey-medium-light;
  123. }
  124. &.active {
  125. background-color: variables.$main-first;
  126. }
  127. }
  128. /*=== Index menu */
  129. .nav_menu {
  130. text-align: center;
  131. padding: 5px 0;
  132. .btn {
  133. border-left-width: 0;
  134. padding: 0.5rem 1rem;
  135. background-color: variables.$grey-lighter;
  136. background-position: center;
  137. background-repeat: no-repeat;
  138. &:hover {
  139. background-color: variables.$grey-medium-light;
  140. }
  141. }
  142. .stick {
  143. .btn {
  144. border-left-width: 0;
  145. padding: 0.5rem 1rem;
  146. background-color: variables.$grey-lighter;
  147. background-position: center;
  148. background-repeat: no-repeat;
  149. @include mixins.transition(all, 0.15s, ease-in-out);
  150. &:hover {
  151. background-color: variables.$grey-medium-light;
  152. }
  153. &.active {
  154. background-color: variables.$main-first;
  155. .icon {
  156. filter: brightness(5);
  157. }
  158. }
  159. &.read_all {
  160. padding: 5px 16px;
  161. color: variables.$main-font-color;
  162. background-color: variables.$grey-lighter;
  163. @include mixins.transition(all, 0.15s, ease-in-out);
  164. &:hover {
  165. background-color: variables.$grey-medium-light;
  166. }
  167. }
  168. }
  169. .dropdown:not(#dropdown-search-wrapper) {
  170. a.dropdown-toggle {
  171. border-left-width: 0;
  172. background-image: url(icons/more.svg);
  173. .icon {
  174. display: none;
  175. }
  176. }
  177. }
  178. #dropdown-search-wrapper.dropdown {
  179. a.dropdown-toggle {
  180. border-left-width: 0;
  181. }
  182. }
  183. }
  184. }
  185. #dropdown-query ~ .dropdown-menu .dropdown-header .icon {
  186. vertical-align: middle;
  187. border-radius: 3px;
  188. }
  189. /*=== Content of feed articles */
  190. .content, .content.thin {
  191. padding: 20px 10px;
  192. font-size: 1.125rem;
  193. line-height: 1.8rem;
  194. h1.title, h1 {
  195. a {
  196. color: variables.$main-font-color;
  197. font-family: "spectral", serif;
  198. font-size: 2rem;
  199. &:hover {
  200. color: variables.$main-first;
  201. text-decoration: none;
  202. }
  203. }
  204. }
  205. .author {
  206. color: variables.$light-font-color;
  207. font-size: 1.125rem;
  208. }
  209. p, ul {
  210. font-size: 1.125rem;
  211. line-height: 1.8rem;
  212. }
  213. .content hr {
  214. margin: 30px 10px;
  215. background: variables.$grey-medium-light;
  216. height: 1px;
  217. border: 0;
  218. box-shadow: 0 2px 5px #ccc;
  219. }
  220. pre {
  221. margin: 10px auto;
  222. padding: 10px 20px;
  223. overflow: auto;
  224. background: variables.$main-first-darker;
  225. color: variables.$white;
  226. font-size: 0.9rem;
  227. border-radius: 3px;
  228. code {
  229. background: transparent;
  230. color: variables.$white;
  231. border: none;
  232. }
  233. }
  234. code {
  235. padding: 2px 5px;
  236. background: variables.$grey-lighter;
  237. border: 1px solid variables.$grey-light;
  238. border-radius: 3px;
  239. }
  240. blockquote {
  241. margin: 0;
  242. padding: 5px 20px;
  243. background: variables.$grey-lighter;
  244. display: block;
  245. color: variables.$main-font-color;
  246. border-top: 1px solid variables.$grey-medium-light;
  247. border-bottom: 1px solid variables.$grey-medium-light;
  248. p {
  249. margin: 0;
  250. }
  251. }
  252. }
  253. /*=== Notification and actualize notification */
  254. .notification {
  255. padding: 1rem 0;
  256. background: variables.$grey-medium-light;
  257. width: 100%;
  258. height: 3rem;
  259. color: variables.$grey-dark;
  260. font-size: 1em;
  261. border: none;
  262. position: fixed;
  263. top: auto;
  264. bottom: 0;
  265. left: 0;
  266. right: 0;
  267. text-align: center;
  268. vertical-align: middle;
  269. a {
  270. color: #000;
  271. }
  272. .msg {
  273. display: inline-block;
  274. font-size: 1rem;
  275. }
  276. &.good {
  277. background: variables.$success-bg;
  278. color: variables.$white;
  279. }
  280. &.bad {
  281. background: variables.$alert-bg;
  282. color: variables.$white;
  283. }
  284. a.close {
  285. border-radius: 0 3px 3px 0;
  286. }
  287. &.good a.close:hover {
  288. background: variables.$success-text;
  289. }
  290. &.bad a.close:hover {
  291. background: variables.$alert-text;
  292. }
  293. &#actualizeProgress {
  294. br {
  295. display: none;
  296. }
  297. .title {
  298. margin: 0 2rem;
  299. }
  300. }
  301. }
  302. /*=== Navigation menu (for articles) */
  303. #nav_entries {
  304. margin: 0;
  305. text-align: center;
  306. line-height: 3em;
  307. table-layout: fixed;
  308. background: variables.$sid-bg;
  309. }