_layout.scss 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  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. background-color: $grey-medium-dark;
  244. border-radius: 3px;
  245. }
  246. /*=== Content of feed articles */
  247. .content, .content.thin {
  248. padding: 20px 10px;
  249. font-size: 1.125rem;
  250. line-height: 1.8rem;
  251. h1.title, h1 {
  252. a {
  253. color: $main-font-color;
  254. font-family: "spectral", serif;
  255. font-size: 2rem;
  256. &:hover {
  257. color: $main-first;
  258. text-decoration: none;
  259. }
  260. }
  261. }
  262. .author {
  263. color: $light-font-color;
  264. font-size: 1.125rem;
  265. }
  266. p, ul {
  267. font-size: 1.125rem;
  268. line-height: 1.8rem;
  269. }
  270. .content hr {
  271. margin: 30px 10px;
  272. background: $grey-medium-light;
  273. height: 1px;
  274. border: 0;
  275. box-shadow: 0 2px 5px #ccc;
  276. }
  277. pre {
  278. margin: 10px auto;
  279. padding: 10px 20px;
  280. overflow: auto;
  281. background: $main-first-darker;
  282. color: $white;
  283. font-size: 0.9rem;
  284. border-radius: 3px;
  285. code {
  286. background: transparent;
  287. color: $white;
  288. border: none;
  289. }
  290. }
  291. code {
  292. padding: 2px 5px;
  293. background: $grey-lighter;
  294. color: $grey-light;
  295. border: 1px solid $grey-light;
  296. border-radius: 3px;
  297. }
  298. blockquote {
  299. margin: 0;
  300. padding: 5px 20px;
  301. background: $grey-lighter;
  302. display: block;
  303. color: $main-font-color;
  304. border-top: 1px solid $grey-medium-light;
  305. border-bottom: 1px solid $grey-medium-light;
  306. p {
  307. margin: 0;
  308. }
  309. }
  310. }
  311. /*=== Notification and actualize notification */
  312. .notification {
  313. padding: 1rem 0;
  314. background: $grey-medium-light;
  315. width: 100%;
  316. height: 3rem;
  317. color: $grey-dark;
  318. // font-weight: bold;
  319. font-size: 1em;
  320. // border-radius: 3px;
  321. border: none;
  322. position: fixed;
  323. top: auto;
  324. bottom: 0;
  325. left: 0;
  326. right: 0;
  327. text-align: center;
  328. line-height: 3em;
  329. z-index: 10;
  330. vertical-align: middle;
  331. .msg {
  332. display: inline-block;
  333. font-size: 1rem;
  334. }
  335. &.good {
  336. background: $success-bg;
  337. color: $white;
  338. }
  339. &.bad {
  340. background: $alert-bg;
  341. color: $white;
  342. }
  343. a.close {
  344. padding: 0 15px;
  345. border-radius: 0 3px 3px 0;
  346. line-height: 3em;
  347. }
  348. &.good a.close:hover {
  349. background: $success-text;
  350. }
  351. &.bad a.close:hover {
  352. background: $alert-text;
  353. }
  354. &#actualizeProgress {
  355. line-height: 2em;
  356. br {
  357. display: none;
  358. }
  359. }
  360. }
  361. /*=== Navigation menu (for articles) */
  362. #nav_entries {
  363. margin: 0;
  364. text-align: center;
  365. line-height: 3em;
  366. table-layout: fixed;
  367. background: $sid-bg;
  368. }