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="css-art--3-pie-venn-diagram">
  <div class="css-art--pie css-art--pie-1">
    <h3>Students</h3>
    <ul>
      <li>Create a scholarship</li>
      <li>Support a student organization</li>
      <li>Sponsor a capstone project</li>
    </ul>
  </div>
  <div class="pie-1-2-intersect">
    <h3>
      Students and Faculty
    </h3>
    <ul>
      <li>Support a fellowship</li>
      <li>Fund a research project</li>
    </ul>
  </div>
  <div class="css-art--pie css-art--pie-2">
    <h3>Faculty</h3>
    <ul>
      <li>Join a research consortium</li>
      <li>Support or initiate an endowment</li>
      <li>License new technology</li>
    </ul>
  </div>
  <div class="pie-2-3-intersect">
    <h3>
      Faculty and Infrastructure
    </h3>
    <ul>
      <li>Endow a faculty chair</li>
      <li>Join an affiliate center</li>
    </ul>
  </div>
  <div class="css-art--pie css-art--pie-3">
    <h3>Infrastructure</h3>    
    <ul>
      <li>Provide a capital gift</li>
      <li>Name the college</li>
      <li>Name the deanship</li>
    </ul>
  </div>
  <div class="pie-3-1-intersect">
    <h3 class="element-invisible">
      Infrastructure and Students
    </h3>
    <ul>
      <li>Support a fund or lecture series</li>
    </ul>
  </div>
  <div class="pie-main-intersection">
    <h3>Students, Faculty and Infrastructure</h3>
    Name a lab or&nbsp;learning space
  </div>
</div>

<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700,700i" rel="stylesheet">
              
            
!

CSS

              
                body {
  font-family: "Open Sans", sans-serif;
}

.css-art--3-pie-venn-diagram[class] {
  font-size: 1rem;
}

.css-art--3-pie-venn-diagram {
  position: relative;
  font-size: 1rem;
  width: 30em;
  margin: 5em auto;
}

.css-art--pie {
  position: relative;
  box-sizing: border-box;
  padding: 0.5em 0 2em;

  h3 {
    box-sizing: border-box;
    width: 100%;
    color: rgb(173, 53, 53);
  }
  
}

.css-art--pie,
.pie-1-2-intersect,
.pie-2-3-intersect,
.pie-3-1-intersect,
.pie-main-intersection {
  position: relative;
  padding: 1em 0 0.75em 1.5em;
  
  h3 {
    margin: 0 0 0.75em;
  }
  
  ul {
    margin: 0;
    padding: 0 0 0 1.5em;
  }
  
  li {
    margin: 0 0 0.25em;
  }

  &:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 0.5em;
    height: 100%;
    background: #be4c45;
  }
}

.css-art--pie-2 {
  &:before {
    background: #2b929e;
  }

  h3 {
    color: rgb(51, 133, 146);
  }
  
}

.css-art--pie-3 {
  &:before {
    background: #dc9947;
  }
  h3 {
    color: rgb(200, 133, 51);
  }
  
}

.pie-1-2-intersect {
  
  h3 {
    color: #40617f;
  }
  
  &:before {
    background: #40617f;
  }
  
}

.pie-2-3-intersect {
  
  h3 {
    color: #649540;
  }
  
  &:before {
    background: #649540;
  }
  
}

.pie-3-1-intersect {
  h3 {
    color: #bb5335;
  }
  
  &:before {
    background: #c5674c;
  }
  
}

.pie-main-intersection {
  h3 {
    color: #444;
  }
  
  &:before {
    background: #444;
  }
}


$venn-width: 45em;
$pie-width: 21em;
$pie-content-width: $pie-width - 12em;

