_layout.scss 7.8 KB

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