_layout.scss 6.1 KB

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