_layout.scss 7.2 KB

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