_layout.scss 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  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. .group {
  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:not(#dropdown-search-wrapper) {
  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. #dropdown-search-wrapper.dropdown {
  196. a.dropdown-toggle {
  197. border-left-width: 0;
  198. }
  199. }
  200. }
  201. }
  202. /*=== Content of feed articles */
  203. .content, .content_thin {
  204. padding: 20px 10px;
  205. font-size: 1.125rem;
  206. line-height: 1.8rem;
  207. h1.title, h1 {
  208. a {
  209. color: variables.$main-font-color;
  210. font-family: "spectral", serif;
  211. font-size: 2rem;
  212. &:hover {
  213. color: variables.$main-first;
  214. text-decoration: none;
  215. }
  216. }
  217. }
  218. .author {
  219. color: variables.$light-font-color;
  220. font-size: 1.125rem;
  221. }
  222. p, ul {
  223. font-size: 1.125rem;
  224. line-height: 1.8rem;
  225. }
  226. .content hr {
  227. margin: 30px 10px;
  228. background: variables.$grey-medium-light;
  229. height: 1px;
  230. border: 0;
  231. box-shadow: 0 2px 5px #ccc;
  232. }
  233. pre {
  234. background: variables.$main-first-darker;
  235. color: variables.$white;
  236. border-radius: 3px;
  237. code {
  238. background: transparent;
  239. color: variables.$white;
  240. border: none;
  241. }
  242. }
  243. code {
  244. background: variables.$code-bg;
  245. color: variables.$code-text;
  246. font-size: 1rem;
  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. .close {
  291. .icon {
  292. filter: brightness(3);
  293. }
  294. }
  295. &.good .close:hover {
  296. background: variables.$success-text;
  297. }
  298. &.bad .close:hover {
  299. background: variables.$alert-text;
  300. }
  301. &#actualizeProgress {
  302. br {
  303. display: none;
  304. }
  305. .title {
  306. margin: 0 2rem;
  307. }
  308. }
  309. }
  310. /*=== Navigation menu (for articles) */
  311. #nav_entries {
  312. background: variables.$sid-bg;
  313. }