{
    "componentChunkName": "component---src-templates-learn-js",
    "path": "/learn/css/anatomy-of-css",
    "result": {"data":{"mdx":{"frontmatter":{"title":"Anatomy of CSS","date":"March 2, 2022","tags":["css"],"description":"Anatomy of CSS  "},"body":"var _excluded = [\"components\"];\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsxRuntime classic */\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"title\": \"Anatomy of CSS\",\n  \"date\": \"2022-03-02T23:46:37.121Z\",\n  \"description\": \"Anatomy of CSS  \",\n  \"tags\": [\"css\"],\n  \"type\": \"tuts\"\n};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, _excluded);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"h4\", null, \"Rule Syntax\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-css\",\n    \"metastring\": \"show=false\",\n    \"show\": \"false\"\n  }, \"selector {\\n  property-name: property-value;\\n}\\n\")), mdx(\"p\", null, \"Selector is a Html component which you want to apply styles to it. property and its value is separated by colon ( : ) and each property in the declaration block is delimited by ( ; ) semicolon\"), mdx(\"p\", null, \"property-value can be single value or multiple values separated by space .\"), mdx(\"p\", null, \"selectors can be anything like tags( h1 - h6, p, span) or Classes (.mainHeading, .classTwo) or Id (#main, #about) , Universal selector ( \", \"*\", \" ) , or even attributes.\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-css\",\n    \"metastring\": \"show=false\",\n    \"show\": \"false\"\n  }, \"h5 {\\n  color: red;\\n}\\nh5 {\\n  color: blue;\\n}\\n\")), mdx(\"p\", null, \"This is called as \", mdx(\"strong\", null, \"Property Conflict \"), \". Multiple declaration of same property for same selector. Css parser parses and applies the style\\nwhich is last defined .In this case , color blue is applied.\"), mdx(\"h3\", null, \"At-Rules\"), mdx(\"p\", null, \"At-Rules are css statements that instructs css how to behave . Begins with '@'\"), mdx(\"strong\", null, \"@Charset \"), \" - defines the character set used by stylesheets\", mdx(\"p\", null, mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"@import\"), \" - used to imoprt an external style sheet into another.\"), mdx(\"p\", null, mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"@font-face\"), \" - enable the use of downloadble web fonts\"), mdx(\"p\", null, mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"@keyframes\"), \" - specifies the values for the animate properties at various points during the animation.\"), mdx(\"p\", null, mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"@media\"), \" - used to apply css styles to elements at different screens and windows sizes.\"), mdx(\"p\", null, mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"@support\"), \" - used to know the support capability of the browser . If it supports then its declaration will be executed.\"), mdx(\"p\", null, \"and there are many more \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"@namespace\"), \" , \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"@page\"), \" , \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"@counter-style\")));\n}\n;\nMDXContent.isMDXComponent = true;","slug":"css/anatomy-of-css"},"allMdx":{"edges":[{"node":{"slug":"css/anatomy-of-css","id":"7684434d-5c98-50dd-a6a0-b32b36aba480"}},{"node":{"slug":"css/how-css-works","id":"cf79d413-a0bf-515f-b48d-5c9b937d568a"}},{"node":{"slug":"css/including-css","id":"968cabd3-e50c-5651-a747-36c992134856"}},{"node":{"slug":"css/intro","id":"f0af023e-c1d2-5c2b-9289-f73b5228327b"}}]}},"pageContext":{"id":"7684434d-5c98-50dd-a6a0-b32b36aba480","filePath":"/css/","previousPostId":"js/roadmap","nextPostId":"css/how-css-works"}},
    "staticQueryHashes": ["2033233798"]}