_layout.scss 6.3 KB

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