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

              
                <!-- transparent fullscreen background -->
<div class="mlctr-underlayer">
 
  <!-- master popup div container -->
  <div class="mlctr-popup">
 
    <a class="mlctr-close" onclick="mailocator.action.do('close')"></a>
    <!-- following onsubmit event is required -->
    <form onsubmit="return mailocator.action.do('subscribe')" id="MailocatorForm">
       <!-- following div will be overwritten with success message -->
       <div class="mlctr-message-success" style="display:block">
         <div class="mlctr-red-box"><img src="https://cli.mlctr.com/cli001/webtop100/Logo.png"></div>
         <h2>Buďte vždy v&nbsp;obraze!</h2>
         <p class="mlctr-hexa">Případové studie <b>inspirativních digitálních projektů</b></p>
         <p class="mlctr-hexa"><b>Nejnovější podcasty</b> s&nbsp;osobnostmi českého digitálu</p>
         <p class="mlctr-hexa">Další <b>aktuality</b> do vašeho e-mailu</p>
         <div class="mlctr-message-error"><!-- all customized error messages will be placed here -->
         </div>
           <label></label>
           <!-- input with attribute name="email" is required -->
           <input type="text" name="email" value="" placeholder="Zadejte váš e-mail" /><input type="submit" value="ODEBÍRAT" />
         <div class="mlctr-privacy">Souhlasím se zpracováním osobních údajů pro účely zasílání obchodního sdělení.
         </div>
       </div>
       <!-- following div will replace the "mlctr-message-success" div -->
       <div class="mlctr-message-thanks" style="display:none">
         <div class="mlctr-red-box"><img src="https://cli.mlctr.com/cli001/webtop100/Logo.png"></div>
         <div class="mlctr-thx"></div>
         <h2>Děkujeme!</h2>
         <h3>Nyní Vám už nic <b>z&nbsp;naší produkce</b> neuteče.</h3>
         <!-- following event closes popup by users action -->
         <input type="button" value="ZAVŘÍT" onclick="mailocator.action.do('close')" />
       </div>
    </form>

   </div><!--/end of my-popup-container -->

</div><!--/end of my-popup-background-layer -->
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700;800&display=swap');

/* transparent fullscreen background */
.mlctr-underlayer {
  position: fixed;
  width: 100%;
  height: 100%;
  top:0;
  left:0;
  background: rgba(0,0,0,0.8);
  font-size: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  z-index: 9999;
} 

