Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

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.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

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.

+ add another resource

Packages

Add Packages

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.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="bl-accordion-container">
  <details>
    <summary>
      <span class="bl-accordion-title">
        <bl-icon name="info" style="font-size: var(--bl-font-size-l)"></bl-icon>
        How long does the course take?
      </span>
      <bl-icon name="arrow_down"></bl-icon>
    </summary>
    <div class="bl-accordion-content">
      The video content takes more than 4.5 hours. In addition, you can test gained knowledge on 30 quizzes and
      practical tasks.
    </div>
  </details>
  <details>
    <summary>
      <span class="bl-accordion-title">
        <bl-icon name="info" style="font-size: var(--bl-font-size-l)"></bl-icon>
        Who teaches courses on Atheros Learning?
      </span>
      <bl-icon name="arrow_down"></bl-icon>
    </summary>
    <div class="bl-accordion-content">
      The authors of the courses are mostly Atheros team members, who worked on tens of digital solutions for big
      international companies, projects for small startups, and internal Atheros products. By solving the most
      sophisticated
      problems in the fields, they gained proper knowledge, which is now available for you. </div>
  </details>
  <details>
    <summary>
      <span class="bl-accordion-title">
        <bl-icon name="info" style="font-size: var(--bl-font-size-l)"></bl-icon> How is the course different from other UX/UI design courses?
      </span>
      <bl-icon name="arrow_down"></bl-icon>
    </summary>
    <div class="bl-accordion-content">The key aspect is that this course provides a clear overview of the whole design process
      and
      principles, that represent necessary information for being successful within the industry. You will also get
      direct
      support from the author of this course, who is ready to answer all your questions and care about your next
      steps.
    </div>
  </details>
  <details>
    <summary>
      <span class="bl-accordion-title">
        <bl-icon name="info" style="font-size: var(--bl-font-size-l)"></bl-icon> Do I get a certificate after completing a course?
      </span>
      <bl-icon name="arrow_down"></bl-icon>
    </summary>
    <div class="bl-accordion-content">Yes, after successfully finishing the quizzes within the course, you can download a
      certificate, proving all gained knowledge and skills.</div>
  </details>
  <details>
    <summary>
      <span class="bl-accordion-title">
        <bl-icon name="info" style="font-size: var(--bl-font-size-l)"></bl-icon> Are there any hidden fees within the course?
      </span>
      <bl-icon name="arrow_down"></bl-icon>
    </summary>
    <div class="bl-accordion-content">Absolutely not! You will gain all benefits and features with the one-time payment,
      unlocking
      the course.</div>
  </details>
</div>


<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@trendyol/baklava@beta/dist/themes/default.css" />
<script type="module" src="https://cdn.jsdelivr.net/npm/@trendyol/baklava@beta/dist/baklava.js"></script>
              
            
!

CSS

              
                .bl-accordion-container {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

details {
  font-size: 1rem;
  margin: 0 auto;
  width: 100%;
  border-radius: 8px;
  position: relative;
  max-width: 600px;
  min-height: 48px;
  transition: min-height 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  border-radius: 8px;
  border: 1px solid var(--bl-color-neutral-lighter);
  background-color: var(--bl-color-neutral-full);
}

details[open] {
  min-height: 120px;
}

details[open] .bl-accordion-title {
  min-height: 0px;
  height: auto;
}

summary {
  user-select: none;
  cursor: pointer;
  font-weight: var(--bl-font-display-medium);
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 16px;
  align-items: center;
  transition: height 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  border-radius: 8px;
}

summary > bl-icon {
  transform: rotate(0deg);
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}

details[open] summary > bl-icon {
  transform: rotate(180deg);
}

summary:hover{
  background-color: var(--bl-color-neutral-lightest);
}

details[open] summary:hover {
  border-radius: 8px 8px 0 0;
}

summary::-webkit-details-marker {
  display: none;
}

.bl-accordion-title {
  color: var(--bl-color-neutral-darker);
  width: 90%;
  transition: all 250ms ease-in-out;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bl-accordion-content {
  background-color: var(--neutral-full);
  padding: 16px;
  font-weight: 300;
  line-height: 1.5;
  border-radius: 0 0 8px 8px;
}

.expand-icon {
  pointer-events: none;
  position: absolute;
  right: 1em;
  transition: all 150ms ease-out;
}



















html {
  font-size: 14px;
  font-family: var(--bl-font-family);
  font-weight: var(--bl-font-display-medium);
}

body {
  height: 100%;
  background: var(--bl-color-neutral-lightest);
  margin-top: 40px;
}

* {
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
}


h1 {
  font-size: 48px;
}

h1, h2 {
  text-align: center;
  margin-bottom: 10px;
  margin-top: 30px;
}

p {
  text-align: center;
  margin-bottom: 20px;
}

.browser {
  display: flex;
  justify-content: center;
}

.browser img {
  width: 16px;
  height: 16px;
  margin: 0 8px;
}
              
            
!

JS

              
                
              
            
!
999px

Console