Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's 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 it's URL and the proper URL extention.

+ 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

Save Automatically?

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="SE-module desktop-module">
  <h2 class="module-header">Suggested edits</h2>
  <div class="module-body">
    <div class="suggested-edits-module-wrapper">
      <div class="suggested-edits-filters">
        <span class="levels-icon"></span>
Easy, Medium, Hard edits      </div>
      <div class="suggested-edits-pager">
        <strong>1</strong> of <span class="se-total-count skeleton"><strong>200</strong></span> suggestions
      </div>    
      <div class="suggested-edits-card-wrapper">
        <div class="suggested-edits-previous">
          <span class="oo-ui-icon-arrowPrevious"></span>
          <label>Previous suggested edit</label>
        </div>
        <div class="suggested-edits-card">
        <div class="suggested-edits-task-card-wrapper">
          <div class="se-card-image skeleton"></div>
          <div class="se-card-text" dir="ltr">
          <h3 class="se-card-title skeleton">Article title</h3>
          <div class="se-card-extract skeleton">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna al...</div>
            <div class="se-card-pageviews skeleton"><span class="pageviews-icon"></span>17.1K views (last 60 days)</div>
        </div>
          </div>         
        </div>
        <div class="suggested-edits-next">
          <span class="oo-ui-icon-arrowNext"></span>
          <label>Next suggested edit</label>
        </div>
      </div>
      <div class="suggested-edits-task-explanation skeleton">
        <div class="suggested-edits-task-explanation-wrapper">
          <div class="suggested-edits-title-and-info">
              <h4>Copyedit</h4>
              <span class="oo-ui-iconElement-icon oo-ui-icon-info"></span>
              <div class="suggested-edits-difficulty-indicator suggested-edits-difficulty-indicator-easy">Easy</div>
          </div>
          <p class="suggested-edits-short-description">Fix spelling, grammar, and tone</p>
        </div>       
      </div>
      <div class="suggested-edits-footer skeleton" style=";">Other users have noted these articles need work. Help make <b>Wikipedia</b> better for its <b>2B readers</b> each month.</div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                /*skeleton with custom background-images and animation*/
.se-card-image.skeleton {
      animation: loading 2s ease infinite;
  animation-delay:400ms;
}
.se-card-title.skeleton {
  animation: loading 2s ease infinite;
  animation-delay:600ms;
}

.se-card-extract.skeleton {
      animation: loading 2s ease infinite;
  animation-delay:800ms;
}

.se-card-pageviews.skeleton {
      animation: loading 2s ease infinite;
  animation-delay:1200ms;
}

.suggested-edits-task-explanation {
  animation: fadein 4s ease 1;
}

.se-total-count.skeleton{
  animation: countloader 2s ease infinite;
}

.suggested-edits-footer.skeleton {
  animation: footerloader 6s ease 1;
}

@keyframes footerloader { 
    0% { 
      opacity: 0;
      transform:  translate(0px,48px)  ;
    } 
    50% {
      opacity: 0; 
      transform:  translate(0px,24px)  ;
     }  
    100% {
      opacity: 1; 
      transform:  translate(0px,0px)  ;
     }  
}


@keyframes countloader { 
    0% { 
      opacity: 0;
      transform:  translate(0px,-4px)  ;
    } 
    50% {
      opacity: .8; 
      transform:  translate(0px,0px)  ;
     }  
    100% {
      opacity: 1; 
      transform:  translate(0px,-4px)  ;
     }  
}


@keyframes loading { 
    0% { 
        opacity: 0.5; 
    } 
    40% { 
        opacity: 1; 
     } 
    60% { 
        opacity: 1; 
     }  
    100% { 
        opacity: .4; 
     }  
}

@keyframes fadein { 
    0% { 
      opacity:0;
    } 
    40% { 
      opacity:0;
    }  
    70% { 
      opacity:0.5;
    }  
    100% { 
      opacity:1;
    }  
}


.se-total-count {
  display:inline-block;
  width: 24px;
}

.se-total-count.skeleton::before{
  position:absolute;
  content:'...';
  background-color:#f5f9ff;
  width:24px;
  margin:0;
  padding:0;
  z-index:200;
}


