_layout.scss 6.6 KB

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