_layout.scss 8.1 KB

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