_layout.scss 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  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 {
  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. }
  179. }
  180. #dropdown-query ~ .dropdown-menu .dropdown-header .icon {
  181. vertical-align: middle;
  182. border-radius: 3px;
  183. }
  184. /*=== Content of feed articles */
  185. .content, .content.thin {
  186. padding: 20px 10px;
  187. font-size: 1.125rem;
  188. line-height: 1.8rem;
  189. h1.title, h1 {
  190. a {
  191. color: variables.$main-font-color;
  192. font-family: "spectral", serif;
  193. font-size: 2rem;
  194. &:hover {
  195. color: variables.$main-first;
  196. text-decoration: none;
  197. }
  198. }
  199. }
  200. .author {
  201. color: variables.$light-font-color;
  202. font-size: 1.125rem;
  203. }
  204. p, ul {
  205. font-size: 1.125rem;
  206. line-height: 1.8rem;
  207. }
  208. .content hr {
  209. margin: 30px 10px;
  210. background: variables.$grey-medium-light;
  211. height: 1px;
  212. border: 0;
  213. box-shadow: 0 2px 5px #ccc;
  214. }
  215. pre {
  216. margin: 10px auto;
  217. padding: 10px 20px;
  218. overflow: auto;
  219. background: variables.$main-first-darker;
  220. color: variables.$white;
  221. font-size: 0.9rem;
  222. border-radius: 3px;
  223. code {
  224. background: transparent;
  225. color: variables.$white;
  226. border: none;
  227. }
  228. }
  229. code {
  230. padding: 2px 5px;
  231. background: variables.$grey-lighter;
  232. border: 1px solid variables.$grey-light;
  233. border-radius: 3px;
  234. }
  235. blockquote {
  236. margin: 0;
  237. padding: 5px 20px;
  238. background: variables.$grey-lighter;
  239. display: block;
  240. color: variables.$main-font-color;
  241. border-top: 1px solid variables.$grey-medium-light;
  242. border-bottom: 1px solid variables.$grey-medium-light;
  243. p {
  244. margin: 0;
  245. }
  246. }
  247. }
  248. /*=== Notification and actualize notification */
  249. .notification {
  250. padding: 1rem 0;
  251. background: variables.$grey-medium-light;
  252. width: 100%;
  253. height: 3rem;
  254. color: variables.$grey-dark;
  255. font-size: 1em;
  256. border: none;
  257. position: fixed;
  258. top: auto;
  259. bottom: 0;
  260. left: 0;
  261. right: 0;
  262. text-align: center;
  263. vertical-align: middle;
  264. a {
  265. color: #000;
  266. }
  267. .msg {
  268. display: inline-block;
  269. font-size: 1rem;
  270. }
  271. &.good {
  272. background: variables.$success-bg;
  273. color: variables.$white;
  274. }
  275. &.bad {
  276. background: variables.$alert-bg;
  277. color: variables.$white;
  278. }
  279. a.close {
  280. border-radius: 0 3px 3px 0;
  281. }
  282. &.good a.close:hover {
  283. background: variables.$success-text;
  284. }
  285. &.bad a.close:hover {
  286. background: variables.$alert-text;
  287. }
  288. &#actualizeProgress {
  289. br {
  290. display: none;
  291. }
  292. .title {
  293. margin: 0 2rem;
  294. }
  295. }
  296. }
  297. /*=== Navigation menu (for articles) */
  298. #nav_entries {
  299. margin: 0;
  300. text-align: center;
  301. line-height: 3em;
  302. table-layout: fixed;
  303. background: variables.$sid-bg;
  304. }