_layout.scss 8.1 KB

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