_layout.scss 6.1 KB

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