/* master popup div container */
.mlctr-popup {
  position: fixed;
  left: 50%;
  top: 50%;
	transform: translate(-50%, -50%);
  width: 680px;
  height: 320px;
  background: #ffffff;
  padding: 50px 30px 0 260px;
  text-align: left;
  border-radius: 0px;
  box-sizing: border-box;
  box-shadow: 2px 5px 20px RGBA(0,0,0,0.3);
  -moz-box-shadow: 2px 5px 20px RGBA(0,0,0,0.3);
  -webkit-box-shadow: 2px 5px 20px RGBA(0,0,0,0.3);
}
.mlctr-close {
  display: block;
  position: absolute;
  right: 15px;
  top: 15px;
  width: 20px;
  height: 20px;
  background: url(https://cli.mlctr.com/cli001/webtop100/Close.png) center center no-repeat;
  background-size: 18px 18px;
  cursor: pointer;
  -webkit-transition: -webkit-transform 0.5s;
  -moz-transition: -moz-transform 0.5s;
  -o-transition: -o-transform 0.5s;
  transition: transform 0.5s;
}
.mlctr-close:hover {
  -webkit-transform: rotate(270deg);
  -moz-transform: rotate(270deg);
  -o-transform: rotate(270deg);
  transform: rotate(270deg);
}
.mlctr-close:active {
  background-size: 16px 16px;
}
.mlctr-red-box {
  display: block;
  position: absolute;
  text-align: center;
  padding: 115px 0 0;
  left: 0px;
  top: 0px;
  width: 220px;
  height: 320px;
	border: 1px solid #b1403c;
  background: #e43f36;
  box-sizing: border-box;
}
.mlctr-thx {
  display: block;
  position: relative;
  width: 51px;
  height: 36px;
  background: url(https://cli.mlctr.com/cli001/webtop100/Hexagons.png) center center no-repeat;
  background-size: 51px 36px;
  margin: 0 0 18px 0;
  box-sizing: border-box;
}
.mlctr-popup h1 {
  width: 100%;
  font-size: 40px;
  line-height: 40px;
  font-weight: 700;
  color: #000;
  padding: 0px;
  margin: 0;
  box-sizing: border-box;
}
.mlctr-popup h2 {
  width: 100%;
  font-size: 28px;
  line-height: 44px;
  font-weight: 800;
  color: #000;
  padding: 0px;
  margin: 0 0 10px 0;
  box-sizing: border-box;
}
.mlctr-popup h3 {
  width: 100%;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: #000;
  padding: 0;
  margin: 15px 0 0 0;
  box-sizing: border-box;
}
.mlctr-popup p {
  position: relative;
  width: 100%;
  font-size: 12px;
  line-height: 20px;
  font-weight: 500;
  color: #000;
  padding: 15px 0 0 0;
  margin: 0 0 7px 0;
  box-sizing: border-box;
}
.mlctr-popup p.mlctr-hexa {
  padding: 1px 0 0 26px;
}
.mlctr-popup p.mlctr-hexa:before {
  position: absolute;
  left: 0px;
  top: 0px;
  content: '';
  width: 18px;
  height: 21px;
  background: url(https://cli.mlctr.com/cli001/webtop100/Hexagon.png) center center no-repeat;
  background-size: 18px 21px;
}
.mlctr-message-error {
  display: block;
  width: 100%;
  height: 20px;
  line-height: 20px;
  font-size: 11px;
  margin: 5px 0 2px 0;
  padding: 0 ;
  font-weight: 600;
  text-align: left;
  color: #e43f36;
  box-sizing: border-box;
}
.mlctr-popup ::-webkit-input-placeholder {color: #b2b2b2; }
.mlctr-popup :-moz-placeholder { color: #b2b2b2; opacity: 1; }
.mlctr-popup ::-moz-placeholder { color: #b2b2b2; opacity: 1; }
.mlctr-popup :-ms-input-placeholder { color: #b2b2b2; }
.mlctr-popup :input-placeholder { color: #b2b2b2; }

.mlctr-popup input[type="text"] {
  width: 240px;
  height: 37px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  padding: 2px 24px;
  background-color: #fff;
  border: 1px solid #cacdcf;
  border-radius: 0px;
  -moz-border-radius: 0px;
  -webkit-border-radius: 0px;
  color: #645b5b;
  text-align: left;
  margin: 0;
  -webkit-transition: all ease-in-out .15s;
  -moz-transition: all ease-in-out .15s;
  transition: all ease-in-out .15s;
  box-sizing: border-box;
}
.mlctr-popup input[type="text"]:focus {
	border: 1px solid #e43f36;
  outline: 0;
}
.mlctr-popup input[type="submit"], .mlctr-popup input[type="button"] {
  position: relative;
  width: 135px;
  height: 37px;
  font-family: inherit;
  font-size: 14px;
  line-height: 16px;
  font-weight: 700;
  padding: 2px 10px;
  margin: 0;
	border: 0px solid #e43f36;
  border-radius: 0px;
  -moz-border-radius: 0px;
  -webkit-border-radius: 0px;
  background-color: #e43f36;
  color: #ffffff;
  -webkit-transition: -webkit-all 0.5s;
  -moz-transition: -moz-transform 0.5s;
  -o-transition: -o-transform 0.5s;
  transition: transform 0.5s;
  cursor: pointer;
  box-sizing: border-box;
  outline: 0;
}
.mlctr-popup input[type="button"] {
  margin: 40px 0 0 0;
}
.mlctr-popup input[type="submit"]:hover, .mlctr-popup input[type="button"]:hover {
  letter-spacing: 0.3px;
  background-color: #f1493f;
}
.mlctr-popup input[type="submit"]:active, .mlctr-popup input[type="button"]:active {
  letter-spacing: -0.2px;
}
.mlctr-privacy {
  position: relative;
  width:100%;
  display: block;
  text-align: left;
  font-size: 10px;
  line-height: 15px;
  font-weight: 500;
  color: #645b5b;
  padding: 0 30px 0 26px;
  margin: 18px 0 0;
  box-sizing: border-box;
}
.mlctr-privacy:before {
  position: absolute;
  left: 0px;
  top: 0px;
  content: '';
  width: 18px;
  height: 16px;
  background: url(https://cli.mlctr.com/cli001/webtop100/Check.png) center center no-repeat;
  background-size: 18px 16px;
}
.mlctr-popup .mlctr-privacy a {
  color: #645b5b;
  font-weight: 700;
}
              
            
!

JS

              
                
              
            
!
999px

Console