GithubHelp home page GithubHelp logo

janos97 / lcars Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joernweissenborn/lcars

0.0 2.0 0.0 94 KB

CSS Framework to style web pages like the fictional Star Trek computer operating system.

Home Page: http://garrett-.github.io/lcars/

License: MIT License

CSS 95.89% HTML 3.21% JavaScript 0.90%

lcars's Introduction

LCARS

Creator Note I no longer have the time to work on this. If anyone would like to take over, please let me know and I'll transfer ownership to you.

LCARS (Library Computer Access Retrieval System)

I'm recreating a LCARS website system that I created many years ago. It was a very large jQuery plugin. I think I'm just going to create a CSS system. Something much like that of Bootstrap, Foundation, Topcoat, Brick, or Pure.

I'm not exactly sure what tech I'll be building this off of. Right now I'm looking hard at Stylus with Nib, Jeet, Rupture, and Typographic.

Buttons

Finished the inital button classes. Example mark up

<a href="#" class="lcars-button radius">Rounded Button</a>
<a href="#" class="lcars-button right">Right Side Rounded Button</a>
<a href="#" class="lcars-button left">Left Side Rounded Button</a>

<a href="#" class="lcars-button radius">
  Button
  <span class="lcars-button-addition">B1</span>
</a>

<a href="#" class="lcars-button radius">
  <span class="lcars-button-addition">B1</span>
  Button
</a>

Grid System

Every CSS framework needs to have its own grid system. I've based mine off of fractions.

<div class="lcars-row">
  <div class="lcars-column u-1-3"> 1/3 page width </div>
  <div class="lcars-column u-1-3"> 1/3 page width </div>
  <div class="lcars-column u-1-3"> 1/3 page width </div>
</div>

<div class="lcars-row">
  <div class="lcars-column u-1-3"> 1/3 page width </div>
  <div class="lcars-column u-2-3"> 2/3 page width </div>
</div>

This grid goes up to 12 as the highest denominator, no numerator goes beyond its denominator.

This means there are a lot of way to get the same sizes. Example; these are all the same.

<div class="lcars-row">
  <div class="lcars-column u-1-2"> 1/2 page width </div>
  <div class="lcars-column u-2-4"> 2/4 (1/2) page width </div>
  <div class="lcars-column u-3-6"> 3/6 (1/2) page width </div>
  <div class="lcars-column u-4-8"> 4/8 (1/2) page width </div>
  <div class="lcars-column u-5-10"> 5/10 (1/2) page width </div>
  <div class="lcars-column u-6-12"> 6/12 (1/2) page width </div>
</div>

Grid prefix's and suffix's can be used to create spacing before and after a grid column.

<div class="lcars-row">
  <div class="lcars-column u-1-3 prefix-1-3"> 1/3 page width with 1/3 prefix margin</div>
  <div class="lcars-column u-1-3"> 1/3 page width </div>
</div>

<div class="lcars-row">
  <div class="lcars-column u-1-3"> 1/3 page width </div>
  <div class="lcars-column u-1-3 suffix-1-3"> 1/3 page width with 1/3 suffix margin</div>
</div>

Menus

To give you page that classic LCARS look you'll want to add vertical menus.

<ul class="lcars-menu">
  <li><a href="#">Menu Item 1</a></li>
  <li><a href="#">Menu Item 2</a></li>
  <li><a href="#">Menu Item 3</a></li>
  <li><a href="#">Menu Item 4</a></li>
  <li><a href="#">Menu Item 5</a></li>
</ul>

The defining style for a LCARS interface is the rounded elbows that connect horizontal dividers and the vertical menus.

LCARS Elbow

You can create these using the lcars-elbow class. You define the width of these elbows by adding them onto a column.

<div class="lcars-row">
  <div class="lcars-column u-1-8 lcars-elbow left bottom">
    Top Left elbow
  </div>
  <div class="lcars-column u-7-8 lcars-divider">
    Dashed divider lines
  </div>
</div>

Here is a demo showing how to use all these things together.

lcars's People

Contributors

garrett- avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.