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.

Details

Privacy

Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO

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.

Template

Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Screenshot

Screenshot or Custom Thumbnail

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

PRO members can see and edit the Pen thumbnail here after the Pen has been saved.

HTML

              
                <div mv-app="main" mv-bar="none" mv-source="shapir" mv-source-service="wikidata" mv-source-id="[url('id') or 'Q480']" mv-source-language="en">

  <nav class="navbar navbar-default navbar-trans navbar-expand-lg fixed-top">
    <div class="container">
      <a class="navbar-brand text-brand" href="index.html">Digital<span class="color-b">Humanities</span></a>
    </div>
  </nav>

  <main id="main">

    <section class="intro-single">
      <div class="container">
        <div class="row">
          <div class="col-md-12 col-lg-8">
            <div class="title-single-box">
              <h1 property="label" class="title-single"></h1>
              <span property="description" class="color-text-a"></span>
            </div>
          </div>
        </div>
      </div>
    </section>

    <section class="book-single">
      <div class="container">
        <div class="row">
          <div class="col-sm-12">
            <div class="row">
              <div class="col-md-6">
                <img property="image" alt="" class="img-fluid">
              </div>
              <div class="col-md-5 section-md-t3">
                <div class="book-info-box">
                  <div class="book-title">
                    <div class="title-box-d">
                      <h3 property="Commons-category" class="title-d"></h3>
                    </div>
                  </div>
                  <div class="book-content mb-3">
                    <p property="instance-of" class="content-d color-text-a">
                      <span property="label"></span>
                    </p>
                    <div class="info-book color-a">
                      <p>
                        <strong>Publisher: </strong>
                        <span property="author" class="color-text-a">
                          <span property="label"> </span>
                        </span>
                      </p>
                      <p>
                        <strong>Genre: </strong>
                        <span property="genre" class="color-text-a">
                          <span property="label"> </span>
                        </span>
                      </p>
                      <p>
                        <strong>Country of origin: </strong>
                        <span property="country-of-origin" class="color-text-a">
                          <span property="label"> </span>
                        </span>
                      </p>
                      <p>
                        <strong>Language of work or name: </strong>
                        <span property="language-of-work-or-name" class="color-text-a">
                          <span property="label"> </span>
                        </span>
                      </p>
                      <p>
                        <strong>Publication date: </strong>
                        <span property="publication-date" class="color-text-a">
                          <span property="label" class="text-muted">[date(publicationDate)]</span>
                        </span>
                      </p>
                      <blockquote class="blockquote">
                        <strong class=str> First line </strong>
                        <p property="first-line" class="mb-4"></p>
                        <span property="label"></span>
                      </blockquote>

                      <blockquote dir="rtl" class="blockquote2">
                        <strong class=str> Last line </strong>
                        <p property="last-line" class="mb-4"></p>
                        <span property="label"></span>
                      </blockquote>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
  </main>
</div>
              
            
!

CSS

              
                /* General */

body {
  font-family: "Ubuntu", sans-serif;
  color: #555555;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #000000;
}

a {
  color: #000000;
  text-decoration: none;
  transition: all 0.5s ease;
}
a:hover {
  color: #c85c19;
  text-decoration: none;
}

.text-brand {
  color: #000000;
  font-size: 2rem;
  font-weight: 600;
}
@media (max-width: 767px) {
  .text-brand {
    font-size: 1.8rem;
  }
}

.color-a {
  color: #a31f34;
}
strong {
  color: #000000;
}

.color-b {
  color: #c36f09;
}

.color-text-a {
  text-decoration: none;
  color: #555555;
}

/* Navbar */
.navbar-default {
  transition: all 0.5s ease-in-out;
  background-color: #ffffff;
  padding-top: 28px;
  padding-bottom: 28px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: 1px 2px 15px rgba(100, 100, 100, 0.3);
}

/*------/ Intro Single /------*/
.intro-single {
  padding: 12rem 0 3rem;
}
@media (max-width: 767px) {
  .intro-single {
    padding-top: 9rem;
  }
}
.intro-single .title-single-box {
  padding: 1rem 0 1rem 2rem;
}
.intro-single .title-single-box {
  border-left: 3px solid #c36f09;
}

