style.css 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /*
  2. Theme Name: Ibis
  3. Theme URI: https://github.com/Automattic/themes/
  4. Author: Automattic
  5. Author URI: https://automattic.com/
  6. Description: A long-legged theme that inhabits wetlands, forests and plains.
  7. Requires at least: 4.9.6
  8. Version: 1.0
  9. License: GNU General Public License v2 or later
  10. License URI: LICENSE
  11. Template: seedlet
  12. Text Domain: ibis
  13. Tags:
  14. Ibis WordPress Theme, (C) 2020 Automattic, Inc.
  15. Ibis is distributed under the terms of the GNU GPL.
  16. This program is free software: you can redistribute it and/or modify
  17. it under the terms of the GNU General Public License as published by
  18. the Free Software Foundation, either version 2 of the License, or
  19. (at your option) any later version.
  20. This program is distributed in the hope that it will be useful,
  21. but WITHOUT ANY WARRANTY; without even the implied warranty of
  22. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23. GNU General Public License for more details.
  24. */
  25. /* Override Seedlet variables.
  26. * When possible, override with values from experimental-theme.json.
  27. * Doubling up on the :root selector is weird, but it just ensures these have higher specificity than everything else)
  28. * and that just makes doubling up on the :root selector really cool.
  29. */
  30. :root:root {
  31. /* Font Family */
  32. --global--font-primary: var(--font-headings, Lora, serif);
  33. --global--font-secondary: var(--font-base, Lora, sans-serif);
  34. --global--font-code: monospace, monospace;
  35. --global--font-ui: var(--font-base, var(--global--font-secondary));
  36. /* Font Size */
  37. --global--font-size-xs: var(--wp--preset--font-size--tiny);
  38. --global--font-size-sm: var(--wp--preset--font-size--small);
  39. --global--font-size-md: var(--wp--preset--font-size--medium);
  40. --global--font-size-lg: var(--wp--preset--font-size--large);
  41. --global--font-size-xl: var(--wp--preset--font-size--extra-large);
  42. --global--font-size-xxl: var(--wp--preset--font-size--huge);
  43. --global--font-size-xxxl: var(--wp--preset--font-size--gigantic);
  44. --heading--font-weight: 600;
  45. --heading--font-weight-strong: 700;
  46. /* Colors */
  47. --global--color-background: var(--wp--preset--color--background);
  48. --global--color-foreground: var(--wp--preset--color--foreground);
  49. --global--color-primary: var(--wp--preset--color--primary);
  50. --global--color-secondary: var(--wp--preset--color--secondary);
  51. --global--color-tertiary: var(--wp--preset--color--tertiary);
  52. /* Colors */
  53. --button--padding-vertical: calc(.66 * var(--global--spacing-horizontal) - var(--button--border-width));
  54. --button--padding-horizontal: var(--global--spacing-horizontal);
  55. }
  56. /**
  57. * Override Seedlet Root Media Query Variables
  58. * Doubling up on the :root selector is weird, but it just ensures these have higher specificity than everything else)
  59. * and that just makes doubling up on the :root selector really cool.
  60. */
  61. @media only screen and (min-width: 482px) {
  62. :root:root {
  63. --responsive--aligndefault-width: calc(482px - var(--responsive--spacing-horizontal));
  64. --responsive--alignwide-width: calc(482px - var(--responsive--spacing-horizontal));
  65. --responsive--alignright-margin: calc( 0.5 * (100vw - var(--responsive--aligndefault-width)));
  66. --responsive--alignleft-margin: calc( 0.5 * (100vw - var(--responsive--aligndefault-width)));
  67. }
  68. }
  69. @media only screen and (min-width: 592px) {
  70. :root:root {
  71. --responsive--aligndefault-width: calc(482px - var(--responsive--spacing-horizontal));
  72. --responsive--alignwide-width: calc(592px - var(--responsive--spacing-horizontal));
  73. --responsive--alignright-margin: calc( 0.5 * (100vw - var(--responsive--aligndefault-width)));
  74. --responsive--alignleft-margin: calc( 0.5 * (100vw - var(--responsive--aligndefault-width)));
  75. }
  76. }
  77. @media only screen and (min-width: 652px) {
  78. :root:root {
  79. --responsive--aligndefault-width: calc(592px - var(--responsive--spacing-horizontal));
  80. --responsive--alignwide-width: calc(652px - var(--responsive--spacing-horizontal));
  81. --responsive--alignright-margin: calc( 0.5 * (100vw - var(--responsive--aligndefault-width)));
  82. --responsive--alignleft-margin: calc( 0.5 * (100vw - var(--responsive--aligndefault-width)));
  83. }
  84. }
  85. @media only screen and (min-width: 822px) {
  86. :root:root {
  87. --responsive--aligndefault-width: calc(652px - var(--responsive--spacing-horizontal));
  88. --responsive--alignwide-width: calc(822px - var(--responsive--spacing-horizontal));
  89. --responsive--alignright-margin: calc( 0.5 * (100vw - var(--responsive--aligndefault-width)));
  90. --responsive--alignleft-margin: calc( 0.5 * (100vw - var(--responsive--aligndefault-width)));
  91. }
  92. }
  93. @media only screen and (min-width: 1024px) {
  94. :root:root {
  95. --responsive--aligndefault-width: calc(750px - var(--responsive--spacing-horizontal));
  96. --responsive--alignwide-width: calc(990px - var(--responsive--spacing-horizontal));
  97. --responsive--alignright-margin: calc( 0.5 * (100vw - var(--responsive--aligndefault-width)));
  98. --responsive--alignleft-margin: calc( 0.5 * (100vw - var(--responsive--aligndefault-width)));
  99. }
  100. }
  101. /* Make sure full-width items in entry content show up as full-width. */
  102. .wp-block-group.site-content .wp-block-group__inner-container .entry-content {
  103. max-width: calc(100% + (2 * var(--global--spacing-horizontal)));
  104. width: calc(100% + (2 * var(--global--spacing-horizontal)));
  105. margin-left: calc(-1 * var(--global--spacing-horizontal));
  106. margin-right: auto;
  107. }