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

              
                <body>
  <div id="bg">
    <span></span>
    <span></span>
    <span></span>
    <span></span>
    <span></span>
  </div>
<div class="login">
<nav>
<ul>
<li class="left">
    <a class="title" href="index.php">

    CalendarApp</a>
</li><li><a href="./">Homepage</a></li><li><a href="./">Homepage</a></li></ul></nav>
  <h1>
    Calendar
  </h1>
  <div id="calendararea" class="card">
<div class="month"> 
  <p>
    July
  </p>
</div>

<ul class="weekdays">
  <li>Mo</li>
  <li>Tu</li>
  <li>We</li>
  <li>Th</li>
  <li>Fr</li>
  <li>Sa</li>
  <li>Su</li>
</ul>

<ul class="days"> 
  <li class="notday"></li>
  <li>1</li>
  <li class="today">2</li>
  <li>3</li>
  <li>4</li>
  <li>5</li>
  <li>6</li>
  <li>7</li>
  <li>8</li>
  <li>9</li>
  <li>10</li>
  <li>11</li>
  <li>12</li>
  <li>13
    <ul>
      <li>Event Name Here</li>
      <li>Event Name Here</li>
      <li>Event Na asdas da sd asme Here</li>
      <li>Event Name Here</li>
      <li>Event Name Here</li>

    </ul>
  </li>
  <li>14</li>
  <li>15</li>
  <li>16</li>
  <li>17</li>
  <li>18</li>
  <li>19</li>
  <li class="event">20</li>
  <li>21</li>
  <li>22</li>
  <li>23</li>
  <li>24</li>
  <li class="event">25</li>
  <li>26</li>
  <li>27</li>
  <li>28</li>
  <li>29</li>
  <li>30</li>
  <li>31</li>

</ul>
  </div>
</body>
              
            
!

CSS

              
                $yellow: #FFE74C;
$red: #FF5964;
$pink: #C6878F;
$darkblue: #38618C;
$db: #53f;
$blue: #35A7FF;
$green: #1B998B;
@import url('https://fonts.googleapis.com/css?family=Cabin|Roboto|Open+Sans');
html,
body,
header,
footer,
hgroup,
nav,
article,
section,
figure,
figcaption,
h1,
h2,
h3,
ul,
li,
body,
div,
p,
img,
a {
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 100%;
  vertical-align: baseline;
  border: 0;
}

body {
  font-family: 'Open Sans';
  #bg {
    position: relative;
    display: block;
    width: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
    transform: skewY(-15deg);
    transform-origin: 0;
    background: linear-gradient(150deg, $db 15%, $red 70%, $red 94%);
    &.ev{
      background: linear-gradient(150deg, $blue 15%, $blue 70%, $darkblue 94%);
    }
    &.tt{
      background: linear-gradient(150deg, $green 15%, $green 70%, $darkblue 94%);
    }
    &.cal{
      background: linear-gradient(150deg, $blue 15%, white 70%, $red 94%);


    }
    &.main{
      background: linear-gradient(150deg, $yellow 15%, $red 70%, $red 94%);
    }
    span {
      float: left;
      display: block;
      width: 33.3333%;
      height: 350px;
      background-color: rgba($db, .75);
      &:nth-child(1) {
        position: absolute;
        top: 25%;
        left: 50%;
        background-color: rgba($db, .5);
      }
      &:nth-child(2) {
        position: absolute;
        bottom: 0;
        left: 0;
        background-color: rgba(255, 255, 255, .25);
      }
      &:nth-child(4) {
        position: absolute;
        top: 50%;
        right: 0;
        background-color: rgba(255, 255, 255, .25);
      }
    }
  }
}

nav {
  width: 100%;
  display: block;
  background-color: darken(gray, 35%);
  ul {
    width: 100%;
    text-align: left;
    display: block;
    list-style-type: none;
    li {
      display: inline-block;
      width: auto;
      a {
        font-size: .9rem;
        padding: .5rem 1rem;
        color: white;
        display: block;
        text-decoration: none;
        color: $blue;
        vertical-align: middle;
        padding-bottom: 1rem;
        &.title {
          font-size: 1.25rem;
          float: left;
          color:white;
          //padding-bottom:0;
          //margin-bottom:-.5rem;
          display: inline-block;
          font-weight: bolder;
        }
        float:left;
        transition:color .7s;
        &:hover {
          color: $pink;
        }
      }
      &:last-child {
        position: absolute;
        right: 0;
        top: .5rem;
      }
    }
  }
}

h1{
  color:white;
  font-size:2rem;
  margin-top:1rem;
  font-weight:bolder;
}

fieldset {
  width: 75%;
  margin: 2rem auto;
  margin-bottom:5rem;
  background-color: white;
  border:white;
  box-shadow: 7px 4px 25px  3px rgba(0, 0, 0, .5);
  legend {
    position: relative;
    display: block;
    float: left;
    width: 100%;
    font-weight: bolder;
    font-size: 2.5rem;
    color: darken(gray, 30%);
    padding: 1rem .25rem;
  }
  p {
    display: block;
    padding: .25rem;
    input{
      display:block;
      width:50%;
      margin:1rem auto;
      font-size:1.5rem;
      padding:.5rem 1rem;
      color:darken(gray,35%);
      border:0;
      border-bottom:1px solid lightgray;
      transition: color .5s, background-color 1s;
      &:focus{
        background-color:rgba($blue, .25);
        color:mix($red, $db, 25%);
        outline:0;
        border:0;
        box-shadow:none;
      }
    }
    input[type="submit"]{
      background-color:$green;
      color:white;
      border-radius:3px;
      transition:background-color .7s;
      &:hover{
        cursor:pointer;
        background-color: lighten($green, 10%);
      }
    }
    a{
      color:$darkblue;

    }
  }
  span.error{
    color:$red;
    display:block;
    width:100%;
  }
}

