_layout.scss 8.0 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. .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. .btn {
  147. border-left-width: 0;
  148. padding: 0.5rem 1rem;
  149. background-color: variables.$grey-light;
  150. background-position: center;
  151. background-repeat: no-repeat;
  152. @include mixins.transition(all, 0.15s, ease-in-out);
  153. &:hover {
  154. background-color: variables.$grey-medium-light;
  155. }
  156. &.active {
  157. background-color: variables.$main-first;
  158. }
  159. }
  160. /*=== Index menu */
  161. .nav_menu {
  162. text-align: center;
  163. padding: 5px 0;
  164. .btn {
  165. border-left-width: 0;
  166. padding: 0.5rem 1rem;
  167. background-color: variables.$grey-lighter;
  168. background-position: center;
  169. background-repeat: no-repeat;
  170. &:hover {
  171. background-color: variables.$grey-light;
  172. }
  173. }
  174. .stick {
  175. background: variables.$grey-lighter;
  176. .btn {
  177. border-left-width: 0;
  178. padding: 0.5rem 1rem;
  179. background-color: variables.$grey-lighter;
  180. background-position: center;
  181. background-repeat: no-repeat;
  182. @include mixins.transition(all, 0.15s, ease-in-out);
  183. &:hover {
  184. background-color: variables.$grey-medium-light;
  185. }
  186. &.active {
  187. background-color: variables.$main-first;
  188. }
  189. img.icon {display: none;} // on efface pour afficher nos icones, mouhahaha !!
  190. // actions
  191. &#toggle-read {
  192. background-image: url(icons/read.svg);
  193. }
  194. &#toggle-read.active {
  195. background-image: url(icons/read-white.svg);
  196. }
  197. &#toggle-unread {
  198. background-image: url(icons/unread.svg);
  199. }
  200. &#toggle-unread.active {
  201. background-image: url(icons/unread-white.svg);
  202. }
  203. &#toggle-starred {
  204. background-image: url(icons/starred.svg);
  205. }
  206. &#toggle-starred.active {
  207. background-image: url(icons/starred-white.svg);
  208. }
  209. &#toggle-non-starred {
  210. background-image: url(icons/non-starred.svg);
  211. }
  212. &#toggle-non-starred.active {
  213. background-image: url(icons/non-starred-white.svg);
  214. }
  215. // read all
  216. &.read_all {
  217. padding: 5px 16px;
  218. // min-height: 0;
  219. color: variables.$main-font-color;
  220. background-color: variables.$grey-lighter;
  221. @include mixins.transition(all, 0.15s, ease-in-out);
  222. &:hover {
  223. background-color: variables.$grey-medium-light;
  224. }
  225. }
  226. // views
  227. &.view-normal {
  228. background-image: url(icons/view-list.svg);
  229. }
  230. &.view-normal.active {
  231. background-image: url(icons/view-list-white.svg);
  232. }
  233. &.view-global {
  234. background-image: url(icons/view-global.svg);
  235. }
  236. &.view-global.active {
  237. background-image: url(icons/view-global-white.svg);
  238. }
  239. &.view-reader {
  240. background-image: url(icons/view-reader.svg);
  241. }
  242. &.view-reader.active {
  243. background-image: url(icons/view-reader-white.svg);
  244. }
  245. &.view-rss {
  246. background-image: url(icons/rss.svg);
  247. }
  248. }
  249. .dropdown {
  250. a.dropdown-toggle {
  251. border-left-width: 0;
  252. background-image: url(icons/more.svg);
  253. }
  254. }
  255. }
  256. }
  257. #dropdown-query ~ .dropdown-menu .dropdown-header .icon {
  258. vertical-align: middle;
  259. border-radius: 3px;
  260. }
  261. /*=== Content of feed articles */
  262. .content, .content.thin {
  263. padding: 20px 10px;
  264. font-size: 1.125rem;
  265. line-height: 1.8rem;
  266. h1.title, h1 {
  267. a {
  268. color: variables.$main-font-color;
  269. font-family: "spectral", serif;
  270. font-size: 2rem;
  271. &:hover {
  272. color: variables.$main-first;
  273. text-decoration: none;
  274. }
  275. }
  276. }
  277. .author {
  278. color: variables.$light-font-color;
  279. font-size: 1.125rem;
  280. }
  281. p, ul {
  282. font-size: 1.125rem;
  283. line-height: 1.8rem;
  284. }
  285. .content hr {
  286. margin: 30px 10px;
  287. background: variables.$grey-medium-light;
  288. height: 1px;
  289. border: 0;
  290. box-shadow: 0 2px 5px #ccc;
  291. }
  292. pre {
  293. margin: 10px auto;
  294. padding: 10px 20px;
  295. overflow: auto;
  296. background: variables.$main-first-darker;
  297. color: variables.$white;
  298. font-size: 0.9rem;
  299. border-radius: 3px;
  300. code {
  301. background: transparent;
  302. color: variables.$white;
  303. border: none;
  304. }
  305. }
  306. code {
  307. padding: 2px 5px;
  308. background: variables.$grey-lighter;
  309. border: 1px solid variables.$grey-light;
  310. border-radius: 3px;
  311. }
  312. blockquote {
  313. margin: 0;
  314. padding: 5px 20px;
  315. background: variables.$grey-lighter;
  316. display: block;
  317. color: variables.$main-font-color;
  318. border-top: 1px solid variables.$grey-medium-light;
  319. border-bottom: 1px solid variables.$grey-medium-light;
  320. p {
  321. margin: 0;
  322. }
  323. }
  324. }
  325. /*=== Notification and actualize notification */
  326. .notification {
  327. padding: 1rem 0;
  328. background: variables.$grey-medium-light;
  329. width: 100%;
  330. height: 3rem;
  331. color: variables.$grey-dark;
  332. // font-weight: bold;
  333. font-size: 1em;
  334. // border-radius: 3px;
  335. border: none;
  336. position: fixed;
  337. top: auto;
  338. bottom: 0;
  339. left: 0;
  340. right: 0;
  341. text-align: center;
  342. z-index: 10;
  343. vertical-align: middle;
  344. a {
  345. color: #000;
  346. }
  347. .msg {
  348. display: inline-block;
  349. font-size: 1rem;
  350. }
  351. &.good {
  352. background: variables.$success-bg;
  353. color: variables.$white;
  354. }
  355. &.bad {
  356. background: variables.$alert-bg;
  357. color: variables.$white;
  358. }
  359. a.close {
  360. padding: 0 15px;
  361. border-radius: 0 3px 3px 0;
  362. line-height: 3em;
  363. }
  364. &.good a.close:hover {
  365. background: variables.$success-text;
  366. }
  367. &.bad a.close:hover {
  368. background: variables.$alert-text;
  369. }
  370. &#actualizeProgress {
  371. line-height: 2em;
  372. br {
  373. display: none;
  374. }
  375. }
  376. }
  377. /*=== Navigation menu (for articles) */
  378. #nav_entries {
  379. margin: 0;
  380. text-align: center;
  381. line-height: 3em;
  382. table-layout: fixed;
  383. background: variables.$sid-bg;
  384. }