_layout.scss 8.1 KB

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