_layout.scss 7.3 KB

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