#introfield {
  h1 {
    display: block;
    color: white;
    font-size: 20rem;
    font-weight: bolder;
    padding: 3rem 0;
  }
}

div.card{
  position:relative;
  display:block;
  width: 75%;
  margin: 2rem auto;
  background-color: white;
  border:1px solid rgba(0,0,0,.1);
  // border-radius:5px;
  box-shadow: 6px 6px 0px 1px rgba(0, 0, 0, .5);
  padding-bottom:.5rem;
  h4,h5{
    display:block;
    padding:1rem 2rem;
    font-size:2rem;
    text-align:left;
    width:75%;
    margin-bottom:.25rem;
    border-bottom:2px solid rgba(0,0,0,.25);
  }
  h5{
    font-size:1.2rem;
  }
  form{
    width:100%;
    display:block;
    input[type="text"],textarea, input[type="date"]{
      display:block;
      width:90%;
      font-size:1rem;
      margin:1.25rem;
      padding:.5rem 1.15rem;
      border:1px solid rgba($blue, .4);
      color:$darkblue;
      transition:background-color .5s;
      outline:0;
      border:0;
      border:1px solid $blue;
      &:focus {
        background: tint($blue, 25%);
        color: white;
      }
    }
    textarea{
      min-height:4rem;
    }
    input[type="submit"]{
      outline:0;
      border:0;
      color:white;
      font-weight:bolder;
      cursor:pointer;
      transition:background-color .75s;
      background-color:$green;
    }
    input[type="submit"].plus{
      border:5px solid tint($green, 45%);
      position:absolute;
      right:-2%;
      font-size:2.75rem;
      border-radius:50%;
      padding:.25rem 1rem;
      bottom:10%;
      &:hover{
        background-color:tint($green,55%);
      }
    }
    .dualinput{
      margin-top:-.5rem;
      display:block;
      width:100%;
      text-align:left;
      .form-field{
        width:45%;
        display:inline-block;
        label{
          display:block;
          padding:0 0 .5rem;
          color:$blue;
          font-weight:bolder;
          width:85%;
          margin:0 auto;
          text-align:left;
        }
        input{
          width:85%;
          margin:0 auto;
          display:block;
        }
      }
    }
  }
  ul{
    list-style-type:none;
    display:block;
    width:100%;
    text-align:left;
    li{
      position:relative;
      display:block;
      width:100%;
      text-align:left;
      p{
        text-align:left;
        display:inline-block;
        width:80%;
        vertical-align:middle;
        font-size:1.15rem;
        font-weight:bolder;
        margin-left:2.5rem;
        padding:1rem 1.15rem;
        padding-bottom:.25rem;
        &.description{
          padding:0;
          font-size:.9rem;
          font-weight:normal;
          color:$darkblue;
          padding-left:3rem;
          border-bottom:1px dashed $pink;

          span{
            display:block;
            margin-top:.25rem;
            color:$blue;
            i.fa{
              color:$green;
              margin:0 .5rem 0 0;
              &:last-child{
                margin-left:1rem;
              }
            }
          }
        }
      }
      input{
        vertical-align:middle;
        display:inline-block;
        &.plus{
          righte:auto;
          left:-2%;
          font-size:1.5rem !important;
          padding:.3rem .7rem !important;
          &.incomplete{
            background-color:$red;
            border:5px solid $pink;
            &:hover{
              background-color:darken($pink, 15%);
            }
          }
        }
        &.edit, &.delete{
          position:absolute;
          margin:0 auto;
          width:10%;
          right:0;
          top:50%;
          background-color:$blue;
          transition:background-color .5s;
        }
        &.edit{
          margin-top:.5rem;
          &:hover{
            background-color:$darkblue;
          }
        }
        &.delete{
          margin-top:-1rem;
          background-color:$red;
          &:hover{
            background-color:$pink;
          }
        }
      }

      &.done{
        color:gray !important;
        background-color:rgba(0,0,0,.1);
        p.description{
          border-bottom:1px dashed gray;
        }
      }
    }
  }
}

#calendararea{
  display:block;
  .month p{
    width:100%;
    display:block;
    color:white;
    background-color:$db;
    padding:1.5rem 0;
    font-size:2rem;
    font-weight:bolder;
  }
  ul{
    display:block;
    padding:0;
    list-style-type:none;
    background-color:rgba(0,0,0,.2);
    li{
      display:inline-block;
      width:14%;
      text-align:center;
      font-size:1.25rem;
      padding:1.15rem 0;
      margin:0;
    }
    &.days{
      background-color:rgba(0,0,0,.05);
      li{
        text-align:left;
        padding:.25rem 0rem;
        font-size:1rem;
        color:$darkblue;
        background-color:rgba(0,0,0,.05);
        border-bottom:1px solid rgba(0,0,0,.1);
        height:9vh;
        overflow-y:auto;
        
        ul{
          display:block;
          li{
            width:100%;
            display:block;
            text-align:center;
            font-size:.85rem;
            padding:0;
            height:auto;
            color:white;
&:nth-child(4n+1){
   background: $red;
}
&:nth-child(4n+2){
   background: $blue;
}
&:nth-child(4n+3){
   background: $green;
}
&:nth-child(4n+4){
   background: $db;
}
          }
        }
        
        &.notday{
           opacity:0;
        }
        &.today{
          background-color:$blue;
        }
      }
    }
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console