.intro-single .title-single-box .title-single {
  font-weight: 600;
  font-size: 2.2rem;
}
@media (min-width: 768px) {
  .intro-single .title-single-box .title-single {
    font-size: 2.1rem;
  }
}
@media (min-width: 992px) {
  .intro-single .title-single-box .title-single {
    font-size: 2.5rem;
  }
}

/*------/ book Single /------*/
.post-information {
  padding: 1rem 0;
}

.post-content {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
  text-align: justify;
}

.post-content .post-intro {
  font-size: 1.7rem;
  font-weight: 300;
  margin-bottom: 4rem;
  line-height: 1.6;
  color: #000000;
  font-weight: 400;
}
.post-content p {
  margin-bottom: 1.7rem;
}
.blockquote {
  margin-top: 40px;
  padding: 0.2rem 1rem 1.7rem 1rem;
  border-left: 3px solid #c36f09;
  color: #000000;
}

.blockquote2 {
  padding: 0.2rem 1rem 1.7rem 1rem;
  border-right: 3px solid #c36f09;
  color: #000000;
}
.mb-4 {
  font-size: 16px;
}

.str {
  color: #000000;
  font-size: 18px;
}
strong {
  color: #000000;
}

.post-footer {
  padding: 3rem 0 4rem;
}

.post-share .socials {
  display: inline-block;
}
.post-share .socials li {
  margin-left: 0.6rem;
}

.news-img-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Card General */
@media (max-width: 767px) {
  .card-box,
  .card-box-d {
    margin-bottom: 2.5rem;
  }
}
.card-box span,
.card-box-d span {
  line-height: 0;
  color: #000;
}
.card-box-d p {
  font-color: #0000;
}
@media (min-width: 768px) {
  .grid .card-box,
  .grid .card-box-d {
    margin-bottom: 2.5rem;
  }
}

.card-box,
.card-box-d {
  position: relative;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.img-grid {
  grid-template-columns: repeat(4, 300px);
  grid-gap: 2rem;
  margin-top: 24px;
  display: grid;
}

.card-box .img {
  transition: 0.8s all ease-in-out;
}
@media (min-width: 768px) {
  .card-box:hover .img {
    transform: scale(1.2);
  }
}
@media (min-width: 768px) {
  .card-box .desc {
    font-size: 0.9rem;
  }
}
@media (min-width: 992px) {
  .card-box .desc {
    font-size: 1rem;
  }
}

.card-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.card-shadow {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.card-shadow:before {
  content: " ";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.2) 27%,
    rgba(0, 0, 0, 0.65) 90%
  );
}

/* PROPERTY - CARD-A */
@media (min-width: 768px) {
  .card-box:hover .card-overlay-a-content {
    bottom: 60px;
  }
}
@media (min-width: 768px) and (min-width: 768px) {
  .card-box:hover .card-overlay-a-content {
    bottom: 60px;
  }
}
@media (min-width: 768px) and (min-width: 992px) {
  .card-box:hover .card-overlay-a-content {
    bottom: 64px;
  }
}
@media (min-width: 768px) {
  .card-box:hover .card-body {
    padding-bottom: 1rem;
  }
}
@media (max-width: 767px) {
  .card-box .card-overlay-a-content {
    bottom: 65px;
  }
  .card-box .card-body {
    padding-bottom: 1rem;
  }
}

.card-overlay-a-content {
  transition: all 0.5s ease-in;
  position: absolute;
  width: 100%;
  bottom: 0px;
  z-index: 2;
}
@media (min-width: 768px) {
  .card-overlay-a-content {
    bottom: -20px;
  }
}
@media (min-width: 992px) {
  .card-overlay-a-content {
    bottom: 0px;
  }
}

.card-header {
  padding: 0 1rem;
}
.card-header .card-title {
  color: #ffffff;
  margin-bottom: 0;
  padding-bottom: 0.7rem;
}
@media (min-width: 768px) {
  .card-header .card-title {
    font-size: 1.7rem;
  }
}
@media (min-width: 992px) {
  .card-header .card-title {
    font-size: 1.7rem;
  }
}
.card-header .card-title a {
  color: #ffffff;
  text-decoration: none;
}

