_layout.scss 7.8 KB

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