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 Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
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.
<div class="news-page">
<div class="news-page__section publisher">
<div class="logo-shield">
<img src="http://redonion.se/cssgrid/images/logo-shield155.png" alt="">
</div>
<div class="publisher_name">
<img src="http://redonion.se/cssgrid/images/logo-cleanup.svg" alt="">
<div class="tagline">THE WIZARD WORLD'S BEGUILING BROADSHEET OF CHOICE</div>
</div>
</div>
<div class="news-page__section exclusive-story">
<div class="exclusive-story__marker">exclusive</div>
<div class="exclusive-story__preview">
<div class="preview-title">
<span class="text--uppercase display--block">inside the mind</span>
<span>of a MUGGLER</span>
</div>
<div class="preview-content-wrapper">
<div class="preview-content">
<div class="preview-content--left">
What are mugglers really like? Do mugglers dream of electric sheep? These and many more questions are discussed with the top authoroties in the field of
</div>
<div class="preview-content--right">
modern muggler studies. Is it possible that mugglers are not too different from ourselves? Can we in fact learn from the fate of our underdeveloped cousins?
</div>
</div>
<div class="preview-content--link">
Read the Full story on Page 6.
</div>
</div>
</div>
</div>
<div class="news-page__section stories">
<div class="story story--main">
<div class="column column--left">
<!-- start: story title -->
<div class="story-title">
<div class="story-title--first-line">
<div class="title-text text--vertical">hurricane</div>
<div class="title-text text--normal">Maria Threatens</div>
</div>
<div class="story-title--second-line">
<div class="title-text text--normal">Quidditch Playoffs</div>
</div>
</div>
<!-- end: story title -->
<!-- start: story content -->
<div class="story-content">
<div class="story-column column--first">
<div class="paragraph first">
<p>At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati.</p>
</div>
<div class="paragraph">
<p class="text--capitalize-first">Cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque
nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.</p>
</div>
<div class="paragraph">
<p>Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores
alias consequatur aut perferendis doloribus asperiores repellat.</p>
</div>
</div>
<div class="story-column column--second-third">
<p class="story-featured-photo"><img src="http://redonion.se/cssgrid/images/tornado508.jpg" alt=""></p>
<!-- start: blockquote -->
<div class="blockquote-wrapper">
<div class="blockquote-title">
<div class="text--superscript">Captain Oliver</div>
<div class="text--normal">Wood not worried</div>
</div>
<div class="blockquote-content">
We're prepared for anything. Dealing with bad weather is not a problem. Quidditch is an outdoor sport, and as such, Nature is a part of the game. Playing in rough conditions is in fact something me and my crew are used to.
</div>
</div>
<!-- end: blockquote -->
<div class="columns-wrapper">
<div class="column first">
<div class="paragraph">
<p>Veteran Captain Oliver Wood did not seem too anxious about the hurricane threat as he and some of his fellow crew met reporters in the lobby at player hotel this morning. At vero eos et accusamus et iusto.</p>
</div>
<div class="paragraph">
<p>Ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui.</p>
</div>
</div>
<div class="column">
<div class="paragraph">
<p>Harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.</p>
</div>
<div class="paragraph">
<p>Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et.</p>
</div>
</div>
</div>
</div>
</div>
<!-- end: story content -->
</div>
<div class="column column--right">
<div class="author">
<div class="name">Rita Skeeter</div>
<div class="footnote">reports</div>
</div>
<div class="paragraph">
<p class="text--capitalize-first">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident.</p>
</div>
<div class="paragraph">
<p>Similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id
quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.</p>
</div>
<div class="paragraph">
<p>Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores
alias consequatur aut perferendis doloribus asperiores repellat.</p>
</div>
<div class="paragraph">
<p>Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci
velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.</p>
</div>
<div class="paragraph">
<p>Corrupti quos dolores.</p>
</div>
</div>
</div>
<div class="story-divider"></div>
<div class="story story--secondary">
<div class="columns-wrapper">
<div class="column first">
<p class="story-title--secondary">
Ministry Secretary Denies Job Crisis
</p>
<div class="story-featured-photo">
<img src="http://redonion.se/cssgrid/images/mics500.jpg" alt="">
</div>
<div class="caption">
<div class="caption_content">“THERE IS ENOUGH MAGIC FOR ALL”</div>
<div class="page-number">page 12</div>
</div>
</div>
<div class="column second">
<div class="story-title--third">
<div class="first-part">
<small>ALBUS SEVERUS POTTER</small> Scandal
</div>
<div class="second-part">
In Polyjuice
<small>Potter was discovered trying to enter girls dorm under the influence of polyjuice.</small>
</div>
</div>
<div class="story-content--third">
<img src="http://redonion.se/cssgrid/images/potions200.jpg" alt="">
<div class="paragraph">
<p class="text--capitalize-first">A Hogwarts spokesperson says the incident will not be taken lightly, since it was only a few months ago young Potter was involved in a similar incident. Parents of the Hufflepuff girls are now putting preassure on the school to assure the
safety of their children.</p>
</div>
<div class="paragraph">
<p>An anonymous source says the Potter boy has been harassing girls and bullying his fellow students since he started at Hogwarts. The source also says that because of his family name, professors and staff are too scared to act. Neither one
of the boy's parents wanted to comment the event.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- end: stories -->
<!-- start: weather section -->
<div class="news-page_section weather">
<div class="section-divider" title="Weather"></div>
<div class="columns-wrapper column--weathers">
<div class="column column--weather">
<div class="weather_value text_shadow--hot">
27 <span class="weater_value_measurement">*C</span> </div>
<div class="weather_city">
Adua
</div>
</div>
<div class="column column--weather">
<div class="weather_value">
19 <span class="weater_value_measurement">*C</span> </div>
<div class="weather_city">
Hogsmeade
</div>
</div>
<div class="column column--weather">
<div class="weather_value">
18 <span class="weater_value_measurement">*C</span> </div>
<div class="weather_city">
Idris
</div>
</div>
<div class="column column--weather">
<div class="weather_value text_shadow--hot">
24 <span class="weater_value_measurement">*C</span> </div>
<div class="weather_city">
King's Landing
</div>
</div>
<div class="column column--weather">
<div class="weather_value text_shadow--cold">
-84 <span class="weater_value_measurement">*C</span> </div>
<div class="weather_city">
Luna
</div>
</div>
<div class="column column--weather">
<div class="weather_value">
12 <span class="weater_value_measurement">*C</span> </div>
<div class="weather_city">
Stormwind
</div>
</div>
</div>
</div>
<!-- end: weather section -->
<!-- start: footer story -->
<div class="news-page_section story--footer">
<div class="story-title--footer">
AURORS OUT OF CONTROL?
</div>
<div class="story_excerpt_and_number">
<div class="story_page_number">
<div>page</div>
<div class="number">7</div>
</div>
<div class="story_excerpt">
<div>THE FULL STORY</div>
<div class="text--lowercase">violence investigated</div>
</div>
</div>
</div>
<!-- end: footer story -->
<!-- start: table of topics -->
<div class="news-page_section news-topics">
<div class="columns-wrapper">
<div class="column column_topic">
<div class="topic">World</div>
<div class="badge_number">7</div>
</div>
<div class="column column_topic">
<div class="topic">Ministry</div>
<div class="badge_number">12</div>
</div>
<div class="column column_topic">
<div class="topic">Sport</div>
<div class="badge_number">4</div>
</div>
<div class="column column_topic">
<div class="topic">Business</div>
<div class="badge_number">2</div>
</div>
<div class="column column_topic">
<div class="topic">Amusements</div>
<div class="badge_number">3</div>
</div>
<div class="column column_topic">
<div class="topic">Magic</div>
<div class="badge_number">6</div>
</div>
<div class="column column_topic">
<div class="topic">Jobs</div>
<div class="badge_number">13</div>
</div>
<div class="column column_topic">
<div class="topic">Adventure</div>
<div class="badge_number">14</div>
</div>
</div>
</div>
<!-- end: table of topics -->
</div>
$primary_color: #000;
$newspaper_background: #fff8ed;
// Base
.text--uppercase {
text-transform: uppercase;
}
.display--block {
display: block;
}
.text--vertical {
-webkit-writing-mode: vertical-rl;
/* -ms-writing-mode: tb-rl; */
writing-mode: vertical-rl;
}
.text--capitalize-first {
&:first-letter {
color: $primary_color;
float: left;
font-size: 3.75rem;
font-weight: bold;
line-height: 50px;
padding-right: 8px;
padding-left: 3px;
text-shadow: 3px 0 0px #fbb03b;
}
}
.text_shadow--hot {
text-shadow: 3px 0 0px #fbb03b;
}
.text_shadow--cold {
text-shadow: 3px 0 0px #82d1ff
}
body {
background: $primary_color;
padding: 1rem;
font-family: serif;
.news-page {
display: flex;
flex-direction: column;
flex-wrap: wrap;
align-content: flex-start;
margin: 0 auto;
background: $newspaper_background;
min-height: 100vh;
max-width: 64em;
border-radius: 15px;
padding: 1.4rem 1rem;
padding-bottom: 0.5rem;
&_section {
// flex-basis: 100%;
}
// publisher/publication
.publisher {
border-top: 3px solid $primary_color;
border-bottom: 3px solid $primary_color;
min-height: 125px;
margin-top: 1.15rem;
position: relative;
display: flex;
flex-wrap: wrap;
flex-direction: row;
&::before,
&::after {
content: "";
height: 1px;
flex-basis: 100%;
background: $primary_color;
margin-top: 2px;
}
&::after {
align-self: flex-end;
margin-top: 0;
margin-bottom: 2px;
position: absolute;
bottom: 0px;
left: 0;
right: 0;
}
.logo-shield {
text-align: center;
margin-right: 7px;
margin-top: -20px;
img {
height: auto;
width: 135px;
margin: 0 auto;
}
}
.publisher_name {
flex: 4;
margin-top: -35px;
text-align: center;
display: flex;
flex-direction: column;
align-self: center;
img {
margin: 0 auto;
max-width: 100%;
}
.tagline {
font-weight: bold;
position: relative;
margin-top: 5px;
margin-bottom: 0.5rem;
&::before,
&::after {
content: "*";
margin-right: 5px;
margin-left: 5px;
}
}
}
}
// exclusive story
.exclusive-story {
display: flex;
flex-direction: row;
margin-top: 0.5rem;
margin-bottom: 0.5rem;
&__marker {
flex: 1;
background: $primary_color;
display: flex;
align-items: center;
justify-content: center;
margin-right: 1rem;
text-transform: uppercase;
color: #fff;
font-size: 2rem;
font-weight: 700;
padding: 0 1rem;
}
&__preview {
flex: 4;
border: 1px solid $primary_color;
display: flex;
.preview-title {
flex: 1;
align-self: center;
font-size: 1.75rem;
padding: 0.2rem;
font-weight: bold;
margin-right: 5px;
}
.preview-content-wrapper {
flex: 2;
flex-direction: column;
display: flex;
}
.preview-content {
display: flex;
flex-wrap: wrap;
align-items: center;
padding: 0.25rem;
&--left,
&--right {
flex: 1;
font-style: italic;
font-size: 0.85rem;
padding-right: 0.25rem;
}
&--left {
margin-right: 1rem;
}
}
.preview-content--link {
text-align: right;
background: $primary_color;
color: #fff;
padding: 1px 0.25rem;
font-weight: 700;
font-size: 0.85rem;
margin-top: 3px;
display: flex;
justify-content: flex-end;
align-items: center;
flex-grow: 1;
}
}
}
// main stories
.stories {
border: 1px solid $primary_color;
display: flex;
flex-wrap: wrap;
flex-direction: column;
.story {
display: flex;
&.story--main {
flex-wrap: wrap;
}
.column {
padding: 0 0.5rem;
&--left {
flex: 3;
}
&--right {
flex: 1;
}
.story-title {
display: flex;
flex-wrap: wrap;
text-transform: uppercase;
flex-direction: column;
&--first-line {
display: flex;
}
.title-text.text--vertical {
-webkit-transform: rotate(-180deg);
-ms-transform: rotate(-180deg);
transform: rotate(-180deg);
align-self: center;
font-size: 0.5rem;
}
.title-text.text--normal {
letter-spacing: -5px;
font-size: 4.75rem;
}
}
.paragraph {
font-size: 0.9rem;
flex-wrap: wrap;
p:not(.text--capitalize-first) {
text-indent: 1rem;
}
&.first {
font-weight: 700;
p {
text-indent: 0;
}
}
}
.story-content {
display: flex;
flex-wrap: wrap;
.story-column {
&.column--first {
flex: 1;
margin-right: 10px;
}
&.column--second-third {
flex: 2;
}
.story-featured-photo {
margin-bottom: 0.5rem;
img {
}
}
.blockquote-wrapper {
.blockquote-title {
display: flex;
border-top: 3px solid $primary_color;
border-bottom: 3px solid $primary_color;
position: relative;
display: flex;
flex-wrap: wrap;
text-transform: uppercase;
&::before,
&::after {
content: "";
height: 1px;
flex-basis: 100%;
background: $primary_color;
margin-top: 2px;
}
&::after {
align-self: flex-end;
margin-top: 0;
margin-bottom: 2px;
}
.text--superscript {
background: $primary_color;
color: #fff;
padding: 0 0.5rem;
font-size: 0.75rem;
display: flex;
align-self: flex-start;
align-items: center;
justify-content: center;
flex: 1;
}
.text--normal {
font-size: 2rem;
flex: 4;
display: flex;
justify-content: center;
}
}
.blockquote-content {
font-style: italic;
padding: 0.5rem 0.5rem;
font-weight: bold;
position: relative;
padding-left: 1.5rem;
&::before {
content: "“";
position: absolute;
left: 5px;
top: 5px;
font-size: 1.5rem;
}
}
}
.columns-wrapper {
display: flex;
flex-direction: row;
.column {
flex: 1;
&.first {
margin-right: 10px;
}
}
}
}
}
}
.column--right {
flex: 1;
padding: 0.1rem 0.1rem;
.author {
background: $primary_color;
color: #fff;
text-align: center;
padding: 0.2rem 0.5rem;
position: relative;
&::after {
content: "";
height: 1px;
background: $primary_color;
position: absolute;
bottom: -3px;
left: 0;
right: 0;
}
.name {
text-transform: uppercase;
font-weight: bold;
font-size: 1.75rem;
}
.footnote {
font-style: italic;
opacity: 0.85;
font-size: 0.75rem;
}
}
.paragraph {
padding: 0 0.5rem;
}
}
}
.story-divider {
height: 1px;
background: $primary_color;
flex-basis: 100%;
margin: 0 0.5rem;
}
.story--secondary {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
.columns-wrapper {
display: flex;
flex: 1;
flex-direction: row;
flex-wrap: wrap;
}
.column {
flex: 1;
&.first {
border-right: 1px solid $primary_color;
flex: 1;
}
&.second {
padding: 0.5rem;
}
}
.story-title--secondary {
text-transform: uppercase;
font-size: 1.45rem;
margin-bottom: 0;
text-align: justify;
font-weight: 700;
margin-top: 2px;
}
.story-featured-photo {
overflow: hidden;
img {
object-fit: cover;
width: 100%;
height: 340px;
}
}
.caption {
display: flex;
flex-direction: row;
padding: 0.25rem 0;
&_content {
font-weight: 700;
text-transform: uppercase;
margin-right: 10px;
}
.page-number {
flex: 1;
display: flex;
text-align: right;
background: $primary_color;
color: #fff;
text-transform: uppercase;
font-weight: 700;
font-size: 0.75rem;
align-items: center;
justify-content: flex-end;
padding: 0 0.2rem;
}
}
.story-title--third {
display: flex;
flex-direction: row;
.first-part {
flex: 1;
text-transform: uppercase;
font-size: 3.5rem;
font-weight: bold;
letter-spacing: -3px;
margin-right: 15px;
small {
font-weight: normal;
display: block;
font-size: 1rem;
letter-spacing: normal;
}
}
.second-part {
flex: 1;
font-size: 2rem;
font-weight: bold;
text-transform: uppercase;
small {
display: block;
font-weight: bold;
font-size: 0.85rem;
text-transform: none;
}
}
}
.story-content--third {
img {
border-radius: 100%;
float: left;
margin-right: 20px;
}
}
}
}
&_section.weather {
margin-top: 1rem;
// section divider
.section-divider {
position: relative;
text-align: center;
height: 3px;
background: $primary_color;
margin-bottom: 1rem;
&::before {
content: "";
height: 1px;
background: $primary_color;
margin-top: 5px;
position: absolute;
left: 0;
right: 0;
top: 0;
}
&::after {
content: "Weather";
position: absolute;
top: -5px;
left: 0;
right: 0;
background: $newspaper_background;
padding: 0rem 0.5rem;
text-transform: uppercase;
margin: 0 auto;
width: fit-content;
font-weight: 700;
font-size: 0.8rem;
}
}
.column--weathers {
display: flex;
flex-direction: row;
flex-wrap: wrap;
.column--weather {
flex: 1;
text-align: center;
margin-left: 8px;
margin-right: 8px;
&::first-of-type {
margin-left: 0;
}
&::last-of-type {
margin-right: 0;
}
.weather_value {
font-size: 3rem;
position: relative;
display: inline;
font-weight: bold;
.weater_value_measurement {
position: absolute;
top: 0.5rem;
right: -1rem;
font-size: 0.75rem;
}
}
.weather_city {
text-transform: uppercase;
font-weight: bold;
border-top: 1px solid $primary_color;
border-bottom: 1px solid $primary_color;
padding: 0.3rem 0;
}
}
}
}
&_section.story--footer {
display: flex;
flex: 1;
flex-direction: row;
border-top: 3px solid $primary_color;
border-bottom: 3px solid $primary_color;
min-height: 80px;
background: #fff;
position: relative;
.story-title--footer {
text-transform: uppercase;
font-size: 2.75rem;
font-weight: bold;
background: $primary_color;
color: #fff;
display: flex;
align-items: center;
padding: 0 1rem;
padding-right: 3rem;
}
.story_excerpt_and_number {
display: flex;
flex-direction: row;
position: relative;
flex: 2;
padding-left: 5em;
}
.story_excerpt {
display: flex;
align-items: center;
align-content: center;
flex-wrap: wrap;
font-weight: bold;
div {
flex-basis: 100%;
text-align: left;
&:first-of-type {
text-transform: uppercase;
font-size: 1.5rem;
}
}
}
.story_page_number {
border-radius: 100%;
border: 2px solid $primary_color;
min-width: 90px;
min-height: 90px;
max-width: 90px;
max-height: 90px;
display: flex;
align-self: center;
align-items: center;
justify-content: center;
flex-direction: column;
text-transform: uppercase;
font-size: 0.75rem;
background: #fff;
position: absolute;
left: -30px;
top: -7px;
&::before {
content: "";
position: absolute;
top: 50%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%);
border: 1px solid $primary_color;
border-radius: 100%;
width: 96%;
height: 96%;
}
.number {
font-size: 3rem;
font-weight: bold;
margin-top: -10px;
}
}
}
&_section.news-topics {
padding: 0.5rem 0.75rem;
border: 2px solid $primary_color;
margin: 0.5rem 0;
.columns-wrapper {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.column_topic {
display: flex;
flex: 1;
flex-direction: row;
text-transform: uppercase;
font-weight: bold;
font-size: 0.8rem;
margin-left: 5px;
margin-right: 5px;
&::first-of-type {
margin-left: 0;
}
&::last-of-type {
margin-right: 0;
}
.topic {
display: flex;
align-items: center;
margin-right: 1rem;
}
.badge_number {
width: 20px;
height: 20px;
background: $primary_color;
color: #fff;
border-radius: 100%;
text-align: center;
font-size: 0.75rem;
display: flex;
align-items: center;
justify-content: center;
}
}
}
}
}
Also see: Tab Triggers