"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4837],{3905:function(e,t,r){r.d(t,{Zo:function(){return d},kt:function(){return p}});var n=r(7294);function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t){if(null==e)return{};var r,n,s=function(e,t){if(null==e)return{};var r,n,s={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(s[r]=e[r]);return s}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}var i=n.createContext({}),c=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},d=function(e){var t=c(e.components);return n.createElement(i.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},u=n.forwardRef((function(e,t){var r=e.components,s=e.mdxType,a=e.originalType,i=e.parentName,d=o(e,["components","mdxType","originalType","parentName"]),u=c(r),p=s,h=u["".concat(i,".").concat(p)]||u[p]||m[p]||a;return r?n.createElement(h,l(l({ref:t},d),{},{components:r})):n.createElement(h,l({ref:t},d))}));function p(e,t){var r=arguments,s=t&&t.mdxType;if("string"==typeof e||s){var a=r.length,l=new Array(a);l[0]=u;var o={};for(var i in t)hasOwnProperty.call(t,i)&&(o[i]=t[i]);o.originalType=e,o.mdxType="string"==typeof e?e:s,l[1]=o;for(var c=2;c<a;c++)l[c]=r[c];return n.createElement.apply(null,l)}return n.createElement.apply(null,r)}u.displayName="MDXCreateElement"},1942:function(e,t,r){r.d(t,{Z:function(){return s}});var n=r(7294);function s(e){var t=e.color,r=e.title,s=e.inline,a=e.style,l=e.className;return n.createElement("div",{className:"docus-color-indicator flex-center-y "+(s?"inline":"")},n.createElement("div",{className:"docus-color"+(l?" "+l:""),style:Object.assign({backgroundColor:t},a)}),n.createElement("code",null,r))}},2695:function(e,t,r){r.d(t,{Z:function(){return o}});var n=r(7462),s=r(3366),a=r(7294),l=["isBad","isGood","children","disableFullscreen","limitWidth"];function o(e){var t=e.isBad,r=e.isGood,o=e.children,i=e.disableFullscreen,c=e.limitWidth,d=(0,s.Z)(e,l),m=(0,a.useState)(!1),u=m[0],p=m[1];return a.createElement("div",{className:"preview-box-wrapper",style:c?{width:c,display:"table",margin:"0 auto"}:{}},!i&&a.createElement("button",{"aria-label":u?"Minimize the example":"Fullscreen the example",className:"preview-box-fullscreen-toggle",onClick:function(e){var t=e.target.closest(".preview-box-wrapper");u?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen():t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen&&t.msRequestFullscreen(),p(!u)}},u?a.createElement("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",viewBox:"0 0 24 24"},a.createElement("path",{d:"M19.707 18.293a1 1 0 01-1.414 1.414L16 17.414V18a1 1 0 01-2 0v-3a1 1 0 011-1h3a1 1 0 010 2h-.586zM9 14H6a1 1 0 000 2h.586l-2.293 2.293a1 1 0 001.414 1.414L8 17.414V18a1 1 0 002 0v-3a1 1 0 00-1-1zm0-9a1 1 0 00-1 1v.586L5.707 4.293a1 1 0 00-1.414 1.414L6.586 8H6a1 1 0 000 2h3a1 1 0 001-1V6a1 1 0 00-1-1zm6 5h3a1 1 0 000-2h-.586l2.293-2.293a1 1 0 00-1.414-1.414L16 6.586V6a1 1 0 00-2 0v3a1 1 0 001 1z"})):a.createElement("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",viewBox:"26 26 48 48"},a.createElement("path",{d:"M54.347 57.882A8.96 8.96 0 0150 59a8.96 8.96 0 01-4.347-1.118L40.736 62.8c-.38.38-.257.701.29.701h.98A2.503 2.503 0 0144.5 66c0 1.39-1.122 2.5-2.507 2.5h-7.986a2.505 2.505 0 01-2.507-2.507v-7.986A2.502 2.502 0 0134 55.5a2.49 2.49 0 012.5 2.493v.98c0 .547.314.678.7.29l4.918-4.916A8.96 8.96 0 0141 50a8.96 8.96 0 011.118-4.347L37.2 40.736c-.38-.38-.701-.257-.701.29v.98A2.503 2.503 0 0134 44.5c-1.39 0-2.5-1.122-2.5-2.507v-7.986a2.505 2.505 0 012.507-2.507h7.986A2.502 2.502 0 0144.5 34a2.49 2.49 0 01-2.493 2.5h-.98c-.547 0-.678.314-.29.7l4.916 4.918A8.96 8.96 0 0150 41a8.96 8.96 0 014.347 1.118l4.917-4.917c.38-.38.257-.701-.29-.701h-.98A2.503 2.503 0 0155.5 34c0-1.39 1.122-2.5 2.507-2.5h7.986a2.505 2.505 0 012.507 2.507v7.986A2.502 2.502 0 0166 44.5a2.49 2.49 0 01-2.5-2.493v-.98c0-.547-.314-.678-.7-.29l-4.918 4.916A8.96 8.96 0 0159 50a8.96 8.96 0 01-1.118 4.347l4.917 4.917c.38.38.701.257.701-.29v-.98A2.503 2.503 0 0166 55.5c1.39 0 2.5 1.122 2.5 2.507v7.986a2.505 2.505 0 01-2.507 2.507h-7.986A2.502 2.502 0 0155.5 66a2.49 2.49 0 012.493-2.5h.98c.547 0 .678-.314.29-.7l-4.916-4.918zM50 54a4 4 0 100-8 4 4 0 000 8z"}))),t&&a.createElement("div",{className:"is-bad-example style-red"},a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",viewBox:"2 2 12 12"},a.createElement("path",{d:"M3.3 12.7c.2.2.4.3.7.3s.5-.1.7-.3L8 9.4l3.3 3.3c.2.2.5.3.7.3s.5-.1.7-.3c.4-.4.4-1 0-1.4L9.4 8l3.3-3.3c.4-.4.4-1 0-1.4s-1-.4-1.4 0L8 6.6 4.7 3.3c-.4-.4-1-.4-1.4 0s-.4 1 0 1.4L6.6 8l-3.3 3.3c-.4.4-.4 1 0 1.4z"}))),r&&a.createElement("div",{className:"is-good-example style-green"},a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",viewBox:"0 0 18 18"},a.createElement("path",{d:"M5.056 15.04a1.5 1.5 0 002.217-.119l10.17-12.476A1.5 1.5 0 0015.118.55L6.007 11.758l-3.453-3.41a1.5 1.5 0 10-2.109 2.133l4.611 4.56"}))),a.createElement("iframe",(0,n.Z)({width:"100%",className:"docus-preview-box"+(u?" is-fullscreen":""),srcDoc:o},d)))}},6594:function(e,t,r){r.r(t),r.d(t,{frontMatter:function(){return i},contentTitle:function(){return c},metadata:function(){return d},toc:function(){return m},default:function(){return p}});var n=r(7462),s=r(3366),a=(r(7294),r(3905)),l=(r(2695),r(1942)),o=["components"],i={title:"Roundness setters",sidebar_position:7},c=void 0,d={unversionedId:"helpers/roundness-setters",id:"helpers/roundness-setters",isDocsHomePage:!1,title:"Roundness setters",description:"There are classes to make element edges sharp, round, circle...",source:"@site/docs/helpers/roundness-setters.mdx",sourceDirName:"helpers",slug:"/helpers/roundness-setters",permalink:"/docs/helpers/roundness-setters",editUrl:"https://github.com/amir2mi/flatifycss/tree/master/website/docs/helpers/roundness-setters.mdx",tags:[],version:"current",sidebarPosition:7,frontMatter:{title:"Roundness setters",sidebar_position:7},sidebar:"tutorialSidebar",previous:{title:"Width & height setters",permalink:"/docs/helpers/width-and-height-setters"},next:{title:"Text truncation",permalink:"/docs/helpers/text-truncation"}},m=[],u={toc:m};function p(e){var t=e.components,r=(0,s.Z)(e,o);return(0,a.kt)("wrapper",(0,n.Z)({},u,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("p",null,"There are classes to make element edges sharp, round, circle..."),(0,a.kt)(l.Z,{style:{width:"4em",height:"4em"},className:"edge-sharp",color:"#1cb0f6",title:".edge-sharp",mdxType:"ColorIndicator"}),(0,a.kt)(l.Z,{style:{width:"4em",height:"4em"},className:"edge-round-xs",color:"#1cb0f6",title:".edge-round-xs",mdxType:"ColorIndicator"}),(0,a.kt)(l.Z,{style:{width:"4em",height:"4em"},className:"edge-round-sm",color:"#1cb0f6",title:".edge-round-sm",mdxType:"ColorIndicator"}),(0,a.kt)(l.Z,{style:{width:"4em",height:"4em"},className:"edge-round-md",color:"#1cb0f6",title:".edge-round-md",mdxType:"ColorIndicator"}),(0,a.kt)(l.Z,{style:{width:"4em",height:"4em"},className:"edge-round-lg",color:"#1cb0f6",title:".edge-round-lg",mdxType:"ColorIndicator"}),(0,a.kt)(l.Z,{style:{width:"4em",height:"4em"},className:"edge-triangle",color:"#1cb0f6",title:".edge-triangle",mdxType:"ColorIndicator"}),(0,a.kt)(l.Z,{style:{width:"4em",height:"4em"},className:"edge-circle",color:"#1cb0f6",title:".edge-circle",mdxType:"ColorIndicator"}),(0,a.kt)(l.Z,{style:{width:"6em",height:"4em"},className:"edge-circle",color:"#1cb0f6",title:".edge-circle",mdxType:"ColorIndicator"}),(0,a.kt)(l.Z,{style:{width:"6em",height:"4em"},className:"edge-oval",color:"#1cb0f6",title:".edge-oval",mdxType:"ColorIndicator"}),(0,a.kt)("br",null),(0,a.kt)("div",{className:"admonition admonition-info alert alert--info"},(0,a.kt)("div",{parentName:"div",className:"admonition-heading"},(0,a.kt)("h5",{parentName:"div"},(0,a.kt)("span",{parentName:"h5",className:"admonition-icon"},(0,a.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16"},(0,a.kt)("path",{parentName:"svg",fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"}))),"Custom helper classes")),(0,a.kt)("div",{parentName:"div",className:"admonition-content"},(0,a.kt)("p",{parentName:"div"},"Note that these classes can be customized in ",(0,a.kt)("inlineCode",{parentName:"p"},"_config.scss")," file (excepts sharp, circle and oval),\nthere is a variable called ",(0,a.kt)("inlineCode",{parentName:"p"},"$BORDER_RADIUS_LIST"),",\nThese classes are generated from this list.\nSo it is possible to create customized helper classes for roundness simply!"))),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-scss",metastring:'{12-14} title="_config.scss"',"{12-14}":!0,title:'"_config.scss"'},"// This list will be converted to helper classes.\n// .edge-[]\n$BORDER_RADIUS_LIST: (\n  sharp: 0em,\n  round-xs: 0.32em,\n  round-sm: 0.5em,\n  round-md: 0.75em,\n  round-lg: 1em,\n  circle: 50em,\n  oval: 50%,\n  triangle: 100% 50% 50% 100% / 75% 69% 69% 75%,\n  round-pillow: 88% 12% 89% 11% / 12% 89% 11% 88%,\n  round-rice: 100% 0% 100% 0% / 100% 0% 100% 0%,\n  round-flower: 1em 0.25em 1em 0.25em,\n);\n")))}p.isMDXComponent=!0}}]);