_layout.scss 6.3 KB

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