listn.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  1. ul.list {
  2. list-style-type: none;
  3. padding: 0;
  4. }
  5. ul.list.thin li:not(.subheader) {
  6. padding: 0;
  7. }
  8. ul.list li:not(.subheader) {
  9. padding: 0.25rem 0;
  10. }
  11. ul.list.middle li:not(.subheader):not(.date) {
  12. padding: 0.75rem 0;
  13. min-height: 5rem;
  14. }
  15. ul.list.thick li:not(.subheader) {
  16. padding: 1.5rem 0;
  17. }
  18. ul.list li {
  19. clear: both;
  20. position: relative;
  21. }
  22. ul.list li > *:not(p, .hide, form) {
  23. display: inline-block;
  24. top: 0;
  25. }
  26. /* Active list */
  27. ul.list.active > li:hover:not(.subheader),
  28. ul.list.active.all > li:hover,
  29. ul.list.active > li.active:not(.subheader) {
  30. background-color: rgba(var(--movim-font), 0.04);
  31. cursor: pointer;
  32. }
  33. /* Main elements */
  34. ul.list li .control,
  35. ul.list li .primary {
  36. width: 5rem;
  37. height: 5rem;
  38. top: 50%;
  39. margin-top: -2.5rem;
  40. position: absolute;
  41. line-height: 5rem;
  42. }
  43. ul.list li .top + .primary {
  44. top: 5rem;
  45. }
  46. ul.list li .control:not(.bubble):not(.thumb):not(.top),
  47. ul.list li .primary:not(.bubble):not(.thumb):not(.top) {
  48. margin-top: -3rem;
  49. padding: 0.5rem;
  50. }
  51. ul.list.middle li .control:not(.bubble):not(.thumb):not(.top),
  52. ul.list.middle li .primary:not(.bubble):not(.thumb):not(.top) {
  53. margin-top: -3.5rem;
  54. padding: 1rem 0.5rem;
  55. }
  56. ul.list.thick li .control:not(.bubble):not(.thumb):not(.top),
  57. ul.list.thick li .primary:not(.bubble):not(.thumb):not(.top) {
  58. margin-top: -4.25rem;
  59. padding: 1.75rem 0.5rem;
  60. }
  61. ul.list > li > *:not(img):not(.counter):not(span):not(.bubble):not(.button):not(ul):not(article),
  62. ul.list > a > li > *:not(img):not(.counter):not(span):not(.bubble):not(.button):not(ul):not(article),
  63. ul.list li.subheader p {
  64. box-sizing: border-box;
  65. padding-right: 2rem;
  66. padding-left: 2rem;
  67. }
  68. ul.list > li.wide > *:not(img):not(.counter):not(span):not(.bubble):not(.button):not(ul):not(article) {
  69. padding-left: 0;
  70. }
  71. ul.list li .primary > a,
  72. ul.list li .control > a {
  73. display: block;
  74. }
  75. /* Truncated content */
  76. ul.list li.subheader > p,
  77. ul.list li > p.line {
  78. overflow: hidden;
  79. text-overflow: ellipsis;
  80. white-space: nowrap;
  81. }
  82. ul.list li > span.active {
  83. transition: background-color 0.25s ease;
  84. }
  85. ul.list li > span.active:hover {
  86. cursor: pointer;
  87. background-color: rgba(var(--movim-font), 0.05);
  88. }
  89. ul.list li > p > span.second {
  90. color: gray;
  91. margin-left: 0.5rem;
  92. }
  93. ul.list li > p > span.info,
  94. ul li div.bubble:after {
  95. float: right;
  96. font-size: 1.5rem;
  97. color: gray;
  98. }
  99. *[dir="rtl"] ul.list li > p > span.info {
  100. float: left;
  101. }
  102. /* Size automagicaly the content */
  103. ul.list li > p {
  104. box-sizing: border-box;
  105. width: auto;
  106. }
  107. ul.list > * > li > p:first-of-type,
  108. ul.list > li > p:first-of-type {
  109. line-height: 5.5rem;
  110. font-size: 3rem;
  111. }
  112. ul.list li > p.normal {
  113. font-size: 2rem;
  114. }
  115. ul.list li > p:nth-last-of-type(2) + p.normal {
  116. margin-top: 0.5rem;
  117. }
  118. ul.list li > p.bold {
  119. font-weight: bold;
  120. }
  121. ul.list li > p.center {
  122. text-align: center;
  123. }
  124. ul.list li > p:nth-last-of-type(3),
  125. ul.list li > p:nth-last-of-type(2) {
  126. line-height: 3rem;
  127. font-size: 2rem;
  128. }
  129. ul.list li > p:nth-last-of-type(3) + p:not(.normal),
  130. ul.list li > p:nth-last-of-type(2) + p:not(.normal) {
  131. line-height: 2.5rem;
  132. font-size: 1.75rem;
  133. max-height: 7.5rem;
  134. overflow: hidden;
  135. }
  136. ul.list li > p:nth-last-of-type(3) + p.all,
  137. ul.list li > p:nth-last-of-type(2) + p.all {
  138. max-height: 100%;
  139. }
  140. /* In case of a card inside a li */
  141. ul.list li > ul.list.card {
  142. padding-right: 1rem;
  143. padding-left: 8rem;
  144. padding-bottom: 0.5rem;
  145. }
  146. /* Subheader */
  147. ul.list li.subheader {
  148. overflow: hidden;
  149. }
  150. ul.list li.subheader > p {
  151. font-size: 1.75rem;
  152. line-height: 5rem;
  153. font-weight: 600;
  154. padding: 0 2rem;
  155. }
  156. /* If we have a primary control */
  157. ul.list li > .primary {
  158. left: 1.5rem;
  159. }
  160. ul.list li > .primary.bubble {
  161. left: 2rem;
  162. }
  163. ul.list li > .primary ~ *:not(.primary):not(.counter):not(.bubble):not(.control):not(ul) {
  164. padding-left: 9rem;
  165. }
  166. ul.list li > .top + .primary ~ *:not(.primary):not(.counter):not(.bubble):not(.control) {
  167. padding-left: 2rem;
  168. }
  169. /* If we have a second primary control */
  170. ul.list li > .primary + .primary {
  171. left: 7rem;
  172. }
  173. ul.list li > .primary.bubble + .primary {
  174. left: 7.5rem;
  175. }
  176. ul.list li > .primary + .primary ~ *:not(.primary):not(.counter):not(.bubble):not(.control):not(ul) {
  177. padding-left: 14rem;
  178. }
  179. /* Place the other controls */
  180. ul.list li > .control {
  181. right: 0;
  182. }
  183. ul.list li > .control ~ .control {
  184. right: 6rem;
  185. }
  186. ul.list li > .control ~ .control ~ .control {
  187. right: 12rem;
  188. }
  189. /* Limit the size of the main content */
  190. ul.list li > .control ~ *:not(.control):not(.bubble):not(.counter) {
  191. margin-right: 5rem;
  192. }
  193. ul.list li > .control ~ .control ~ *:not(.control):not(.bubble):not(.counter) {
  194. margin-right: 11rem;
  195. }
  196. ul.list li > .control ~ .control ~ .control ~ *:not(.control):not(.bubble):not(.counter) {
  197. margin-right: 17rem;
  198. }
  199. /* Limit the size of the main content */
  200. header > ul.list li .primary {
  201. left: 0;
  202. }
  203. header > ul.list li > .primary ~ :not(.primary):not(.counter):not(.bubble):not(.control) {
  204. padding-left: 9rem;
  205. }
  206. /* Tabs */
  207. ul.tabs {
  208. text-align: center;
  209. border-bottom: 1px solid rgba(var(--movim-font), 0.12);
  210. overflow: hidden;
  211. white-space: nowrap;
  212. height: 6rem;
  213. line-height: 6rem;
  214. font-size: 0;
  215. }
  216. ul.tabs.wide > li {
  217. width: 33.33%;
  218. float: left;
  219. }
  220. ul.tabs:hover {
  221. overflow-x: auto;
  222. }
  223. ul.tabs > li {
  224. display: inline-block;
  225. white-space: nowrap;
  226. text-transform: uppercase;
  227. font-size: 1.75rem;
  228. font-weight: 600;
  229. opacity: 0.6;
  230. height: 6rem;
  231. box-sizing: border-box;
  232. }
  233. ul.tabs > li > * {
  234. padding: 0 3rem;
  235. box-sizing: border-box;
  236. display: block;
  237. }
  238. ul.tabs.narrow > li {
  239. min-width: 8rem;
  240. }
  241. ul.tabs.narrow > li > * {
  242. padding: 0 1rem;
  243. }
  244. ul.tabs > li:hover {
  245. cursor: pointer;
  246. background-color: rgba(var(--movim-font), 0.05);
  247. }
  248. ul.tabs > li.active {
  249. opacity: 1;
  250. border-bottom-width: 2px;
  251. border-bottom-style: solid;
  252. }
  253. /* Counter */
  254. ul li span.counter:empty {
  255. display: none;
  256. }
  257. ul li span.counter {
  258. position: absolute;
  259. right: 1rem;
  260. top: calc(50% - 1.5rem);
  261. line-height: 2rem;
  262. border-radius: 3rem;
  263. padding: 0.5rem;
  264. text-align: center;
  265. min-width: 2rem;
  266. font-size: 2rem;
  267. }
  268. ul li span.counter.bottom {
  269. top: calc(50%);
  270. }
  271. /* Bubble */
  272. ul li div.bubble {
  273. position: relative;
  274. box-sizing: border-box;
  275. display: block;
  276. font-size: 1.75rem;
  277. max-width: calc(100% - 11rem);
  278. float: left;
  279. left: 9rem;
  280. /*padding-left: 2rem;*/
  281. width: auto;
  282. }
  283. ul li div.bubble[dir="rtl"] {
  284. text-align: right;
  285. }
  286. ul li div.bubble:not(.sticker):not(.file) {
  287. padding: 1rem 1.75rem 0.5rem;
  288. border-radius: 0 0.5rem 0.5rem;
  289. line-height: 2.75rem;
  290. border-color: rgb(var(--movim-background-main));
  291. margin-bottom: 0.75rem;
  292. }
  293. ul li div.bubble p {
  294. overflow: hidden;
  295. display: inline;
  296. max-width: 100%;
  297. font-size: 1.75rem;
  298. word-wrap: break-word;
  299. white-space: pre-wrap;
  300. }
  301. ul li div.bubble p.code {
  302. display: inline-block;
  303. margin: 0.5rem 0;
  304. margin-bottom: 0;
  305. }
  306. ul li.oppose div.bubble {
  307. margin-right: 9rem;
  308. float: right;
  309. position: initial;
  310. }
  311. ul li.oppose div.bubble.file {
  312. word-break: break-all;
  313. }
  314. ul li.oppose div.bubble:not(.sticker):not(.file) {
  315. background-color: rgba(var(--movim-background-main), 0.5);
  316. border-color: rgba(var(--movim-background-main), 0.5);
  317. border-radius: 0.5rem 0 0.5rem 0.5rem;
  318. }
  319. ul li div.bubble span.info {
  320. float: right;
  321. padding-left: 1rem;
  322. }
  323. ul li div.bubble:after {
  324. /*display: block;*/
  325. content: attr(data-publishedprepared);
  326. clear: both;
  327. /*position: absolute;
  328. width: 20rem;*/
  329. line-height: 3rem;
  330. text-align: left;
  331. /*padding-top: 1rem;*/
  332. }
  333. ul li div.bubble.sticker:after {
  334. padding-top: 0.5rem;
  335. }
  336. ul li.oppose div.bubble:after {
  337. right: 9rem;
  338. text-align: right;
  339. }
  340. ul li:not(.oppose) div.bubble:after {
  341. left: 0;
  342. }
  343. ul li .quote {
  344. font-style: italic;
  345. }
  346. ul li div.bubble:not(.sticker):not(.file):before {
  347. content: "";
  348. position: absolute;
  349. top: 0;
  350. left: -1.5rem;
  351. border: 0.75rem solid transparent;
  352. border-top-color: inherit;
  353. border-right-color: rgb(var(--movim-background-main));
  354. }
  355. ul li.oppose div.bubble:not(.sticker):not(.file):before {
  356. left: calc(100% - 9rem);
  357. top: 0.75rem;
  358. border-right-color: transparent;
  359. border-left-color: inherit;
  360. }
  361. /* Date separator */
  362. ul li.date {
  363. min-height: 0;
  364. text-align: center;
  365. }
  366. ul li.date > p.normal {
  367. line-height: 2.5rem;
  368. font-size: 1.5rem;
  369. display: inline-block;
  370. border-radius: 2rem;
  371. margin: 1rem;
  372. }
  373. ul.list.middle li.separator:not(.subheader):not(.date) {
  374. display: block;
  375. min-height: 0;
  376. padding: 0;
  377. border-top: 0.15rem dashed #BBB;
  378. margin: 0 1.5rem;
  379. }
  380. /* Icon */
  381. .icon.tiny {
  382. font-size: 1.8rem;
  383. font-weight: 600;
  384. }
  385. /* Menu */
  386. ul.context_menu {
  387. border-radius: 0.25rem;
  388. overflow: hidden;
  389. position: absolute;
  390. top: 0;
  391. right: 0;
  392. margin: 0.5rem;
  393. z-index: 3;
  394. box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.26), 0px 2px 10px 0px rgba(0, 0, 0, 0.16);
  395. display: none;
  396. }
  397. ul.context_menu.shown {
  398. display: block;
  399. }
  400. /* Divided */
  401. ul.list li.divided,
  402. *.divided:not(.spaced):not(li) > *:not(:last-child),
  403. *.divided.spaced > *:not(:last-child).subheader,
  404. *.divided.spaced > *:not(:last-child):not(.subheader):after {
  405. border-bottom-width: 1px;
  406. border-bottom-style: solid;
  407. }
  408. *.divided.spaced > *:not(:last-child):after {
  409. position: absolute;
  410. right: 0;
  411. bottom: 0rem;
  412. content: "";
  413. display: block;
  414. width: calc(100% - 9rem);
  415. }
  416. /* RTL */
  417. /*
  418. *[dir="rtl"] :not(nav) ul.list li > .primary {
  419. left: auto;
  420. right: 1.5rem;
  421. }
  422. *[dir="rtl"] :not(nav) ul.list li > .primary.bubble {
  423. left: auto;
  424. right: 2rem;
  425. }
  426. *[dir="rtl"] :not(nav) ul.list li > .primary ~ *:not(.primary):not(.counter):not(.bubble):not(.control):not(ul) {
  427. padding-left: 2rem;
  428. padding-right: 9rem;
  429. }
  430. *[dir="rtl"] :not(nav) ul.list li > .top + .primary ~ *:not(.primary):not(.counter):not(.bubble):not(.control) {
  431. padding-left: 2rem;
  432. padding-right: 2rem;
  433. }
  434. *[dir="rtl"] :not(nav) ul.list li > .control {
  435. right: auto;
  436. left: 0;
  437. }
  438. *[dir="rtl"] :not(nav) ul.list li > .control ~ .control {
  439. right: auto;
  440. left: 6rem;
  441. }
  442. *[dir="rtl"] :not(nav) ul.list li > .control ~ .control ~ .control {
  443. right: auto;
  444. left: 12rem;
  445. }
  446. *[dir="rtl"] :not(nav) ul.list li > .control ~ *:not(.control):not(.bubble):not(.counter) {
  447. margin-right: auto;
  448. margin-left: 6rem;
  449. }
  450. *[dir="rtl"] :not(nav) ul.list li > .control ~ .control ~ *:not(.control):not(.bubble):not(.counter) {
  451. margin-right: auto;
  452. margin-left: 12rem;
  453. }
  454. *[dir="rtl"] :not(nav) ul.list li > .control ~ .control ~ .control ~ *:not(.control):not(.bubble):not(.counter) {
  455. margin-right: 0;
  456. margin-left: 18rem;
  457. }*/
  458. ul li img.preview {
  459. max-width: 100%;
  460. margin: 1rem 0;
  461. }