.se-card-extract.skeleton::before {
  content:'';
  width:100%;
  height:100%;
  float: left;
  background-repeat: no-repeat;
  background-image: 
    linear-gradient(#eaecf0 14px, transparent 0),
    linear-gradient(#eaecf0 14px, transparent 0),
    linear-gradient(#eaecf0 14px, transparent 0);
    background-size:
    100% 12px, /* line 1 */
    100% 12px, /* line 2 */
    100% 12px; /* line 3 */
    background-position:
    0px 4px, /* line 1 */
    0px 21px, /* line 2*/
    0px 38px; /* line 3*/
  }

.se-card-image.skeleton::before {
  content:'';
  width:100%;
  height:100%;
  float: left;
  background-repeat: no-repeat;
  border-radius:2px 2px 0px 0px;
  background-image: 
    linear-gradient(#eaecf0 100%, transparent 0);
    background-size:
    100% 100%;
    background-position:
    0px 0px; 
  }

.se-card-title.skeleton::before {
  float: left;
  content:'';
  width:100%;
  height:20px;
  background-image: 
    linear-gradient(#C8CCD1 100%, transparent 0);
    background-size:
    100% 100%;
    background-position:
    0px 0px; 
  }

.se-card-pageviews.skeleton::before {
  position:absolute;
  float: left;
  content:'';
  width:232px;
  height:16px;
  clear:both;
  background-repeat: no-repeat;
  background-image: 
    linear-gradient(#eaecf0 100%, transparent 0);
    background-size:
    100% 100%; /* line 3 */
    background-position:
    0px 0px; /* line 3*/
  z-index:100;
  }

/*==== SE module styles*/

.SE-module {
width:376px;
  background-color: rgba(234,243,255,0.5);
  margin: 16px;
  padding: 16px 16px 0px;
    font-family: 'Helvetica', sans-serif;
  color: #222222;
}

.desktop-module {
    border: #c8ccd1 1px solid;
  border-radius: 2px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.15);
  box-shadow: 0 1px 1px 0 rgba(0,0,0,0.15);
}

.module-header {
  padding:0 0 16px;
  margin:0;
  line-height:1;
}

.module-body{
}

.suggested-edits-module-wrapper{
    display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


.desktop-module .module-body .suggested-edits-filters {
    width:100%;
  height:32px;
  line-height:32px;
  border-radius: 2px;
  z-index: 0;
  position: relative;
  padding: 0px;
  margin-bottom:24px;
  background-color: #f8f9fa;
  border: solid 1px #a2a9b1;
  font-size:14px;
  font-weight:bold;
}

.levels-icon {
  background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22%3E %3Cpath d=%22M1 19h6v-6H1zm1-5h4v4H2z%22 fill=%22%2354595d%22/%3E %3Cpath d=%22M8 19h5V7H8zM9 8h3v10H9z%22 fill=%22%2354595d%22/%3E %3Cpath d=%22M14 1v18h5V1zm4 17h-3V2h3z%22 fill=%22%2354595d%22/%3E %3C/svg%3E");
  background-position:center center;
  display:inline-block;
  vertical-align:middle;
  height:20px;
  width:28px;
  background-repeat:no-repeat;
  padding-left:8px;
}

.suggested-edits-pager {
  font-size:13px;
text-align:center;
}


/*=== CARD CSS*/
.suggested-edits-card-wrapper{
    margin-top:8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  height: 256px;
}

.suggested-edits-previous, .suggested-edits-next {
  padding:8px;
}

.suggested-edits-previous label, .suggested-edits-next label{
  display:none;
}

span.oo-ui-icon-arrowPrevious {
  display: block;
  width:20px;
  height:20px;
  background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E %3Ctitle%3E previous %3C/title%3E %3Cpath d=%22M5.83 9l5.58-5.58L10 2l-8 8 8 8 1.41-1.41L5.83 11H18V9z%22/%3E %3C/svg%3E");
}

span.oo-ui-icon-arrowNext {
  display: block;
  width:20px;
  height:20px;
  background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E %3Ctitle%3E next %3C/title%3E %3Cpath d=%22M8.59 3.42L14.17 9H2v2h12.17l-5.58 5.59L10 18l8-8-8-8z%22/%3E %3C/svg%3E");
}

/* article card CSS */
.suggested-edits-card {
    box-shadow: 0 5px 10px 0 rgba(0,0,0,0.15);
    width: 264px;
    background-color: #ffffff;
}

.se-card-image {
  height: 128px;
  width: 264px;
  background-image: url('https://en.wikipedia.beta.wmflabs.org/w/extensions/GrowthExperiments/images/suggestededits/placeholder-image.svg?cd277');
  background-repeat: repeat-x;
}

.se-card-text {
  height: 128px;
  padding: 0px 16px;
  color: #222222;
}

.se-card-title{
  margin: 0;
  padding:12px 0px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height:1.2;
}

.se-card-extract {
    position: relative;
  overflow: hidden;
  color:#54595D;
  font-size: 12.4px;
  line-height: 1.4;
  height: 52px;
}

.se-card-pageviews{
    font-size: 11px;
  padding-top: 10px;
  color: #54595d;
  height:16px;
}

span.pageviews-icon{
    background-image:url('https://en.wikipedia.beta.wmflabs.org/w/load.php?modules=oojs-ui.styles.icons-media&image=chart&format=rasterized&skin=vector&version=fygvq');
  opacity:.65;
  display:inline-block;
  background-size:cover;
  background-repeat:no-repeat;
  width:16px;
  height:16px;
  border-right:solid 4px transparent;
  vertical-align:middle;
}



/* == explanation */
.suggested-edits-task-explanation-wrapper {
  padding: 24px 0;
  width: 260px;
}

.suggested-edits-title-and-info {  display: flex;
  justify-content: center;
  align-content: center;
}

.suggested-edits-title-and-info h4{
  margin-top: unset;
  margin-bottom: unset;
  padding-top: unset;
  font-size:14px;
}

.suggested-edits-difficulty-indicator {
  margin-left: auto;
  margin-top: 2px;
  text-transform: uppercase;
  font-size: 12px;
  height: 14px;
  line-height: 1.4em;
  position: relative;
  padding: 2px 4px;
  box-sizing: content-box;
}

.suggested-edits-difficulty-indicator-easy{
    background-color: rgba(20,134,109,0.2);
  color: #14866d;
}

.suggested-edits-difficulty-indicator-easy::after{
  content: '';
  position: absolute;
  right: -4px;
  bottom: 0;
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-top: 9px solid rgba(20,134,109,0.2);
  border-bottom: 9px solid rgba(20,134,109,0.2);
}

.suggested-edits-short-description{
font-size:12.4px;
  line-height:1.4;
  color:#54595D;
}
/* == Footer == */
.suggested-edits-footer {
  background-color:#fff!important;
  margin-left:-16px;
  margin-right:-16px;
  padding:16px;
  bottom:0;
  font-size:12.4px;
  color:#54595D;
}

              
            
!

JS

              
                
              
            
!
999px

Console