_layout.scss 7.4 KB

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