@media (min-width: 51em) {
  .css-art--3-pie-venn-diagram {
    position: relative;
    font-size: 1rem;
    width: $venn-width + 4em;
    height: $venn-width;

    ul {
      padding-left: 1.125em;
    }

    li {
      font-size: 0.875em;
      padding: 0 0 0.25em;
    }
  }

  .css-art--pie {
    position: absolute;
    z-index: 0;
    box-sizing: border-box;
    width: $pie-width;
    height: $pie-width;
    border-radius: 50%;
    background: rgba(173, 53, 45, 0.7);
    color: #fff;

    
    &:before {
      display: none;
    }

    h3 {
      position: absolute;
      top: -3em;
      box-sizing: border-box;
      width: 100%;
    }

    ul {
      position: absolute;
      width: $pie-content-width;
      margin: 0 auto;
    }

  }

  .css-art--pie-1 {
    top: $venn-width / 2 - $pie-width + 4.5em;
    left: $venn-width / 2  - $pie-width + 6.5em;
    z-index: 1;

    h3 {
      padding-right: 4em;
    }

    ul {
      top: 4em;
      left: 2.5em;
    }

    li:nth-child(2) {
      padding-right: 1em;
    }

    li:nth-child(3) {
      padding-right: 2em;
    }
  }

  .css-art--pie-2 {
    top: $venn-width / 2 - $pie-width + 4.5em;
    right: $venn-width / 2 - $pie-width + 6.5em;
    background-color: rgba(0, 108, 119, 0.5);
    z-index: 3;

    h3 {
      padding-right: 2em;
      color: rgb(53, 161, 172);
      text-align: right;
    }


    ul {
      top: 4em;
      right: 1em;
    }
    
    li:nth-child(1) {
      padding-right: 2em;
    }

    li:nth-child(2) {
      padding-right: 1em;
    }
  }

  .css-art--pie-3 {
    bottom: $venn-width / 2 - $pie-width + 4.5em;
    left: $venn-width / 2 - $pie-width / 2 + 2em;
    z-index: 0;
    background-color: rgba(220, 153, 71, 1);

    h3 {
      top: auto;
      bottom: -3em;
      color: rgb(242, 141, 40);
      text-align: center;
    }

    ul {
      top: 12em;
      left: 6em;
    }
  }

  .pie-1-2-intersect,
  .pie-2-3-intersect,
  .pie-3-1-intersect {
    position: absolute;
    z-index: 5;
    display: inline-block;
    max-width: $pie-width - 5em;

    &:before,
    &:after {
      content: '';
      position: absolute;
      top: auto;
      right: auto;
      bottom: auto;
      left: auto;
      display: block;
      background: transparent;
    }

    &:after {
      width: 0.5em;
      height: 0.5em;
      border: 0.125rem solid #f0d9b8;
      border-radius: 50%;
    }
  
    h3 {
      position: absolute !important;
      clip: rect(1px 1px 1px 1px);
      clip: rect(1px,1px,1px,1px);
      overflow: hidden;
      height: 1px;
    }
  }

  .pie-1-2-intersect {
    left: 50%;
    transform: translate(-50%, 0);

    &:before {
      top: 100%;
      left: 50%;
      left: calc(50% - 0.0625rem);
      width: 0;
      height: 9em;
      border-left: 0.125rem solid #f0d9b8;
    }

    &:after {
      top: calc(100% + 9em);
      left: 50%;
      transform: translate(-50%, 0);
    }
  }
  
  .pie-2-3-intersect {
    top: $pie-width + ($venn-width / 2 - $pie-width + 4em);
    right: 0;
    width: 13em;
    text-align: right;

    &:before {
      bottom: 100%;
      right: 50%;
      right: calc(50% - 0.0625rem);
      width: 12em;
      height: 3em;
      border-top: 0.125rem solid #f0d9b8;
      border-right: 0.125rem solid #f0d9b8;
    }

    &:after {
      bottom: calc(100% + 3.0625em);
      right: calc(50% + 12em);
      transform: translate(0, 50%);
    }
    
    ul {
      display: inline-block;
      text-align: left;
    }
  }


  .pie-3-1-intersect {
    top: $pie-width + ($venn-width / 2 - $pie-width + 4em);
    left: 0;
    width: 13em;

    &:before {
      bottom: 100%;
      left: 50%;
      left: calc(50% - 0.0625rem);
      width: 12em;
      height: 3em;
      border-top: 0.125rem solid #f0d9b8;
      border-left: 0.125rem solid #f0d9b8;
    }

    &:after {
      bottom: calc(100% + 3.0625em);
      left: calc(50% + 12em);
      transform: translate(0, 50%);
    }
  }
  
  .pie-main-intersection {
    font-size: 0.875em;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    width: 8em;
    padding: 0;
    transform: translate(-50%, -50%) translate(0, -1.5em);
    text-align: center;
    color: #fff;
    
    &:before {
      display: none;
    }

    h3 {
      position: absolute !important;
      clip: rect(1px 1px 1px 1px);
      clip: rect(1px,1px,1px,1px);
      overflow: hidden;
      height: 1px;
    }
  }

}

              
            
!

JS

              
                
              
            
!
999px

Console