"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,a,i){void 0===i&&(i=a);var r=Object.getOwnPropertyDescriptor(t,a);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,i,r)}:function(e,t,a,i){void 0===i&&(i=a),e[i]=t[a]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&__createBinding(t,e,a);return __setModuleDefault(t,e),t};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CssFixes=exports.getMarginFixesByName=exports.RedocWrap=void 0;const theme_1=require("@redocly/theme"),styled_components_1=__importStar(require("styled-components")),common_1=require("../common");exports.RedocWrap=styled_components_1.default.div`
  display: flex;
  position: relative;
  text-align: left;
  background-color: var(--bg-color);
  tap-highlight-color: rgba(0, 0, 0, 0);
  text-size-adjust: 100%;
  text-rendering: var(--text-rendering, auto) !important;

  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  font-weight: var(--font-weight-regular);
  color: var(--text-color-primary);
  -webkit-font-text-smoothing: var(--text-smoothing);

  * {
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  }
`;const getMarginFixesByName=e=>styled_components_1.css`
  margin: 0 max(calc((100% - var(--panel-samples-width) - var(${e})) / 2), 0);
`;exports.getMarginFixesByName=getMarginFixesByName,exports.CssFixes=styled_components_1.createGlobalStyle`
  ${common_1.SamplesPanel} {
    ${({layout:e})=>{if(e===theme_1.LayoutVariant.STACKED)return styled_components_1.css`
          width: 100%;
          padding-left: var(--panel-gap-horizontal);
        `}}
  }

  ${common_1.SamplesMiddlePanel} {
    ${({layout:e})=>e===theme_1.LayoutVariant.THREE_PANEL?styled_components_1.css`
          margin: 0;
          @media screen and (min-width: ${theme_1.breakpoints.small}) {
            ${(0,exports.getMarginFixesByName)("--layout-panel-schemas-small-max-width")};
          }
          @media screen and (min-width: ${theme_1.breakpoints.medium}) {
            max-width: var(--layout-panel-schemas-medium-max-width);
            ${(0,exports.getMarginFixesByName)("--layout-panel-schemas-medium-max-width")};
          }
          @media screen and (min-width: ${theme_1.breakpoints.large}) {
            max-width: var(--layout-panel-schemas-large-max-width);
            ${(0,exports.getMarginFixesByName)("--layout-panel-schemas-large-max-width")};
          }
        `:e===theme_1.LayoutVariant.STACKED?styled_components_1.css`
          width: 100%;
          padding-right: var(--panel-gap-horizontal);
        `:void 0};
  }
`;
//# sourceMappingURL=styled.js.map