cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console