_layout.scss 7.7 KB

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