_layout.scss 6.0 KB

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