HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<button type="button" id="large" class="btn btn-default btn-sm" data-mode="large">Large</button>
<button type="button" id="small" class="btn btn-default btn-sm" data-mode="small">Small</button>
<div class="header">
<div class="logo">
<!-- 15kb SVG -->
<svg viewBox="0 0 267.277 87.502">
<g id="Mark">
<path fill="#FFFFFF" d="M100.744,56.286c0,8.211,1.966,10.523,7.517,10.523v1.967H84.438v-1.967c4.626,0,7.517-1.504,7.517-10.293
V14.999c0-8.096-1.966-10.524-7.517-10.524V2.509h24.17c18.272,0,25.674,9.714,25.674,18.851c0,10.987-8.327,17.116-23.361,17.116
c-2.891,0-5.32-0.116-10.177-0.694V56.286z M100.744,34.775c3.007,1.041,4.741,1.156,8.211,1.156c9.83,0,16.075-5.32,16.075-14.34
c0-7.055-3.932-16.538-16.075-16.538h-8.211V34.775z"/>
<path fill="#FFFFFF" d="M135.785,43.795c-0.23,18.389,10.756,23.014,16.307,23.014c5.668,0,8.559-1.965,14.457-8.559v3.008
c-4.973,6.361-9.715,8.789-16.885,8.789c-12.838,0-22.089-8.904-22.089-21.279c0-12.374,9.021-22.089,20.585-22.089
c9.484,0,18.273,7.633,17.695,17.116H135.785z M158.105,41.829c0.348-9.021-5.781-12.721-10.986-12.721
c-6.822,0-10.871,5.089-11.334,12.721H158.105z"/>
<path fill="#FFFFFF" d="M210.261,59.87c0,5.32,1.158,6.939,6.939,6.939v1.967h-21.857v-1.967c5.551,0,7.055-1.271,7.055-5.088
V40.326c0-6.592-4.742-9.367-9.137-9.367c-4.047,0-7.633,2.544-11.68,7.979v20.008c0,6.244,0.809,7.863,6.939,7.863v1.967h-21.627
v-1.967c5.436,0,6.824-0.463,6.824-7.863V35.931c0-4.973-1.273-6.014-6.824-6.014v-1.966l12.721-1.272h1.967v8.211
c4.857-5.551,9.6-8.211,14.803-8.211c6.824,0,13.877,4.857,13.877,14.688V59.87z"/>
<path fill="#FFFFFF" d="M260.337,59.87c0,5.32,1.156,6.939,6.939,6.939v1.967h-21.857v-1.967c5.551,0,7.053-1.271,7.053-5.088
V40.326c0-6.592-4.74-9.367-9.135-9.367c-4.049,0-7.633,2.544-11.682,7.979v20.008c0,6.244,0.811,7.863,6.939,7.863v1.967h-21.627
v-1.967c5.436,0,6.824-0.463,6.824-7.863V35.931c0-4.973-1.271-6.014-6.824-6.014v-1.966l12.723-1.272h1.965v8.211
c4.857-5.551,9.6-8.211,14.803-8.211c6.824,0,13.879,4.857,13.879,14.688V59.87z"/>
</g>
<g id="Logotype">
<path fill="#FFFFFF" d="M86.788,80.536c0,1.836,0.499,3.24,2.454,3.24c1.797,0,2.742-1.207,2.742-3.307v-3.646
c0-0.275-0.053-0.498-0.079-0.709c-0.065-0.473-0.512-0.656-1.128-0.721v-0.342h3.096v0.342c-0.63,0.064-1.063,0.248-1.128,0.721
c-0.026,0.211-0.079,0.434-0.079,0.709v3.699c0,2.82-1.797,3.871-3.49,3.871c-2.795,0-3.661-1.418-3.661-3.791v-3.91
c0-1.221,0.053-1.154-1.128-1.299v-0.342h3.529v0.342c-1.181,0.145-1.128,0.078-1.128,1.299V80.536z"/>
<path fill="#FFFFFF" d="M101.3,84.235c-1.609-1.902-3.28-3.896-4.93-5.84v4.475c0,0.211,0.041,0.383,0.061,0.545
c0.051,0.365,0.395,0.508,1.063,0.557v0.264h-2.48v-0.264c0.486-0.049,0.82-0.191,0.871-0.557c0.021-0.162,0.061-0.334,0.061-0.545
V78.1c-0.284-0.363-0.597-0.688-1.174-0.688v-0.264h1.842c1.508,1.832,3.078,3.695,4.586,5.527h0.02v-4.16
c0-0.213-0.041-0.385-0.061-0.547c-0.051-0.365-0.395-0.506-1.063-0.557v-0.264h2.48v0.264c-0.476,0.051-0.82,0.191-0.871,0.557
c-0.021,0.162-0.061,0.334-0.061,0.547v5.719H101.3z"/>
<path fill="#FFFFFF" d="M106.494,82.969c0,0.941-0.041,0.891,0.871,1.002v0.264h-2.723v-0.264c0.911-0.111,0.871-0.061,0.871-1.002
v-4.555c0-0.941,0.041-0.891-0.871-1.002v-0.264h2.723v0.264c-0.911,0.111-0.871,0.061-0.871,1.002V82.969z"/>
<path fill="#FFFFFF" d="M111.677,77.413c-0.557,0-0.962,0.162-0.628,1.133c0.395,1.195,0.982,2.936,1.509,4.475
c0.647-1.549,1.265-3.107,1.893-4.656c0.253-0.637-0.01-0.951-0.699-0.951v-0.264h2.187v0.264c-0.293,0-0.627,0.102-0.84,0.607
c-0.85,2.074-1.71,4.141-2.561,6.215h-0.516c-0.618-1.75-1.306-3.705-1.923-5.426c-0.375-1.082-0.688-1.396-1.174-1.396v-0.264
h2.753V77.413z"/>
<path fill="#FFFFFF" d="M117.498,83.971c0.911-0.111,0.871-0.061,0.871-1.002v-4.555c0-0.941,0.041-0.891-0.871-1.002v-0.264h4.525
v1.631h-0.263c-0.101-0.75-0.304-1.307-1.032-1.307h-1.377v2.895h0.851c0.638,0,0.911-0.252,0.931-0.881h0.263v2.156h-0.263
c-0.021-0.596-0.253-0.951-0.931-0.951h-0.851v2.289c0,0.859,0.395,0.93,1.306,0.93c1.468,0,1.397-0.414,1.862-1.498h0.263
l-0.304,1.822h-4.98V83.971z"/>
<path fill="#FFFFFF" d="M124.331,77.149h2.946c1.022,0,2.045,0.537,2.045,1.721c0,1.043-0.638,1.762-1.417,2.066l0.992,1.508
c0.506,0.738,1.073,1.447,1.427,1.66v0.131h-1.042c-0.598,0-0.922-1.104-2.146-3.139h-0.952v1.873c0,0.941-0.041,0.891,0.871,1.002
v0.264h-2.723v-0.264c0.911-0.111,0.871-0.061,0.871-1.002v-4.555c0-0.941,0.041-0.891-0.871-1.002V77.149z M126.183,80.774h0.84
c0.881,0,1.286-0.668,1.286-1.812c0-1.104-0.608-1.488-1.347-1.488h-0.78V80.774z"/>
<path fill="#FFFFFF" d="M135.335,78.657c-0.082-0.707-0.467-1.275-1.276-1.275c-0.588,0-1.114,0.305-1.114,1.053
c0,0.709,0.709,1.135,1.722,1.895c1.072,0.799,1.416,1.314,1.416,2.156c0,1.203-1.234,1.871-2.45,1.871
c-0.647,0-1.204-0.121-1.73-0.322c-0.041-0.021-0.071-0.062-0.071-0.143v-1.457h0.264c0.111,1.123,0.85,1.568,1.63,1.568
c0.719,0,1.305-0.547,1.305-1.285c0-0.658-0.354-1.195-1.873-2.197c-0.547-0.365-1.225-0.76-1.225-1.863
c0-0.91,1.012-1.629,2.176-1.629c0.435,0,1.013,0.051,1.417,0.191c0.061,0.021,0.07,0.061,0.07,0.111v1.326H135.335z"/>
<path fill="#FFFFFF" d="M139.759,82.969c0,0.941-0.041,0.891,0.869,1.002v0.264h-2.723v-0.264c0.912-0.111,0.871-0.061,0.871-1.002
v-4.555c0-0.941,0.041-0.891-0.871-1.002v-0.264h2.723v0.264c-0.91,0.111-0.869,0.061-0.869,1.002V82.969z"/>
<path fill="#FFFFFF" d="M145.63,82.969c0,0.941-0.041,0.891,0.871,1.002v0.264h-2.725v-0.264c0.912-0.111,0.871-0.061,0.871-1.002
v-5.496h-0.91c-0.881,0-1.084,0.557-1.418,1.225h-0.254l0.273-1.549h5.6l0.273,1.549h-0.254c-0.334-0.668-0.537-1.225-1.418-1.225
h-0.91V82.969z"/>
<path fill="#FFFFFF" d="M151.158,83.971c0.91-0.111,0.871-0.061,0.871-1.002v-1.559l-1.561-3.088
c-0.334-0.658-0.617-0.91-1.082-0.91v-0.264h2.58v0.264c-0.768,0-0.697,0.385-0.445,0.91l1.227,2.541l1.396-2.541
c0.344-0.617,0.02-0.91-0.578-0.91v-0.264h2.086v0.264c-0.283,0-0.557,0.131-0.83,0.617l-1.689,3.066
c-0.102,0.203-0.123,0.486-0.123,0.74v1.133c0,0.941-0.039,0.891,0.871,1.002v0.264h-2.723V83.971z"/>
<path fill="#FFFFFF" d="M160.261,81.809c0-1.719,1.482-4.291,3.674-4.291c1.746,0,2.125,1.182,2.125,2.361
c0,1.443-1.154,4.514-3.66,4.514C160.72,84.393,160.261,83.042,160.261,81.809z M164.853,79.25c0-1.365-0.826-1.418-1.035-1.418
c-1.418,0-2.35,2.545-2.35,4.252c0,0.682,0.119,1.914,1.09,1.914C164.054,83.999,164.853,81.532,164.853,79.25z"/>
<path fill="#FFFFFF" d="M172.66,77.952l-0.314,0.275h-1.719c-0.643,3.121-1.693,7.281-2.439,9.275h-0.592l1.877-9.275h-1.246
l0.117-0.551h1.234c0.695-2.795,3.004-3.084,3.555-3.084c0.301,0,0.932,0.053,1.129,0.236l-0.158,0.865l-0.328,0.158
c-0.184-0.354-0.604-0.762-1.154-0.762c-0.787,0-1.377,0.539-1.693,1.955l-0.143,0.631h1.928L172.66,77.952z"/>
<path fill="#FFFFFF" d="M180.664,82.596c0,1.219-0.053,1.154,1.127,1.299v0.34h-3.529v-0.34c1.182-0.145,1.129-0.08,1.129-1.299
v-5.904c0-1.221,0.053-1.154-1.129-1.299v-0.342h3.438c2.178,0,3.254,0.865,3.254,2.441c0,1.889-1.705,2.912-3.713,2.793v-0.262
c1.641,0.025,2.4-0.957,2.4-2.4c0-1.471-0.707-2.152-2.178-2.152h-0.799V82.596z"/>
<path fill="#FFFFFF" d="M186.761,83.971c0.912-0.111,0.871-0.061,0.871-1.002v-4.555c0-0.941,0.041-0.891-0.871-1.002v-0.264h4.525
v1.631h-0.264c-0.102-0.75-0.303-1.307-1.031-1.307h-1.377v2.895h0.85c0.639,0,0.912-0.252,0.932-0.881h0.264v2.156h-0.264
c-0.02-0.596-0.254-0.951-0.932-0.951h-0.85v2.289c0,0.859,0.395,0.93,1.305,0.93c1.469,0,1.398-0.414,1.863-1.498h0.264
l-0.305,1.822h-4.98V83.971z"/>
<path fill="#FFFFFF" d="M200.083,84.235c-1.609-1.902-3.279-3.896-4.93-5.84v4.475c0,0.211,0.041,0.383,0.061,0.545
c0.051,0.365,0.395,0.508,1.062,0.557v0.264h-2.479v-0.264c0.484-0.049,0.818-0.191,0.869-0.557
c0.021-0.162,0.061-0.334,0.061-0.545V78.1c-0.283-0.363-0.596-0.688-1.174-0.688v-0.264h1.842c1.51,1.832,3.078,3.695,4.586,5.527
h0.021v-4.16c0-0.213-0.041-0.385-0.061-0.547c-0.051-0.365-0.395-0.506-1.064-0.557v-0.264h2.48v0.264
c-0.475,0.051-0.82,0.191-0.869,0.557c-0.021,0.162-0.062,0.334-0.062,0.547v5.719H200.083z"/>
<path fill="#FFFFFF" d="M209.154,84.235c-1.609-1.902-3.279-3.896-4.93-5.84v4.475c0,0.211,0.041,0.383,0.061,0.545
c0.051,0.365,0.395,0.508,1.062,0.557v0.264h-2.479v-0.264c0.484-0.049,0.818-0.191,0.869-0.557
c0.021-0.162,0.061-0.334,0.061-0.545V78.1c-0.283-0.363-0.596-0.688-1.174-0.688v-0.264h1.842c1.51,1.832,3.078,3.695,4.586,5.527
h0.021v-4.16c0-0.213-0.041-0.385-0.061-0.547c-0.051-0.365-0.395-0.506-1.064-0.557v-0.264h2.48v0.264
c-0.475,0.051-0.82,0.191-0.869,0.557c-0.021,0.162-0.062,0.334-0.062,0.547v5.719H209.154z"/>
<path fill="#FFFFFF" d="M215.744,78.657c-0.08-0.707-0.465-1.275-1.275-1.275c-0.586,0-1.113,0.305-1.113,1.053
c0,0.709,0.709,1.135,1.721,1.895c1.074,0.799,1.418,1.314,1.418,2.156c0,1.203-1.234,1.871-2.449,1.871
c-0.648,0-1.205-0.121-1.732-0.322c-0.039-0.021-0.07-0.062-0.07-0.143v-1.457h0.264c0.111,1.123,0.85,1.568,1.629,1.568
c0.719,0,1.307-0.547,1.307-1.285c0-0.658-0.354-1.195-1.873-2.197c-0.547-0.365-1.225-0.76-1.225-1.863
c0-0.91,1.012-1.629,2.176-1.629c0.436,0,1.014,0.051,1.418,0.191c0.061,0.021,0.07,0.061,0.07,0.111v1.326H215.744z"/>
<path fill="#FFFFFF" d="M219.824,83.971c0.912-0.111,0.871-0.061,0.871-1.002v-1.559l-1.559-3.088
c-0.334-0.658-0.617-0.91-1.084-0.91v-0.264h2.582v0.264c-0.77,0-0.699,0.385-0.445,0.91l1.225,2.541l1.396-2.541
c0.344-0.617,0.021-0.91-0.576-0.91v-0.264h2.086v0.264c-0.285,0-0.559,0.131-0.83,0.617l-1.691,3.066
c-0.102,0.203-0.121,0.486-0.121,0.74v1.133c0,0.941-0.041,0.891,0.869,1.002v0.264h-2.723V83.971z"/>
<path fill="#FFFFFF" d="M225.978,83.971c0.912-0.111,0.871-0.061,0.871-1.002v-4.555c0-0.941,0.041-0.891-0.871-1.002v-0.264h2.725
v0.264c-0.912,0.111-0.871,0.061-0.871,1.002v4.717c0,0.709,0.395,0.779,1.295,0.779c1.469,0,1.408-0.414,1.873-1.498h0.254
l-0.305,1.822h-4.971V83.971z"/>
<path fill="#FFFFFF" d="M234.787,77.413c-0.557,0-0.963,0.162-0.629,1.133c0.396,1.195,0.982,2.936,1.51,4.475
c0.646-1.549,1.266-3.107,1.893-4.656c0.254-0.637-0.01-0.951-0.699-0.951v-0.264h2.188v0.264c-0.293,0-0.629,0.102-0.84,0.607
c-0.852,2.074-1.711,4.141-2.562,6.215h-0.516c-0.617-1.75-1.307-3.705-1.924-5.426c-0.375-1.082-0.688-1.396-1.174-1.396v-0.264
h2.754V77.413z"/>
<path fill="#FFFFFF" d="M240.728,81.887l-0.465,1.355c-0.133,0.395,0.061,0.729,0.506,0.729v0.264h-1.842v-0.264
c0.273,0,0.566-0.172,0.729-0.506c0.436-0.891,1.619-4.201,2.459-6.438h0.568c0.688,2.035,1.721,5.152,2.064,6.053
c0.223,0.568,0.385,0.891,0.82,0.891v0.264h-2.359v-0.264c0.639,0,0.699-0.334,0.537-0.779l-0.436-1.305H240.728z M243.179,81.502
l-1.074-3.291h-0.02l-1.205,3.291H243.179z"/>
<path fill="#FFFFFF" d="M253.363,84.235c-1.609-1.902-3.281-3.896-4.93-5.84v4.475c0,0.211,0.039,0.383,0.061,0.545
c0.051,0.365,0.395,0.508,1.062,0.557v0.264h-2.48v-0.264c0.486-0.049,0.82-0.191,0.871-0.557c0.02-0.162,0.061-0.334,0.061-0.545
V78.1c-0.283-0.363-0.598-0.688-1.174-0.688v-0.264h1.842c1.508,1.832,3.078,3.695,4.586,5.527h0.02v-4.16
c0-0.213-0.039-0.385-0.061-0.547c-0.051-0.365-0.395-0.506-1.062-0.557v-0.264h2.48v0.264c-0.477,0.051-0.82,0.191-0.871,0.557
c-0.02,0.162-0.061,0.334-0.061,0.547v5.719H253.363z"/>
<path fill="#FFFFFF" d="M258.15,82.969c0,0.941-0.039,0.891,0.871,1.002v0.264h-2.723v-0.264c0.91-0.111,0.871-0.061,0.871-1.002
v-4.555c0-0.941,0.039-0.891-0.871-1.002v-0.264h2.723v0.264c-0.91,0.111-0.871,0.061-0.871,1.002V82.969z"/>
<path fill="#FFFFFF" d="M262.382,81.887l-0.467,1.355c-0.131,0.395,0.061,0.729,0.508,0.729v0.264h-1.844v-0.264
c0.273,0,0.566-0.172,0.729-0.506c0.436-0.891,1.621-4.201,2.461-6.438h0.566c0.689,2.035,1.721,5.152,2.066,6.053
c0.223,0.568,0.383,0.891,0.818,0.891v0.264h-2.357v-0.264c0.637,0,0.697-0.334,0.535-0.779l-0.434-1.305H262.382z M264.832,81.502
l-1.072-3.291h-0.021l-1.203,3.291H264.832z"/>
</g>
<g id="Shield">
<path fill="#FFFFFF" stroke="#FFFFFF" stroke-miterlimit="10" d="M0.508,0.5h76.254c0,0,0,37.46,0,38.121
c-0.516,31.073-35.337,47.407-39.718,47.256C32.488,85.721,0.404,69.741,0.5,38.46C0.502,37.896,0.508,0.5,0.508,0.5z"/>
<path fill="#FFFFFF" d="M2.347,2.527h72.624c0,0,0,35.677,0,36.306c-0.492,29.594-33.656,45.148-37.828,45.006
C32.804,83.69,2.249,68.469,2.339,38.678C2.341,38.143,2.347,2.527,2.347,2.527z"/>
<path fill="#961B1F" d="M2.34,24.591C2.445,24.695,2.344,2.533,2.344,2.533h72.571c0,0,0,11.886,0,22.059L2.34,24.591z"/>
<path fill="#243069" d="M6.406,56.883c2.792,5.867,6.243,10.592,11.087,14.611l21.131-21.365l20.341,20.863
c4.193-3.834,8.277-8.477,11.204-13.977L38.6,26.646l-32.049,30.3L6.406,56.883z"/>
<line fill="none" stroke="#243069" stroke-width="0.504" stroke-miterlimit="10" x1="2.34" y1="24.741" x2="74.911" y2="24.731"/>
<path fill="#FFFFFF" stroke="#243069" stroke-width="0.5045" stroke-miterlimit="3.8636" d="M56.731,8.014h1.975
c1.448-0.331,1.976-1.17,3.46-1.17c1.068,0,1.571,0.709,2.356,0.709c0.663,0,1.681-0.756,2.797-0.756
c1.142,0,1.706,0.686,2.455,1.004c0.663,0.284,1.533,0.269,2.454,0.269c-0.025,0.662,0,1.055,0,1.61
c0,0.567,0.761,0.343,0.761,1.265c0,0.969-0.982,0.78-0.982,1.17L71.97,15.72c0.049,0.449,0.957,0.508,0.957,1.193
c0,1.017-1.011,0.665-0.945,1.466c0.049,0.591,0,1.844,0,1.844c-1.951,0-14.498,0.115-15.112,0.091
c0.037-1.335,0.245-1.256,0.291-1.899c0.037-0.52-1.128-0.839-1.128-1.714c0-0.603,0.699-0.567,0.76-1.135v-3.593
c-0.036-0.473-1.091-0.709-1.055-1.382c0.044-0.806,0.982-0.703,0.982-1.242C56.719,9.114,56.744,8.239,56.731,8.014z"/>
<path fill="none" stroke="#243069" stroke-width="0.504" stroke-miterlimit="10" d="M58.339,8.074c0,0,0.025,8.037,0,9.928
c0,0,11.705,0.023,12.22-0.024c0-2.139-0.012-9.963-0.012-9.963"/>
<line fill="none" stroke="#243069" stroke-width="0.504" stroke-miterlimit="10" x1="64.461" y1="7.577" x2="64.461" y2="18.025"/>
<path fill="#243069" stroke="#243069" stroke-width="0.504" stroke-miterlimit="3.8636" d="M64.646,16.737
c0.515,0.023,1.461,0.371,2.38,0.65c1.189,0.36,2.452,0.108,3.386,0.295c0.294,0.059-5.766,0.106-5.766,0.106
C64.67,16.618,64.646,16.737,64.646,16.737z"/>
<g>
<ellipse fill="#243069" stroke="#243069" stroke-width="0.504" stroke-miterlimit="3.8636" cx="64.455" cy="18.285" rx="0.681" ry="0.473"/>
<path fill="#243069" stroke="#243069" stroke-width="0.504" stroke-miterlimit="3.8636" d="M64.455,18.285"/>
</g>
<path fill="#243069" stroke="#243069" stroke-width="0.504" stroke-miterlimit="3.8636" d="M64.121,16.737
c-0.515,0.023-1.461,0.371-2.38,0.65c-1.19,0.36-2.452,0.108-3.386,0.295c-0.294,0.059,5.766,0.106,5.766,0.106
C64.097,16.618,64.121,16.737,64.121,16.737z"/>
<path fill="#FFFFFF" stroke="#243069" stroke-width="0.504" stroke-miterlimit="3.8636" d="M23.906,21.274
c0.196,0.768,0.773,1.276,1.718,1.276c1.754,0,3.448-1.3,4.466-2.033c0.798-0.567,1.62-1.17,1.62-2.411l-0.147,0.473
c0,0,1.375-1.371,4.76-0.284c0.941,0.302,4.97,2.564,5.841,2.931c0.749,0.319,3.372,2.201,7.472,1.476c0,0,6.26-0.861,4.861-7.308
c-1-4.607-0.689-4.935-0.309-6.412c-0.147-0.071-3.828-0.898-3.73,4.208c-1.596,0.166-3.632,1.371-2.307,4.539
c0.54-0.804,1.264-1.655,2.258-1.655c0.625,0,1.285,0.899,1.325,1.56c0.098,1.607-1.521,2.316-3.533,1.985
c-1.021-0.167-1.96-1.298-3.366-2.315c0.246-0.118,0.47-0.946,0.47-1.277c0-0.815-0.699-1.193-1.177-1.466
c0.098-0.283,0.293-0.662,0.293-0.945c0-0.65-0.92-0.603-1.275-0.851c0.146-0.201,0.146-0.083,0.146-0.378
c0-0.946,0.147-1.466-1.767-1.418c0.16-0.934-0.037-1.537-0.687-1.797l-1.423-0.189c-0.883-0.165-0.002-0.459-0.818-1.245
c-0.727-0.702-1.924,0-1.924,0c0-0.65-0.448-1.166-1.233-1.166c-0.417,0-0.932,0.036-1.227,0.189l-0.589,0.473
c-0.736,0-0.92-0.662-1.767-0.662c-0.846,0-1.19,0.662-1.521,1.087c-0.577-0.272-0.65-0.756-1.423-0.756
c-0.454,0-0.588,0.484-0.785,0.709c-0.503,0.556-0.467,1.131-1.252,1.415l-0.292-0.514c-0.009-0.032-0.018-0.065-0.026-0.098
c-1.154,0.556-3.756,6.488-3.756,7.705c0,1.159,1.007,0.651,1.007,1.892c0,0.732-1.08,1.265-1.08,1.891
c0,0.792,0.92,1.182,1.717,1.182L23.906,21.274z"/>
<path fill="#243069" stroke="#243069" stroke-width="0.504" stroke-miterlimit="3.8636" d="M26.617,16.29
c0,0,1.276,0.491,1.276,0.756c0,0.359-0.825,0.756-1.375,1.229h-0.687c0.246-0.804,0-0.511,0-1.229
C25.832,16.507,26.401,16.29,26.617,16.29z"/>
<path fill="none" stroke="#243069" stroke-width="0.504" stroke-miterlimit="10" d="M31.28,14.114
c0.663-0.319,0.355-1.134,1.423-1.134c0.945,0,1.301,0.662,2.16,0.662c0.577,0,0.981-0.567,1.767-0.567
c0.699,0,1.62,0.946,1.473,2.08c0,0,2.454-0.804,2.355,1.844c1.963-0.662,1.767,0.958,1.963,1.749
c0.197,0.757,1.473,0.142,1.276,1.749"/>
<path fill="#FFFFFF" stroke="#243069" stroke-width="0.5045" stroke-miterlimit="3.8636" d="M5.086,8.078h1.975
c1.448-0.331,1.976-1.17,3.46-1.17c1.067,0,1.57,0.709,2.355,0.709c0.662,0,1.681-0.756,2.797-0.756
c1.141,0,1.706,0.686,2.454,1.004c0.663,0.284,1.534,0.269,2.454,0.269c-0.025,0.662,0,1.055,0,1.61c0,0.567,0.76,0.343,0.76,1.264
c0,0.969-0.981,0.78-0.981,1.17l-0.037,3.605c0.049,0.449,0.957,0.508,0.957,1.193c0,1.017-1.011,0.665-0.945,1.465
c0.049,0.591,0,1.844,0,1.844c-1.951,0-14.233,0.012-14.846-0.012c0.037-1.335-0.021-1.153,0.024-1.796
c0.037-0.52-1.129-0.839-1.129-1.714c0-0.603,0.7-0.567,0.761-1.134v-3.593c-0.037-0.472-1.092-0.709-1.055-1.383
c0.044-0.805,0.982-0.702,0.982-1.241C5.074,9.177,5.099,8.303,5.086,8.078z"/>
<path fill="none" stroke="#243069" stroke-width="0.504" stroke-miterlimit="10" d="M6.693,8.137c0,0,0.024,8.037,0,9.928
c0,0,11.706,0.023,12.221-0.024c0-2.139-0.013-9.963-0.013-9.963"/>
<line fill="none" stroke="#243069" stroke-width="0.504" stroke-miterlimit="10" x1="12.816" y1="7.641" x2="12.816" y2="18.088"/>
<path fill="#243069" stroke="#243069" stroke-width="0.504" stroke-miterlimit="3.8636" d="M13,16.8
c0.516,0.024,1.462,0.372,2.381,0.65c1.189,0.361,2.452,0.108,3.386,0.295C19.062,17.805,13,17.852,13,17.852
C13.024,16.682,13,16.8,13,16.8z"/>
<g>
<ellipse fill="#243069" stroke="#243069" stroke-width="0.504" stroke-miterlimit="3.8636" cx="12.81" cy="18.349" rx="0.681" ry="0.473"/>
<path fill="#243069" stroke="#243069" stroke-width="0.504" stroke-miterlimit="3.8636" d="M12.81,18.349"/>
</g>
<path fill="#243069" stroke="#243069" stroke-width="0.504" stroke-miterlimit="3.8636" d="M12.476,16.8
c-0.515,0.024-1.461,0.372-2.38,0.65c-1.19,0.361-2.452,0.108-3.387,0.295c-0.294,0.059,5.767,0.106,5.767,0.106
C12.452,16.682,12.476,16.8,12.476,16.8z"/>
<g>
<ellipse fill="#FFFFFF" stroke="#243069" stroke-width="0.5045" stroke-miterlimit="3.8636" cx="21.153" cy="54.465" rx="6.336" ry="6.105"/>
<path fill="#FFFFFF" stroke="#243069" stroke-width="0.5045" stroke-miterlimit="3.8636" d="M21.153,54.465"/>
</g>
<g>
<ellipse fill="#FFFFFF" stroke="#243069" stroke-width="0.5042" stroke-miterlimit="3.8636" cx="38.573" cy="39.805" rx="6.336" ry="6.104"/>
<path fill="#FFFFFF" stroke="#175083" stroke-width="0.5042" stroke-miterlimit="3.8636" d="M38.573,39.805"/>
</g>
<g>
<ellipse fill="#FFFFFF" stroke="#243069" stroke-width="0.5045" stroke-miterlimit="3.8636" cx="55.008" cy="54.465" rx="6.336" ry="6.105"/>
<path fill="#FFFFFF" stroke="#243069" stroke-width="0.5045" stroke-miterlimit="3.8636" d="M55.009,54.465"/>
</g>
<path fill="none" stroke="#243069" stroke-width="0.504" stroke-miterlimit="10" d="M44.928,17.053
c-1.619-1.782-3.047-3.875-3.293-3.979c-0.797-0.331-2.699-4.113-7.803-4.396c-1.296-0.072-6.177,0.402-6.345,1.651"/>
<path fill="none" stroke="#243069" stroke-width="0.504" stroke-miterlimit="10" d="M31.741,18.428
c0.019-0.122,0.029-0.252,0.029-0.39c0-0.203-1.196-0.088-1.48-0.172c-0.196-0.059,0.526-0.348,0.4-0.348
c0.736-0.284,2.623-1.114,1.963-1.749c-0.638-0.615-1.019-1.265-1.374-1.655c-0.479-0.52-1.043-0.804-1.915-0.804
c-0.749,0-1.961,1.298-2.464,1.653c0.368-0.355,1.434-1.275,1.434-2.032c0-1.702-1.361-3.179-1.717-4.585"/>
<path fill="none" stroke="#243069" stroke-width="0.504" stroke-miterlimit="10" d="M24.404,21.016c1.349,0,2.11-0.094,2.749-0.425
c0.699-0.366,1.963-1.158,2.257-1.844"/>
<path fill="none" stroke="#243069" stroke-miterlimit="10" d="M2.323,2.533h72.623c0,0,0,35.677,0,36.306
C74.455,68.432,41.292,83.987,37.12,83.844C32.781,83.696,2.225,68.475,2.316,38.685C2.317,38.149,2.323,2.533,2.323,2.533z"/>
</g>
</svg>
</div>
</div>
// [mode] attribute selection for demo purposes
// use media queries in production
body {
background: #00144d;
text-align: center;
}
.header {
display: flex;
align-items: center;
justify-content: center;
height: 50vw;
padding: 20px;
}
.logo {
height: 28px;
width: 99px;
margin: 0 auto;
[mode='large'] & {
height: 60px;
width: 182px;
}
}
#Logotype {
[mode='small'] & {
opacity: 0;
}
[mode='large'] & {
opacity: 1;
}
}
#Mark {
[mode='small'] & {
transform: scale(1.2) translate(-10px);
}
[mode='large'] & {
transform: scale(1);
}
}
var header = document.querySelector('.header');
var logoSVG = document.querySelector('.logo svg');
var viewbox = logoSVG.getBBox();
var logoWidth = Math.floor(viewbox.width * 1000) / 1000;
var logoHeight = Math.floor(viewbox.height * 1000) / 1000;
// value from Illustrator's info panel
var logoWidthSm = 308;
var logoHeightSm = logoHeight;
// setMode for demo purposes, use media queries in production
var setMode = function(mode) {
header.setAttribute('mode', mode);
};
// setViewbox for matching viewBox to new size of paths
var setViewbox = function(w, h) {
logoSVG.setAttribute('viewBox', '0 0 ' + w + ' ' + h);}
// update logo size when crossing breakpoints
enquire
.register("screen and (max-width: 599px)", function() {
setViewbox(logoWidthSm, logoHeightSm);
setMode('small');
})
.register("screen and (min-width: 600px)", function() {
setViewbox(logoWidth, logoHeight);
setMode('large');
});
// ==============================
// boilerplate demo code...
// ==============================
document.addEventListener('click', function(e) {
if (e.target.type !== 'button') return;
var mode = e.target.getAttribute('data-mode');
setMode(mode);
if (mode == 'small') {
setViewbox(logoWidthSm, logoHeightSm);
} else {
setViewbox(logoWidth, logoHeight);
}
});
Also see: Tab Triggers