.card-body {
  z-index: 2;
  transition: all 0.5s ease-in;
  padding: 0rem 1rem 2rem 1rem;
}
.card-body .desc-box {
  padding-bottom: 0.5rem;
}

.desc {
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  border: 2px solid #c36f09;
  border-radius: 40px;
  letter-spacing: 0.03em;
  margin-left: 5px;
}

.desc-text {
  color: white !important;
}

/*authors */
.grid-option {
  text-align: right;
  margin-bottom: 2rem;
}
.grid-option .custom-select {
  border-radius: 0;
  width: 200px;
  border-color: #313131;
}
.grid-option .custom-select:hover,
.property-grid .grid-option .custom-select:active,
.property-grid .grid-option .custom-select:focus {
  border-color: #313131;
}
.grid-option .custom-select option {
  border-color: #313131;
}

/*======================================
//--//-->   AGENTS - CARD-D
======================================*/
.card-box-d .card-overlay-hover {
  transition: all 0.2s ease-in-out;
  padding: 15px 40px 15px 35px;
}
@media (min-width: 768px) {
  .card-box-d .card-overlay-hover {
    padding: 5px 15px 5px 10px;
  }
}
@media (min-width: 992px) {
  .card-box-d .card-overlay-hover {
    padding: 5px 40px 5px 35px;
  }
}
@media (min-width: 1200px) {
  .card-box-d .card-overlay-hover {
    padding: 15px 40px 5px 35px;
  }
}
.card-box-d .title-d {
  transition: 0.3s ease-in-out;
  font-size: 2rem;
  font-weight: 600;
  margin: 1rem 0;
  transform: translateY(-20px);
  opacity: 0;
}
@media (min-width: 768px) {
  .card-box-d .title-d {
    font-size: 1.1rem;
    margin: 0.5rem 0;
  }
}
@media (min-width: 992px) {
  .card-box-d .title-d {
    font-size: 1.5rem;
    margin: 1rem 0;
  }
}
@media (min-width: 1200px) {
  .card-box-d .title-d {
    font-size: 2rem;
    margin: 1rem 0;
  }
}
.card-box-d .content-d {
  opacity: 0;
  transition: 0.5s ease-in-out;
  transform: translateY(-40px);
}
@media (min-width: 768px) {
  .card-box-d .content-d {
    font-size: 0.8rem;
    margin: 0.5rem 0;
  }
}
@media (min-width: 768px) {
  .card-box-d .card-body-d p {
    margin-bottom: 8px;
    font-size: 0.8rem;
  }
}
@media (min-width: 992px) {
  .card-box-d .card-body-d p {
    margin-bottom: 12px;
    font-size: 1rem;
  }
}
.card-box-d .info-book {
  opacity: 0;
  transition: 0.5s ease-in-out;
}
.card-box-d {
  transition: 0.5s ease-in-out;
  transform: translateY(40px);
  height: auto;
}

.img-d {
  height: 300px;
  width: 300px;
}
.card-box-d .list-inline-item:not(:last-child) {
  margin-right: 25px;
}
.card-box-d:hover .card-overlay-hover {
  background-color: #f8b563;
  opacity: 0.9;
}
.card-box-d:hover .title-d,
.card-box-d:hover .content-d,
.card-box-d:hover .info-book,
.card-box-d:hover .card-footer-d {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  background: #f3f3f3;
  text-align: center;
  padding: 30px 0;
}
footer .copyright-footer {
  border-top: 1px solid #ddd;
  padding-top: 20px;
}

form.search {
  display: flex;
  margin: 0;
}

form.search input[type="search"] {
  display: inline-block;
  width: 15em;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  transition: 0.5s width;
}

form.search input[type="search"]:focus {
  width: 20em;
}

form.search > button {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

              
            
!

JS

              
                
              
            
!
999px
What did the HTML say to the CSS? I like your style.

Console