Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

combination.css 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. /*
  2. Note:
  3. :not(X) does not work if X is a complex selector like `.foo .bar` due to the spec of :not(X).
  4. Instead we have to use the following form for representing A:not(X A):not(Y A):not(Z A),
  5. which means `A which does not have any X, Y and Z as its ancestors`.
  6. // Equivalent to A:not(X A):not(Y A):not(Z A) { foo: bar; }
  7. A {
  8. // Apply styles for A
  9. foo: bar;
  10. }
  11. X A,
  12. Y A,
  13. Z A {
  14. // Subtract `X A`, `Y A` and `Z A`
  15. // (Restore original styles of A)
  16. }
  17. */
  18. /*
  19. Note:
  20. @apply has been deprecated as of Oct, 2017.
  21. Please do not use @apply to restore original styles.
  22. */
  23. /* Bars and page contents */
  24. @media (orientation: portrait) {
  25. /* Outermost toolbar */
  26. html[onsflag-iphonex-portrait] .toolbar {
  27. top: 0;
  28. box-sizing: content-box;
  29. padding-top: var(--iphonex-safe-area-inset-top-portrait);
  30. }
  31. /* Non-outermost */
  32. html[onsflag-iphonex-portrait] .dialog .toolbar, /* if wrapped with dialogs */
  33. html[onsflag-iphonex-portrait] .toolbar:not(.toolbar--cover-content)+.page__background+.page__content .toolbar, /* if wrapped with a page with a toolbar */
  34. html[onsflag-iphonex-portrait] .tabbar--top__content .toolbar { /* if wrapped with a top tabbar */
  35. /* Restore original styles */
  36. top: 0;
  37. box-sizing: border-box;
  38. padding-top: 0;
  39. }
  40. /* Outermost bottom-bar */
  41. html[onsflag-iphonex-portrait] .bottom-bar {
  42. bottom: 0;
  43. box-sizing: content-box;
  44. padding-bottom: var(--iphonex-safe-area-inset-bottom-portrait);
  45. }
  46. /* Non-outermost */
  47. html[onsflag-iphonex-portrait] .dialog .bottom-bar, /* if wrapped with dialogs */
  48. html[onsflag-iphonex-portrait] .page-with-bottom-toolbar > .page__content .bottom-bar, /* if wrapped with a page with a bottom-bar */
  49. html[onsflag-iphonex-portrait] .tabbar__content:not(.tabbar--top__content) .bottom-bar { /* if wrapped with a bottom tabbar */
  50. /* Restore original styles */
  51. bottom: 0;
  52. box-sizing: border-box;
  53. padding-bottom: 0;
  54. }
  55. /* Outermost page__content without toolbars or bottom-bars */
  56. html[onsflag-iphonex-portrait] .page__content {
  57. top: 0;
  58. padding-top: var(--iphonex-safe-area-inset-top-portrait);
  59. bottom: 0;
  60. padding-bottom: var(--iphonex-safe-area-inset-bottom-portrait);
  61. }
  62. /* Non-outermost */
  63. html[onsflag-iphonex-portrait] .dialog .page__content, /* if wrapped with dialogs */
  64. html[onsflag-iphonex-portrait] .toolbar:not(.toolbar--cover-content)+.page__background+.page__content .page__content, /* if wrapped with a page with a toolbar */
  65. html[onsflag-iphonex-portrait] .tabbar--top__content .page__content, /* if wrapped with a top tabbar */
  66. html[onsflag-iphonex-portrait] .toolbar:not(.toolbar--cover-content)+.page__background+.page__content { /* if the page has a toolbar */
  67. /* Restore original styles */
  68. top: 0;
  69. padding-top: 0;
  70. }
  71. html[onsflag-iphonex-portrait] .dialog .page__content, /* if wrapped with dialogs */
  72. html[onsflag-iphonex-portrait] .page-with-bottom-toolbar > .page__content .page__content, /* if wrapped with a page with a bottom-bar */
  73. html[onsflag-iphonex-portrait] .tabbar__content:not(.tabbar--top__content) .page__content, /* if wrapped with a bottom tabbar */
  74. html[onsflag-iphonex-portrait] .page-with-bottom-toolbar > .page__content { /* if the page has a bottom-bar */
  75. /* Restore original styles */
  76. bottom: 0;
  77. padding-bottom: 0;
  78. }
  79. /* Outermost page__content with a toolbar */
  80. html[onsflag-iphonex-portrait] .toolbar:not(.toolbar--cover-content)+.page__background,
  81. html[onsflag-iphonex-portrait] .toolbar:not(.toolbar--cover-content)+.page__background+.page__content {
  82. top: calc(var(--iphonex-safe-area-inset-top-portrait) + var(--toolbar-height));
  83. padding-top: 0;
  84. }
  85. /* Non-outermost */
  86. html[onsflag-iphonex-portrait] .dialog .toolbar:not(.toolbar--cover-content)+.page__background,
  87. html[onsflag-iphonex-portrait] .dialog .toolbar:not(.toolbar--cover-content)+.page__background+.page__content, /* if wrapped with dialogs */
  88. html[onsflag-iphonex-portrait] .toolbar:not(.toolbar--cover-content)+.page__background+.page__content .toolbar:not(.toolbar--cover-content)+.page__background,
  89. html[onsflag-iphonex-portrait] .toolbar:not(.toolbar--cover-content)+.page__background+.page__content .toolbar:not(.toolbar--cover-content)+.page__background+.page__content, /* if wrapped with a page with a toolbar */
  90. html[onsflag-iphonex-portrait] .tabbar--top__content .toolbar:not(.toolbar--cover-content)+.page__background,
  91. html[onsflag-iphonex-portrait] .tabbar--top__content .toolbar:not(.toolbar--cover-content)+.page__background+.page__content { /* if wrapped with a top tabbar */
  92. /* Restore original styles */
  93. top: var(--toolbar-height);
  94. padding-top: 0;
  95. }
  96. /* Outermost page__content with a bottom-bar */
  97. html[onsflag-iphonex-portrait] .page-with-bottom-toolbar > .page__content {
  98. bottom: calc(var(--iphonex-safe-area-inset-bottom-portrait) + var(--toolbar-height));
  99. padding-bottom: 0;
  100. }
  101. /* Non-outermost */
  102. html[onsflag-iphonex-portrait] .dialog .page-with-bottom-toolbar > .page__content, /* if wrapped with dialogs */
  103. html[onsflag-iphonex-portrait] .page-with-bottom-toolbar > .page__content .page-with-bottom-toolbar > .page__content, /* if wrapped with a page with a bottom-bar */
  104. html[onsflag-iphonex-portrait] .tabbar__content:not(.tabbar--top__content) .page-with-bottom-toolbar > .page__content { /* if wrapped with a bottom tabbar */
  105. /* Restore original styles */
  106. bottom: var(--toolbar-height);
  107. padding-bottom: 0;
  108. }
  109. /* Outermost page__content with a transparent cover-content toolbar and its direct descendant page_content */
  110. html[onsflag-iphonex-portrait] .toolbar.toolbar--transparent.toolbar--cover-content+.page__background+.page__content,
  111. html[onsflag-iphonex-portrait] .toolbar.toolbar--transparent.toolbar--cover-content+.page__background+.page__content .page_content {
  112. top: 0;
  113. padding-top: calc(var(--iphonex-safe-area-inset-top-portrait) + var(--toolbar-height));
  114. }
  115. /* Non-outermost */
  116. html[onsflag-iphonex-portrait] .dialog .toolbar.toolbar--transparent.toolbar--cover-content+.page__background+.page__content, /* if wrapped with dialogs */
  117. html[onsflag-iphonex-portrait] .dialog .toolbar.toolbar--transparent.toolbar--cover-content+.page__background+.page__content .page_content,
  118. html[onsflag-iphonex-portrait] .toolbar:not(.toolbar--cover-content)+.page__background+.page__content .toolbar.toolbar--transparent.toolbar--cover-content+.page__background+.page__content, /* if wrapped with a page with a toolbar */
  119. html[onsflag-iphonex-portrait] .toolbar:not(.toolbar--cover-content)+.page__background+.page__content .toolbar.toolbar--transparent.toolbar--cover-content+.page__background+.page__content .page__content,
  120. html[onsflag-iphonex-portrait] .tabbar--top__content .toolbar.toolbar--transparent.toolbar--cover-content+.page__background+.page__content,
  121. html[onsflag-iphonex-portrait] .tabbar--top__content .toolbar.toolbar--transparent.toolbar--cover-content+.page__background+.page__content .page_content { /* if wrapped with a top tabbar */
  122. /* Restore original styles */
  123. top: 0;
  124. padding-top: var(--toolbar-height);
  125. }
  126. /* Outermost top tabbar */
  127. html[onsflag-iphonex-portrait] .tabbar--top {
  128. padding-top: var(--iphonex-safe-area-inset-top-portrait);
  129. }
  130. /* Non-outermost */
  131. html[onsflag-iphonex-portrait] .dialog .tabbar--top, /* if wrapped with dialogs */
  132. html[onsflag-iphonex-portrait] .toolbar:not(.toolbar--cover-content)+.page__background+.page__content .tabbar--top, /* if wrapped with a page with a toolbar */
  133. html[onsflag-iphonex-portrait] .tabbar--top__content .tabbar--top { /* if wrapped with a top tabbar */
  134. /* Restore original styles */
  135. padding-top: 0;
  136. }
  137. /* Outermost tabbar--top__content */
  138. html[onsflag-iphonex-portrait] .tabbar--top__content {
  139. top: calc(var(--iphonex-safe-area-inset-top-portrait) + var(--tabbar-height));
  140. }
  141. /* Non-outermost */
  142. html[onsflag-iphonex-portrait] .dialog .tabbar--top__content, /* if wrapped with dialogs */
  143. html[onsflag-iphonex-portrait] .toolbar:not(.toolbar--cover-content)+.page__background+.page__content .tabbar--top__content, /* if wrapped with a page with a toolbar */
  144. html[onsflag-iphonex-portrait] .tabbar--top__content .tabbar--top__content { /* if wrapped with a top tabbar */
  145. /* Restore original styles */
  146. top: var(--tabbar-height);
  147. }
  148. /* Outermost bottom tabbar */
  149. html[onsflag-iphonex-portrait] .tabbar:not(.tabbar--top):not(.tabbar--top) {
  150. padding-bottom: var(--iphonex-safe-area-inset-bottom-portrait);
  151. }
  152. /* Non-outermost */
  153. html[onsflag-iphonex-portrait] .dialog .tabbar:not(.tabbar--top):not(.tabbar--top), /* if wrapped with dialogs */
  154. html[onsflag-iphonex-portrait] .page-with-bottom-toolbar > .page__content .tabbar:not(.tabbar--top), /* if wrapped with a page with a bottom-bar */
  155. html[onsflag-iphonex-portrait] .tabbar__content:not(.tabbar--top__content) .tabbar:not(.tabbar--top) { /* if wrapped with a bottom tabbar */
  156. /* Restore original styles */
  157. padding-bottom: 0;
  158. }
  159. /* Outermost.tabbar__content:not(.tabbar--top__content) */
  160. html[onsflag-iphonex-portrait] .tabbar__content:not(.tabbar--top__content) {
  161. bottom: calc(var(--iphonex-safe-area-inset-bottom-portrait) + var(--tabbar-height));
  162. }
  163. /* Non-outermost */
  164. html[onsflag-iphonex-portrait] .dialog .tabbar__content:not(.tabbar--top__content), /* if wrapped with dialogs */
  165. html[onsflag-iphonex-portrait] .page-with-bottom-toolbar > .page__content .tabbar__content:not(.tabbar--top__content), /* if wrapped with a page with a bottom-bar */
  166. html[onsflag-iphonex-portrait] .tabbar__content:not(.tabbar--top__content) .tabbar__content:not(.tabbar--top__content) { /* if wrapped with a bottom tabbar */
  167. /* Restore original styles */
  168. bottom: var(--tabbar-height);
  169. }
  170. }
  171. @media (orientation: landscape) {
  172. /* Outermost bottom-bar */
  173. html[onsflag-iphonex-landscape] .bottom-bar {
  174. bottom: 0;
  175. box-sizing: content-box;
  176. padding-bottom: var(--iphonex-safe-area-inset-bottom-landscape);
  177. }
  178. /* Non-outermost */
  179. html[onsflag-iphonex-landscape] .dialog .bottom-bar, /* if wrapped with dialogs */
  180. html[onsflag-iphonex-landscape] .page-with-bottom-toolbar > .page__content .bottom-bar, /* if wrapped with a page with a bottom-bar */
  181. html[onsflag-iphonex-landscape] .tabbar__content:not(.tabbar--top__content) .bottom-bar { /* if wrapped with a bottom tabbar */
  182. /* Restore original styles */
  183. bottom: 0;
  184. box-sizing: border-box;
  185. padding-bottom: 0;
  186. }
  187. /* Outermost page__content without bottom-bars */
  188. html[onsflag-iphonex-landscape] .page__content {
  189. bottom: 0;
  190. padding-bottom: var(--iphonex-safe-area-inset-bottom-landscape);
  191. }
  192. /* Non-outermost */
  193. html[onsflag-iphonex-landscape] .dialog .page__content, /* if wrapped with dialogs */
  194. html[onsflag-iphonex-landscape] .page-with-bottom-toolbar > .page__content .page__content, /* if wrapped with a page with a bottom-bar */
  195. html[onsflag-iphonex-landscape] .tabbar__content:not(.tabbar--top__content) .page__content, /* if wrapped with a bottom tabbar */
  196. html[onsflag-iphonex-landscape] .page-with-bottom-toolbar > .page__content { /* if the page has a bottom-bar */
  197. /* Restore original styles */
  198. bottom: 0;
  199. padding-bottom: 0;
  200. }
  201. /* Outermost page__content with a bottom-bar */
  202. html[onsflag-iphonex-landscape] .page-with-bottom-toolbar > .page__content {
  203. bottom: calc(var(--iphonex-safe-area-inset-bottom-landscape) + var(--toolbar-height));
  204. padding-bottom: 0;
  205. }
  206. /* Non-outermost */
  207. html[onsflag-iphonex-landscape] .dialog .page-with-bottom-toolbar > .page__content, /* if wrapped with dialogs */
  208. html[onsflag-iphonex-landscape] .page-with-bottom-toolbar > .page__content .page-with-bottom-toolbar > .page__content, /* if wrapped with a page with a bottom-bar */
  209. html[onsflag-iphonex-landscape] .tabbar__content:not(.tabbar--top__content) .page-with-bottom-toolbar > .page__content { /* if wrapped with a bottom tabbar */
  210. /* Restore original styles */
  211. bottom: var(--toolbar-height);
  212. padding-bottom: 0;
  213. }
  214. /* Outermost bottom tabbar */
  215. html[onsflag-iphonex-landscape] .tabbar:not(.tabbar--top) {
  216. padding-bottom: var(--iphonex-safe-area-inset-bottom-landscape);
  217. }
  218. /* Non-outermost */
  219. html[onsflag-iphonex-landscape] .dialog .tabbar:not(.tabbar--top), /* if wrapped with dialogs */
  220. html[onsflag-iphonex-landscape] .page-with-bottom-toolbar > .page__content .tabbar:not(.tabbar--top), /* if wrapped with a page with a bottom-bar */
  221. html[onsflag-iphonex-landscape] .tabbar__content:not(.tabbar--top__content) .tabbar:not(.tabbar--top) { /* if wrapped with a bottom tabbar */
  222. /* Restore original styles */
  223. padding-bottom: 0;
  224. }
  225. /* Outermost.tabbar__content:not(.tabbar--top__content) */
  226. html[onsflag-iphonex-landscape] .tabbar__content:not(.tabbar--top__content) {
  227. bottom: calc(var(--iphonex-safe-area-inset-bottom-landscape) + var(--tabbar-height));
  228. }
  229. /* Non-outermost */
  230. html[onsflag-iphonex-landscape] .dialog .tabbar__content:not(.tabbar--top__content), /* if wrapped with dialogs */
  231. html[onsflag-iphonex-landscape] .page-with-bottom-toolbar > .page__content .tabbar__content:not(.tabbar--top__content), /* if wrapped with a page with a bottom-bar */
  232. html[onsflag-iphonex-landscape] .tabbar__content:not(.tabbar--top__content) .tabbar__content:not(.tabbar--top__content) { /* if wrapped with a bottom tabbar */
  233. /* Restore original styles */
  234. bottom: var(--tabbar-height);
  235. }
  236. }
  237. /* Lists in .page__content */
  238. @media (orientation: landscape) {
  239. /* Only patching lists just under .page__content */
  240. html[onsflag-iphonex-landscape] .page__content > .list:not(.list--inset) {
  241. margin-left: calc(- var(--iphonex-safe-area-inset-left-landscape));
  242. margin-right: calc(- var(--iphonex-safe-area-inset-right-landscape));
  243. }
  244. /* For left safe area */
  245. html[onsflag-iphonex-landscape] .page__content > .list:not(.list--inset) > .list-header {
  246. padding-left: calc(var(--iphonex-safe-area-inset-left-landscape) + 15px);
  247. }
  248. html[onsflag-iphonex-landscape] .page__content > .list:not(.list--inset) > .list-item {
  249. /* margin-left is not suitable for iPhone X patch. Using padding-left here. */
  250. padding-left: calc(var(--iphonex-safe-area-inset-left-landscape) + 14px);
  251. }
  252. /* For right safe area */
  253. html[onsflag-iphonex-landscape] .page__content > .list:not(.list--inset) > .list-item--chevron:before {
  254. right: calc(var(--iphonex-safe-area-inset-right-landscape) + 16px);
  255. }
  256. html[onsflag-iphonex-landscape] .page__content > .list:not(.list--inset) > .list-item > .list-item__center:last-child {
  257. padding-right: calc(var(--iphonex-safe-area-inset-right-landscape) + 6px);
  258. }
  259. html[onsflag-iphonex-landscape] .page__content > .list:not(.list--inset) > .list-item > .list-item__right {
  260. padding-right: calc(var(--iphonex-safe-area-inset-right-landscape) + 12px);
  261. }
  262. html[onsflag-iphonex-landscape] .page__content > .list:not(.list--inset) > .list-item > .list-item--chevron__right {
  263. padding-right: calc(var(--iphonex-safe-area-inset-right-landscape) + 30px);
  264. }
  265. }
  266. /* Lists in .page__content in dialogs and modals */
  267. @media (orientation: landscape) {
  268. /* Only patching lists just under .page__content */
  269. html[onsflag-iphonex-landscape] .dialog .page__content > .list:not(.list--inset) {
  270. margin-left: 0;
  271. margin-right: 0;
  272. }
  273. /* For left safe area */
  274. html[onsflag-iphonex-landscape] .dialog .page__content > .list:not(.list--inset) > .list-header {
  275. padding-left: 15px;
  276. }
  277. html[onsflag-iphonex-landscape] .dialog .page__content > .list:not(.list--inset) > .list-item {
  278. padding-left: 14px;
  279. }
  280. /* For right safe area */
  281. html[onsflag-iphonex-landscape] .dialog .page__content > .list:not(.list--inset) > .list-item--chevron:before {
  282. right: 16px;
  283. }
  284. html[onsflag-iphonex-landscape] .dialog .page__content > .list:not(.list--inset) > .list-item > .list-item__center:last-child {
  285. padding-right: 6px;
  286. }
  287. html[onsflag-iphonex-landscape] .dialog .page__content > .list:not(.list--inset) > .list-item > .list-item__right {
  288. padding-right: 12px;
  289. }
  290. html[onsflag-iphonex-landscape] .dialog .page__content > .list:not(.list--inset) > .list-item > .list-item--chevron__right {
  291. padding-right: 30px;
  292. }
  293. }