_layout.rtl.css 5.9 KB

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