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