_layout.scss 6.2 KB

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