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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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="card card-003 card-cc">
  <div class="card__wrapper">
    <aside class="card__aside">
      <h1 class="card__aside__parent-title">
        <section class="card__aside__title"><span class="card__aside__title__first">C<span class="card__aside__title__logo"><span class="card__aside__title__logo__inner">o</span></span>up</span><span class="card__aside__title__second">critique</span></section>
      </h1><img class="card__aside__logo" src="https://www.coup-critique.com/media/images/logo_white.png" alt="Coup critique">
      <h2 class="card__aside__category"><span class="card__aside__category__title">Café critique</span> <span class="card__aside__category__number">#003</span></h2>
    </aside>
    <header class="card__header">
      <div class="card__header__title">
        <h1>Qualité des études</h1>
      </div>
      <div class="card__header__lead">
        <p class="is-alternative is-spaced"><strong>Quels sont les critères simples permettant<br>d'évaluer la qualité d'une étude ?</strong></p>
        <p>Prenons l'exemple de la célèbre étude d'Andrew Wakefield sur le faux lien entre vaccin contre la rougeole et autisme. Un cas d'école !</p>
        <p class="is-img"><img src="https://www.coup-critique.com/media/images/upload/cc-003-1.jpg" alt="Andrew Wakefield retracted study"></p>
      </div>
    </header>
    <section class="card__content">
      <ul class="card__list">
        <li class="card__item">
          <p class="is-right"><img src="https://www.coup-critique.com/media/images/upload/cc-003-2.png" alt="Money"></p>
          <h2>Financement</h2>
          <p><small>Les auteurs <strong>doivent</strong> citer les sources du <strong>financement</strong> de l'étude, pour prévenir d'éventuels <strong>confilts d'intérêt</strong>.</small></p>
          <p><small><em>Dans le cas Wakefield, il fut ducouvert qu'il était financé par des avocats spécialisés dans les procès aux fabricants de vaccins.</em></small></p>
        </li>
        <li class="card__item">
          <p class="is-left"><img src="https://www.coup-critique.com/media/images/upload/cc-003-3.png" alt="Number"></p>
          <h2>Effectif</h2>
          <p><small>Plus l'<strong>échantillon</strong> d'étude est grand, plus les résultats sont statistiquement <strong>significatifs</strong>.</small></p>
          <p><small>L'étude Wakefield n'a été menée que sur 12 sujets, ce qui est totalement ridicule pour ce genre d'étude.</small></p>
        </li>
        <li class="card__item">
          <p class="is-right-2"><img src="https://www.coup-critique.com/media/images/upload/cc-003-4.jpg" alt="Quality"></p>
          <h2>Qualité du journal</h2>
          <p><small>Le <strong>journal</strong> dans lequel a été publié l'article est un critère. Les plus renommés sont plus exigeants.</small></p>
          <p><small>Pour Wakefield rien à redire ici, l'article était publié dans The Lancet, la plus prestigieuse revue médicale. Le fait qu'une étude d'aussi mauvaise qualité ai été publiée est anormal.</small></p>
        </li>
      </ul>
      <div class="card__conclusion">
        <p class="is-alternative"><strong>Il s'est de plus avéré que les données avaient été falsifiées (pensez reproductibilité !). Depuis que le journal a retiré son article, A. Wakefield n'a plus aucune crédibilité scientifique.</strong></p>
      </div>
    </section>
    <footer class="card__footer">
      <div class="card__footer__credit">
        <h2>Crédits</h2>
        <ul>
          <li>Texte et design : <a href="https://www.facebook.com/pg/CoupEspritCritique/" target="_blank">Monsieur Z</a></li>
          <li>Mise en page : <a href="https://www.lesieur.name/zetetique/" target="_blank">MachinisteWeb</a></li>
        </ul>
      </div>
      <div class="card__footer__about">
        <h2>À propos</h2>
        <ul>
          <li>v1.1.0</strong> </li>
          <li><a href="https://www.facebook.com/CoupEspritCritique/" target="_blank">fb.me/CoupEspritCritique</a></li>
        </ul>
      </div>
    </footer>
  </div>
