cssAudio - ActiveCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <header>
  <h4>My Company</h4>
  <img src="http://placekitten.com/g/800/100" alt="logo placeholder">
</header>

<nav class="nav--alpha">
  <ul class="list--alpha">
    <a href=""><li class="active">Overview</li></a>
    <a href=""><li>Connect</li></a>
    <a href=""><li>Statistics</li></a>
    <a href=""><li>History</li></a>
  </ul>
  <ul class="list--alpha list--alpha__mod">
    <a href=""><li>FAQ</li></a>
    <a href=""><li>Applications</li></a>
    <a href=""><li>Feedback</li></a>
    <a href=""><li>Troubleshooting</li></a>
  </ul>
</nav>

<div class="content">
  
  <h1>Linux Terminal Server</h1>
  
  <article>
    <section class="thirty-seventy">
      <div class="text--left">
        <h3 class="redhat">Redhat</h3>
      </div>
      <div class="text--center">
        <h2>Redhat Terminal Server</h2>
        <p>
          <a href=""><button>Start</button></a>
        </p>
      </div>
    </section>
  </article>
  
  <article>
    <section class="thirty-seventy">
      <div class="text--left">
        <h3 class="suse">Suse</h3>
        <!--<img src="http://placekitten.com/200/200" alt="">-->
      </div>
      <div class="text--center">
        <h2>Suse Terminal Server</h2>
        <p>
          <a href=""><button>Start</button></a>
        </p>
      </div>
    </section>
  </article>
  
  <article>
    <section class="thirty-seventy">
      <div class="text--left">
        <h3 class="ubuntu">Ubuntu</h3>
        <!--<img src="http://placekitten.com/200/200" alt="">-->
      </div>
      <div class="text--center">
        <h2>Ubuntu Terminal Server</h2>
        <p>
          <a href=""><button>Start</button></a>
        </p>
      </div>
    </section>
  </article>
</div>
  
<nav class="nav--beta">
  <ul class="list--beta">
    <h4>Facts & Knowledge</h4>
    <a href=""><li>Learn how to use...</li></a>
    <a href=""><li>NX keeps your session...</li></a>
    <a href=""><li>You can use SSH to...</li></a>
    <a href=""><li>Use VNC to connect to...</li></a>
  </ul>
  
  <ul class="list--beta">
    <h4>Most Frequently Used Services</h4>
    <a href=""><li>Is your UserID enabled?</li></a>
    <a href=""><li>Other connection methods/tools</li></a>
  </ul>
  
  <ul class="list--beta list--beta__mod">
    <h4>Need help?</h4>
    <a href="">
      <li>In case the login fails, read the troubleshooting section.</li>
    </a>
    <li>If you still can't login, please open an ticket.</li>
  </ul>
</nav>
            
          
!
            
              @import "compass/css3";

* {
  @include box-sizing(border-box);
}

/**
 * Media Queries mixin
 */
@mixin breakpoint($point) {
  @if $point == papa-bear {
    @media (min-width: 67em) { @content; }
  }
  @if $point == mama-bear {
    @media (max-width: 66em) { @content; }
  }
  @if $point == baby-bear {
    @media (max-width: 44em) { @content; } 
  }
}

/* Width of content */
$width-alpha: 60%;
/* Width of nav */
$width-beta: (100 - $width-alpha) / 2;

/* blue */
$color-alpha: #008fd3;
/* grey */
$color-beta: #ececec;
/* dark grey*/
$color-gamma: #666;
/* yellow */
$color-delta: #ffc000;

body {
  margin:0;
  font: 1em "Tahoma", sans-serif;
  
  @include breakpoint(baby-bear) {
    font-size:1.25em;
  }
}

.grid {
  float:left;
  display:inline-block;
  
  @include breakpoint(baby-bear) {
    width:100%;
  }
}

.text--left {
  text-align:left;
}

.text--right {
  text-align:right;
}

.text--center {
  text-align:center;
}

a {
  text-decoration:none;
  color:$color-alpha;
  @include transition(
    color .25s ease-in-out
  );
  
  &:hover {
    color:$color-gamma;
  }
}

h1 {
  margin:0 0 .125em 0;
  color:#fff;
  font-size:2.5em;
  background: $color-delta;
  padding:.5em .25em;
}

