_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. padding: calc(0.75rem + var(--frss-padding-top-bottom)) 1rem;
  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. .group {
  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:not(#dropdown-search-wrapper) {
  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. #dropdown-search-wrapper.dropdown {
  180. a.dropdown-toggle {
  181. border-left-width: 0;
  182. }
  183. }
  184. }
  185. }
  186. #dropdown-query ~ .dropdown-menu .dropdown-header .icon {
  187. vertical-align: middle;
  188. border-radius: 3px;
  189. }
  190. /*=== Content of feed articles */
  191. .content, .content_thin {
  192. padding: 20px 10px;
  193. font-size: 1.125rem;
  194. line-height: 1.8rem;
  195. h1.title, h1 {
  196. a {
  197. color: variables.$main-font-color;
  198. font-family: "spectral", serif;
  199. font-size: 2rem;
  200. &:hover {
  201. color: variables.$main-first;
  202. text-decoration: none;
  203. }
  204. }
  205. }
  206. .author {
  207. color: variables.$light-font-color;
  208. font-size: 1.125rem;
  209. }
  210. p, ul {
  211. font-size: 1.125rem;
  212. line-height: 1.8rem;
  213. }
  214. .content hr {
  215. margin: 30px 10px;
  216. background: variables.$grey-medium-light;
  217. height: 1px;
  218. border: 0;
  219. box-shadow: 0 2px 5px #ccc;
  220. }
  221. pre {
  222. background: variables.$main-first-darker;
  223. color: variables.$white;
  224. border-radius: 3px;
  225. code {
  226. background: transparent;
  227. color: variables.$white;
  228. border: none;
  229. }
  230. }
  231. code {
  232. background: variables.$grey-lighter;
  233. border-color: 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. .close {
  281. .icon {
  282. filter: brightness(3);
  283. }
  284. }
  285. &.good .close:hover {
  286. background: variables.$success-text;
  287. }
  288. &.bad .close:hover {
  289. background: variables.$alert-text;
  290. }
  291. &#actualizeProgress {
  292. br {
  293. display: none;
  294. }
  295. .title {
  296. margin: 0 2rem;
  297. }
  298. }
  299. }
  300. /*=== Navigation menu (for articles) */
  301. #nav_entries {
  302. background: variables.$sid-bg;
  303. }