</div>
              
            
!

CSS

              
                @font-face {
  font-family: 'Destroy';
  src: url('https://cdn.rawgit.com/Haeresis/BookAtlas/develop/assets/fonts/Destroy.eot?#iefix') format('embedded-opentype'),  url('https://cdn.rawgit.com/Haeresis/BookAtlas/develop/assets/fonts/Destroy.woff') format('woff'), url('https://cdn.rawgit.com/Haeresis/BookAtlas/develop/assets/fonts/Destroy.ttf')  format('truetype'), url('https://cdn.rawgit.com/Haeresis/BookAtlas/develop/assets/fonts/Destroy.svg#Destroy') format('svg');
  font-weight: normal;
  font-style: normal;
}

body
  background-color #000
  margin 0
  padding 0
  font-family 'Open Sans', Arial, sans-serif

.card
	line-height 1.15
	position absolute
	color #fff
	height 100%
	width 100%

	strong
		font-style italic

		^[0].card-cc ^[1..1]
			color #ff00fb

		^[0].card-mcem ^[1..1]
			color #04fdff

		^[0].card-aqtc ^[1..1]
			color #07f40f

		^[0].card-lmdj ^[1..1]
			color #ffdd40

	ul
		margin 0
		padding 0
		list-style-type none

	&__wrapper
		overflow-y scroll
		height 100%
		width 100%

	&__aside
	&__content
	&__header
	&__footer
		font-family 'Open Sans', Arial, sans-serif
		max-width 100vmin
		margin-left auto
		margin-right auto

	&__content
	&__header
	&__footer
		position relative
		z-index 2

	a
		text-decoration none
		&:hover
			text-decoration underline

		^[0].card-cc ^[1..1]
			color #ff00fb

		^[0].card-mcem ^[1..1]
			color #04fdff

		^[0].card-aqtc ^[1..1]
			color #07f40f

		^[0].card-lmdj ^[1..1]
			color #ffdd40

	&__aside
		display flex
		justify-content space-between
		order 1

		&__parent-title
			cursor pointer
			order 2
			margin 1.2vmin 1.6vmin

		&__category
			font-size 2.2vmin
			margin 1.6vmin
			text-transform uppercase
			order 1
			font-family Destroy
			text-shadow 0.1vmin 0.1vmin 0.1vmin #444, -0.1vmin 0.1vmin 0.1vmin #444, 0.1vmin -0.1vmin 0.1vmin #444, -0.1vmin -0.1vmin 0.1vmin #444

		&__logo
			position absolute
			top 50%
			left 50%
			z-index 1
			transform translate(-50%, -50%)
			opacity 0.2
			width 70vmin

		&__title
			text-transform uppercase
			font-size 2.2vmin
			text-shadow 0.1vmin 0.1vmin 0.1vmin #d26769, -0.1vmin 0.1vmin 0.1vmin #d26769, 0.1vmin -0.1vmin 0.1vmin #d26769, -0.1vmin -0.1vmin 0.1vmin #d26769
			color #fff
			font-family Destroy

			&__logo
				background-position center -0.5vmin;
				background-size 4vmin
				background-image url('https://www.coup-critique.com/media/images/logo_white.png')
				width 2.6vmin
				height 2.6vmin
				vertical-align middle
				display inline-block

				&__inner
					display none

			&__second
				display block
				margin-left 2vmin

	&__footer
		display flex
		justify-content space-between
		order 4
		margin-top 24px

		h2
			margin .1vmin 0
			font-size 1.6vmin

		li
			margin .1vmin 0
			font-size 1.2vmin

		&__credit
			margin 0 1.6vmin 1.6vmin 1.6vmin

		&__about
			margin 0 1.6vmin 1.6vmin 1.6vmin
			text-align right

	&__header
		h1
			text-align center
			font-size 6.2vmin
			text-transform uppercase
			color #fff
			font-weight normal
			font-style normal
			font-family Destroy
			margin 3.2vmin 1.6vmin

			^[0].card-cc ^[0..2]
				text-shadow 0.1vmin 0.1vmin 0.1vmin #ff00fb, -0.1vmin 0.1vmin 0.1vmin #ff00fb, 0.1vmin -0.1vmin 0.1vmin #ff00fb, -0.1vmin -0.1vmin 0.1vmin #ff00fb

			^[0].card-mcem ^[0..2]
				text-shadow 0.1vmin 0.1vmin 0.1vmin #04fdff, -0.1vmin 0.1vmin 0.1vmin #04fdff, 0.1vmin -0.1vmin 0.1vmin #04fdff, -0.1vmin -0.1vmin 0.1vmin #04fdff

			^[0].card-aqtc ^[0..2]
				text-shadow 0.1vmin 0.1vmin 0.1vmin #07f40f, -0.1vmin 0.1vmin 0.1vmin #07f40f, 0.1vmin -0.1vmin 0.1vmin #07f40f, -0.1vmin -0.1vmin 0.1vmin #07f40f

			^[0].card-lmdj ^[0..2]
				text-shadow 0.1vmin 0.1vmin 0.1vmin #ffdd40, -0.1vmin 0.1vmin 0.1vmin #ffdd40, 0.1vmin -0.1vmin 0.1vmin #ffdd40, -0.1vmin -0.1vmin 0.1vmin #ffdd40

			^[0].card-mcem.card-001 ^[0..2]
				text-align left
				margin 3.2vmin 5vmin
				
				span
					display block
					margin-left 20vmin
					
			^[0].card-mcem.card-002 ^[0..2]
				text-align left
				margin 3.2vmin 10vmin 1.6vmin
				
				span
					display block
					margin-left 28vmin

			^[0].card-cc.card-002 ^[0..2]
				text-align left
				margin 3.2vmin 7vmin

				span
					display block
					margin-left 20vmin

			^[0].card-cc.card-003 ^[0..2]
				margin 3.2vmin 0
					
		p
			font-size 2.8vmin
			margin 0.8vmin 1.6vmin
			
		^[0].card-cc.card-003 ^[0..1]
			&__lead
				text-align center
			
		.is-big // aqtc2
			text-transform uppercase
			text-align center
			font-size 6vmin
			margin 2.4vmin
			
		.is-img // cc 3
			margin 2.4vmin 14vmin
			
			img // cc 3
				max-width 100%
				height auto

		.is-spaced // cc 3
			margin-bottom 2.4vmin

		.is-alternative // cc 3
		    font-size 3.6vmin 
			
		^[0].card-mcem.card-002 ^[0..1]
			
			li
				margin-left 6vmin
				display inline-block
				
				&:nth-child(3)
					margin-bottom 1vmin

			small
				font-size 80%

	&__content
		margin 0 auto

		h2
			font-size 3.2vmin
			margin 0.8vmin 1.6vmin
			font-style italic
			font-weight bold

			^[0].card-cc ^[0..2]
				color #ff00fb

			^[0].card-mcem ^[0..2]
				color #04fdff

			^[0].card-aqtc ^[0..2]
				color #07f40f

			^[0].card-lmdj ^[0..2]
				color #ffdd40

			^[0].card-cc.card-002 ^[0..2]
				margin-top 2.4vmin
				margin-bottom 0
				
			^[0].card-mcem.card-002 ^[0..2]
				text-transform uppercase
				font-size 5vmin
				margin 1.6vmin
				text-align center
			
			^[0].card-lmdj.card-002 ^[0..2]
				color #fff
				font-size 3.8vmin
			    margin 1.6vmin 2.4vmin
			    font-style normal
			    text-align center
			    font-weight normal

			strong
				text-transform uppercase
				
			&.is-alternative // lmdj 2
				&.is-alternative
					color #fff

				font-style normal
				text-align center
				font-weight normal
				margin 0.8vmin 2.4vmin 1.6vmin
				
				strong
					font-size 5vmin

		h3
			font-size 2.8vmin
			margin 0.8vmin 1.6vmin
			font-style italic
			font-weight bold

			^[0].card-cc ^[0..2]
				color #ff00fb

			^[0].card-mcem ^[0..2]
				color #04fdff

			^[0].card-aqtc ^[0..2]
				color #07f40f

			^[0].card-lmdj ^[0..2]
				color #ffdd40

		h4
			font-size 2.4vmin
			margin 0.8vmin 1.6vmin
			font-style italic
			font-weight bold

		small
			font-size 70%
			display inline-block

			^[0].card-mcem.card-001 ^[0..2]
				font-style italic

		p
			font-size 2.8vmin
			margin 0.8vmin 1.6vmin
			text-align justify

		.is-center
			text-align center

			^[0].card-lmdj.card-001 ^[0..2]
				margin 2.4vmin 3.2vmin
				text-align-last center

		.is-far
			margin-top 3.2vmin

		.is-near
			margin-top -.8vmin
			line-height 1.30

			^[0].card-cc.card-001 ^[0..2]
				margin-top -1vmin

			^[0].card-aqtc.card-001 ^[0..2]
				margin-bottom 2vmin

		.is-right
			float right

			^[0].card-lmdj.card-001 ^[0..2]
				img
					height 19vmin
					
		.is-spaced // aqtc 2
			margin-top 4vmin

		&__lead
			h2
				^[0].card-lmdj.card-001 ^[0..3]
					margin-top 3.2vmin
					margin-bottom 3.2vmin
					font-size 5vmin
					text-align center
					text-transform uppercase

			p
				^[0].card-cc.card-001 ^[0..3]
				^[0].card-cc.card-002 ^[0..3]
					text-align center

			ul
				^[0].card-lmdj.card-001 ^[0..3]
					margin 2.4vmin 4vmin
					font-size 3.2vmin

				strong
					display inline-block
					width 19vmin

			.is-important
				margin-bottom 2.4vmin
				font-size 3.6vmin

			.is-spaced
				margin-bottom 2.4vmin

			.is-img
				margin 2.4vmin 10vmin
				
				img
					^[0].card-cc.card-002 ^[0..4]
						width 70vmin

		&__list

			^[0].card-cc.card-001 ^[0..2]
			^[0].card-cc.card-002 ^[0..2]
				display flex
				flex-wrap wrap
				justify-content space-around

			^[0].card-lmdj.card-001 ^[0..2]
			^[0].card-lmdj.card-002 ^[0..2]
				border-top 1px solid #ffdd40
				border-bottom 1px solid #ffdd40
				display flex
				flex-wrap wrap
				justify-content space-between
				margin 0
				margin-bottom 2.4vmin
				padding 0
				list-style-type none

			.is-important
				font-size 2.6vmin

				^[0].card-cc.card-001 ^[0..3]
					margin-top 1vmin

			h2
				^[0].card-cc.card-002 ^[0..3]
					text-align center

				^[0].card-mcem.card-001 ^[0..3]
					margin 3.2vmin 1.6vmin -0.8vmin 4.8vmin
					text-transform uppercase

				^[0].card-aqtc.card-001 ^[0..3]
					display inline-block
					text-transform uppercase
					margin 0.8vmin 1.6vmin 0.8vmin 20vmin
					width 17vmin

			p
				^[0].card-cc.card-001 ^[0..3]
					font-size 1.92vmin
					margin 0.8vmin 3.2vmin
					text-align-last center

				^[0].card-cc.card-002 ^[0..3]
					margin 0.8vmin 1.6vmin
					text-align-last center

				^[0].card-aqtc.card-001 ^[0..3]
					display inline-block
					font-size 3.2vmin
					margin 1.6vmin
					font-weight bold
					font-style italic

			&__item
				^[0].card-cc.card-001 ^[0..3]
					text-align center
					width 42vmin

				^[0].card-cc.card-002 ^[0..3]
					width 46vmin

				^[0].card-lmdj.card-001 ^[0..3]
					text-align left
					margin-top 2vmin
					margin-bottom 2vmin

					&:nth-child(1)
						width 5%

					&:nth-child(2)
					&:nth-child(3)
						width 45%

					p
						font-size 2vmin
						text-align left

					h2
						transform rotate(-90deg)
						white-space nowrap
						margin-left 0
						margin-top 25vmin
						font-size 3.6vmin

					h3
						margin 0 1.6vmin 0.8vmin

				.is-center
					text-align center

		&__conclusion

			p
				^[0].card-cc.card-001 ^[0..3]
					margin 0.8vmin 3.2vmin
					text-align-last center

				^[0].card-cc.card-002 ^[0..3]
					font-size: 2.4vmin;
					text-align center

			.is-left
				float left
				
				img
					^[0].card-cc.card-002 ^[0..4]
						width 12vmin

			.is-right
				float right
				
				img
					^[0].card-cc.card-002 ^[0..4]
						width 12vmin

			.is-huge
				font-size 3vmin

			^[0].card-cc.card-002 ^[0..2]
				margin 5.6vmin 4vmin 2.4vmin
	
	&__list
		^[0].card-mcem.card-002 ^[0..1]
			margin 1.6vmin 0
			padding 0
			list-style-type none
			
		h2 // aqtc 2
			text-transform uppercase
			font-size 4vmin
			margin 0.8vmin 1.6vmin
			font-style italic
			font-weight bold


			^[0].card-cc.card-003 ^[0..2]
				font-size 3.2vmin
				margin 1.6vmin 1.6vmin 0.8vmin
				text-transform none
			
		h3 // lmdj
			display inline-block
			text-transform none
			font-size 3.6vmin
			margin 0 1.6vmin 0.8vmin 16vmin
			font-weight normal
			width 21vmin

		.is-right-2 // cc 3
			float right
			
			^[0].card-cc.card-003 ^[0..2]
				margin 4vmin 0.8vmin 0 4vmin
				
				img
					height 16vmin
			
		.is-right // cc 3
			^[0].card-cc.card-003 ^[0..2]
				margin 4vmin 0 0 2vmin
				
				img
					height 16vmin
				
		.is-left // cc 3
			float left

			^[0].card-cc.card-003 ^[0..2]
				margin 0 5vmin
				
				img
					height 16vmin
			
	&__item
		^[0].card-cc.card-003 ^[0..1]
			text-align justify
		
		^[0].card-lmdj.card-002 ^[0..1]
			text-align left
			
		p
			font-size 2.8vmin // lmdj 2
			margin 0.8vmin 1.6vmin // lmdj 2
			
			^[0].card-lmdj.card-002 ^[0..2]
				display inline-block
		
		^[0].card-cc.card-003 ^[0..1]
			h2
				text-align left
				
			small
				font-size 80%
				display block

	&__conclusion
		^[0].card-aqtc.card-002 ^[0..1]
			margin-top 4vmin
		
		.is-alternative
			font-size 3.2vmin
		
		^[0].card-aqtc.card-002 ^[0..1]
			.is-alternative
				margin 3.2vmin
				text-align center
		
		^[0].card-lmdj.card-002 ^[0..1]
			.is-alternative
				font-size 3.2vmin
				text-align justify

		^[0].card-cc.card-003 ^[0..1]
			.is-alternative
				font-size 3vmin
				margin 3.2vmin
				text-align center
			
		p
			margin 0.8vmin 1.6vmin

			&.is-center // lmdj 2
				margin-bottom 2.4vmin
				font-size 3.2vmin
              
            
!

JS

              
                var title = document.querySelector('.card__header__title h1'),
    category = document.querySelector('.card__aside__category__title');

title.innerHTML = title.innerHTML.replace(/é/g, 'e');
category.innerHTML = category.innerHTML.replace(/é/g, 'e');
              
            
!
999px

Console