h3 {
  font-size:3em;
  padding:.25em;
  display:inline-block;
  margin:.15em 0 0 .15em;
  text-shadow: 
    0 2px 0 rgba(0, 0, 0, .3),
    2px 0 0 rgba(0, 0, 0, .3)
  ;
  
  @include transition(
    padding-right .25s ease-in-out
  );
  
  &.redhat {
    color: #fff;
    background: #c00;
  }
  
  &.suse {
    background: #579B15;
    color: #fff;
  }
  
  &.ubuntu {
    background: #dd4814;
    color: #fff;
  }
}

header {
  background: $color-alpha;
  margin:0 0 .25em 0;
  padding:0;
  max-height:100px;
  overflow:hidden;
  
  h4 {
    position:absolute;
    left:.5em;
    top:.5em;
    margin:0;
    z-index:5;
    font:bold 2em sans-serif;
    text-transform:uppercase;
    color:#fff;
  }
  
  > img {
    display:block;
    margin:0 auto;
    width:100%;
    opacity:.5;
    min-height:25%;
  }
}

nav {
  @extend .grid;
  width:$width-beta;
  
  @include breakpoint(baby-bear) {
    width:100%;
  }
  
  > ul {
    margin:0 0;
  }
  
  &.nav--alpha {
    padding-right:.35em;
    
    @include breakpoint(baby-bear) {
      padding-right:0;
      margin-bottom:.35em;
    }
  }
  
  &.nav--beta {
    padding-left:.35em;
    
    @include breakpoint(baby-bear) {
      padding-left:0;
    }
  }
}

ul {
  list-style-type:none;
  
  li {
    position:relative;
    padding: 0 0 0 1.5em;
    
    @include transition(
      background .25s ease-in-out
    );
    
    &:before {
      position:absolute;
      left:.5em;
      content:'•';
    }
  }
  
  &.list--alpha {
    padding:0 0 0 0;
    border-top:.35em solid $color-gamma;
   
    li {
      line-height:2em;
      height:2em;
      border-bottom: solid 1px rgba($color-gamma, .3);
      color:#000;
      
      &:before {
        color:$color-alpha;
      }
      
      &:hover,
      &.active {
        background:$color-beta;
      }
      
      &.active {
        font-weight:bold;
      }
        
      @include breakpoint(baby-bear) {
        width:50%;
        float:left;
        line-height:2.5em;
        min-height:2.5em;
      }
    }
    
    &.list--alpha__mod {
      border-top:none;
      
      li {
        &:before {
          content:'>';
        }
      }
    }
  }
  
  &.list--beta {
    padding:0;
    border-top:.35em solid $color-gamma;
    margin: 0 0 1.15em 0;
    
    h4 {
      margin:0 0 .5em 0;
      padding: .5em .25em;
      background: $color-beta;
    }
    
    li {
      min-height:1.5em;
      padding-bottom:.35em;
    }
    
    &.list--beta__mod {
      li {
        padding-left:.5em;
        &:before {
          content:'';
        }
      }
    }
  }
}

.content {
  @extend .grid;
  width:$width-alpha;
  
  @include breakpoint(baby-bear) {
    width:100%;
  }
}

article {
  display:inline-block;
  width:100%;
  margin:0 0 0 0;
  background: rgba(0, 0, 0, .1);
  
  @include transition(
    background .25s ease-in-out
  );
  
  &:hover {
    background: rgba($color-delta, .25);
    
    h3 {
      padding-right:1.5em;
    }
  }
}

section {
  clear:both;
  
  > div {
    @extend .grid;
    width:50%;
    padding:0 1em 0 0;
    
    @include breakpoint(mama-bear) {
      &.text--center {
        text-align:right;
      }
    }
    
    @include breakpoint(baby-bear) {
      width:100%;
      
      padding: 0;
      
      &.text--center {
        text-align:center;
      }
    }
  }
  
  &.thirty-seventy {
    > div {
      width:70%;
      
    @include breakpoint(baby-bear) {
      width:100%;
    }
      
      &:first-child {
        width:30%;
        height: 8em;

        @include breakpoint(baby-bear) {
          width:100%;
        }
      }
    }
    
  }
}

button {
  width:50%;
  background:rgba(#4e6252, .7);
  border:none;
  color:#fff;
  font: 1em "Tahoma", sans-serif;
  padding:.75em;
  cursor:pointer;
  text-transform:uppercase;
  
  @include breakpoint(baby-bear) {
    width:100%;
  }
  
  &:hover {
    background:#333;
  }
}
            
          
!
            
               /**
  WIP: Internal Server Administration

  Just a very basic intranet page to start a terminal server.

  # 2013 by Tim Pietrusky
  # timpietrusky.com
**/
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console