_layout.rtl.css 5.8 KB

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