27 Commits

Author SHA1 Message Date
vinicius.reif
9e65ef0f6f Removed general html thats it was used for tests; Changed the variable colors; Created variable to disable default scroll; Builded; 2019-09-17 13:13:47 -03:00
vinicius.reif
5d2c2d94b2 Merge branch 'master' of https://github.com/vinibiavatti1/TuiCss 2019-09-16 13:34:51 -03:00
vinicius.reif
1a8bbc77c0 Fixes 2019-09-16 13:34:35 -03:00
vinicius.reif
e175f648a1 Added orange 255 color; Created different hover and striped types for table; Added sidenav for turbo vision example; 2019-09-13 13:46:50 -03:00
Vinicius Reif Biavatti
5411a40dfd Update README.md 2019-09-12 13:20:49 -03:00
Vinicius Reif Biavatti
2bb8771f0a Update README.md 2019-09-12 13:19:49 -03:00
Vinicius Reif Biavatti
97dbe17703 Update README.md 2019-09-12 13:14:11 -03:00
Vinicius Reif Biavatti
ac25a6edbf Update README.md 2019-09-12 13:13:34 -03:00
Vinicius Reif Biavatti
e505d7bc99 Update README.md 2019-09-12 13:12:37 -03:00
Vinicius Reif Biavatti
60e65ba52e Update README.md 2019-09-12 13:12:06 -03:00
Vinicius Reif Biavatti
d970177ea9 Update README.md 2019-09-12 13:11:45 -03:00
Vinicius Reif Biavatti
088c7d2229 Update README.md 2019-09-12 13:11:37 -03:00
Vinicius Reif Biavatti
379da944b1 Update README.md 2019-09-12 13:00:01 -03:00
vinicius.reif
a478627e01 Changed the screen resolution for 640x480. Created centered class for screen; 2019-09-12 12:58:14 -03:00
Vinicius Reif Biavatti
cc375dd9f3 Created scroll bar variables 2019-09-11 20:02:32 -03:00
Vinicius Reif Biavatti
a256bae66e Created other scroll styles 2019-09-11 19:58:36 -03:00
Vinicius Reif Biavatti
4f56845a7a Add files via upload 2019-09-11 19:31:14 -03:00
vinicius.reif
dc1200a46a Fixes 2019-09-09 19:40:59 -03:00
vinicius.reif
58417a711e Fixed the datetime controller; Some other changes... 2019-09-09 13:18:14 -03:00
vinibiavatti
6909da3c2a Merge branch 'master' of https://github.com/vinibiavatti1/TuiCss 2019-09-08 15:30:28 -03:00
vinibiavatti
eb2e19f6c5 Add infos to package.json; Add orange bgs; Created orange bg classes; Fix input type button width; 2019-09-08 15:30:04 -03:00
vinibiavatti
b6df894344 Create modal component; Change the fieldset class to remove window. Other little changes... 2019-09-07 15:28:45 -03:00
Vinicius Reif Biavatti
8bc8b091cc Update README.md 2019-09-06 23:05:07 -03:00
vinicius.reif
742991ace8 Updates 2019-09-06 19:40:57 -03:00
vinibiavatti
075b56fcc6 Created examples 2019-09-06 00:07:44 -03:00
Vinicius Reif Biavatti
2e1b284d12 Update README.md 2019-09-05 13:35:15 -03:00
vinicius.reif
2ba52ac5e7 Project refactored to use NPM package manager, jquery and created new features 2019-09-05 13:26:09 -03:00
110 changed files with 9988 additions and 1659 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
node_modules

328
README.md
View File

@@ -1,327 +1,9 @@
# TuiCss
Text-based user interface CSS framework
### Text-based user interface CSS framework
TuiCss is a framework to create web applications using an interface based in ASCII text like MS-DOS applications. This kind of interface is very eligible because the ultra-contrast colors used. This framework was created following the <a href="https://en.wikipedia.org/wiki/Turbo_Vision">Turbo Vision UI Framework</a> and other applications based on TUI.
TuiCss is a framework focused to create web applications using an interface based in ASCII table, like MS-DOS applications. This kind of interface is very eligible because the ultra-contrast colors used and the less effects of the elements. The main framework thats is following to develop TuiCss is <a href="https://en.wikipedia.org/wiki/Turbo_Vision">Turbo Vision Framework</a> with some techniques with [box-drawing characters](https://en.wikipedia.org/wiki/Box-drawing_character), but some others frameworks were checked too, like [curses](https://en.wikipedia.org/wiki/Curses_(programming_library)), [ncurses](https://en.wikipedia.org/wiki/Ncurses), [Newt](https://en.wikipedia.org/wiki/Newt_(programming_library)), etc. Check the examples page in the wiki to see some creations!
![TuiCss](https://image.ibb.co/gdAYN9/tuiCSS.png)
<img src="https://i.ibb.co/zhJMy1h/Tui-Css-home.png" width="600">
## Getting Started
To use TuiCss, you have to download the TuiCss folder of the repository and import the tuicss.css to your html page using this tag:
```html
<link rel="stylesheet" href="TuiCss/tuicss.css" />
```
Don't forget to keep the images folder in the same folder of the css file because the css uses this folder as reference to get the images for some classes.
## Components
This is a simple doc for the avaiable components in the framework. For more details, download the repository and run example.html to check the full code.
### Navbar
<img src="https://image.ibb.co/fACzUp/tui_nav.png"/>
```html
<nav class="tui-nav tui-nav-fixed">
<span class="tui-clock" id="clock"></span>
<ul>
<li>
...
</li>
</ul>
</nav>
```
### Navbar Menu
<img src="https://image.ibb.co/kv0Tpp/tui_menu.png"/>
```html
<li class="tui-dropdown">
<span class="red-168-text">F</span>ile
<div class="tui-dropdown-content">
<ul>
<li>
<a href="#!">
<span class="red-168-text">O</span>pen
<span class="tui-shortcut">ctrl+o</span>
</a>
</li>
<div class="tui-black-divider"></div>
<li>
<a href="#!">
<span class="red-168-text">Q</span>uit
<span class="tui-shortcut">F4</span>
</a>
</li>
</ul>
</div>
</li>
```
### Sidenav
<img src="https://image.ibb.co/ci06aU/tui_sidenav.png"/>
```html
<nav class="tui-sidenav">
<ul>
<li>
<a href="#!">Open</a>
...
</li>
</ul>
</nav>
```
### Window
<img src="https://image.ibb.co/jcRMs9/tui_window.png"/>
```html
<div class="tui-window">
<fieldset class="tui-window-fieldset">
<legend>Window</legend>
<button class="tui-fieldset-button"><span class="green-255-text"></span></button>
...
</fieldset>
</div>
```
### Fieldset Status Bar
<img src="https://image.ibb.co/grD4ep/tui_fieldset_statusbar.png"/>
```html
<div class="tui-window">
<fieldset class="tui-window-fieldset">
...
<div class="tui-fieldset-statusbar">Text format: UTF-8</div>
...
</fieldset>
</div>
```
### Buttons
<img src="https://image.ibb.co/dqaLkU/tui_buttons.png" />
```html
<a href="#!" class="tui-button">button</a>
<button class="tui-button">button</button>
```
### Status Bar
<img src="https://image.ibb.co/egTHX9/tui_statusbar.png" />
```html
<div class="tui-statusbar">
<ul>
<li><a href="#!"><span class="red-168-text">F1</span> Help</a></li>
<li><a href="#!"><span class="red-168-text">F2</span> Shell</a></li>
<li><a href="#!"><span class="red-168-text">F3</span> Open</a></li>
<span class="tui-statusbar-divider"></span>
<li><a href="#!"><span class="red-168-text">F10</span> Exit</a></li>
</ul>
</div>
```
### Menu List
<img src="https://image.ibb.co/ihphX9/tui_menu_list.png" />
```html
<div class="tui-window">
<fieldset class="tui-window-fieldset tui-window-fieldset-no-legend tui-border-solid">
<ul>
<li class="cyan-255-hover black-255-text-hover">
<span class="tui-shortcut">A</span>
<span>Register Tables</span>
</li>
<li class="cyan-255-hover black-255-text-hover">
<span class="tui-shortcut">B</span>
<span>Quit</span>
</li>
</ul>
</fieldset>
</div>
```
### Panel
<img src="https://image.ibb.co/dapGs9/tui_panel.png" />
```html
<div class="tui-panel">
...
</div>
```
### Inputs
<img src="https://image.ibb.co/fCRFKp/tui_inputs.png" />
```html
<!-- Input -->
<input class="tui-input" type="text" />
<input class="tui-input" type="number" />
<input class="tui-input" type="email" />
<input class="tui-input" type="password" />
<input class="tui-input" type="color" />
<input class="tui-input" type="date" />
<input class="tui-input" type="datetime-local" />
<!-- Select -->
<select class="tui-input">
<option selected>-- SELECT --</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
<select class="tui-input" multiple>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
<!-- Checkbox -->
<label class="tui-checkbox">
Checkbox
<input type="checkbox"/>
<span></span>
</label>
<!-- Radio -->
<fieldset class="tui-input-fieldset">
<legend>Radios</legend>
<label class="tui-radio">
Option 1
<input type="radio" name="radio" checked />
<span></span>
</label>
<label class="tui-radio">
Option 2
<input type="radio" name="radio" />
<span></span>
</label>
</fieldset>
<!-- Textarea -->
<textarea class="tui-input"></textarea>
```
### Window Textarea
<img src="https://image.ibb.co/gzkxX9/tui_win_textarea.png" />
```html
<div class="tui-window">
<fieldset class="tui-window-fieldset">
<legend align="center">FILE.C</legend>
<button class="tui-fieldset-button"><span class="green-255-text"></span></button>
<button class="tui-fieldset-button tui-fieldset-button-left"><span class="green-255-text"></span></button>
<textarea class="tui-textarea"></textarea>
</fieldset>
</div>
```
### Table
<img src="https://image.ibb.co/cN8nzp/tui_table.png" />
```html
<table class="tui-table tui-table-hover">
<thead>
<tr>
<td>Name</td>
<td>Size</td>
<td>MTime</td>
</tr>
</thead>
<tbody>
<tr>
<td>/.mc</td>
<td>1024</td>
<td>Apr 24 01:24</td>
</tr>
</tbody>
</table>
```
### Progress Bar
<img src="https://image.ibb.co/moYRs9/tui_progress.png" />
```html
<!-- Determinate -->
<div class="tui-progress">
<span style="width: 25%"></span>
</div>
<!-- Indeterminate -->
<div class="tui-progress">
<span class="tui-indeterminate"></span>
</div>
```
## CSS Classes
| Class | Description |
| --- | --- |
| `.tui-divider` | Create a white bottom divider |
| `.tui-black-divider` | Create a black bottom divider |
| `.tui-no-shadow` | Remove the shadow |
| `.tui-no-padding` | Remove padding |
| `.tui-shadow` | Create a shadow in the element |
| `.tui-white-bg` | Used in html tag to create a white 168 dot background |
| `.tui-blue-bg` | Used in html tag to create a blue 168 dot background |
| `.left` | Quick left float |
| `.right` | Quick right float |
| `.inline` | Quick inline display |
| `.block` | Quick block display |
| `.tui-shortcut` | Used in lists to put some text like shortcuts on the right side of the main text |
| `.tui-content` | Put a default padding in the container |
| `.tui-nav` | Create a navbar |
| `.tui-nav-fixed` | Change the navbar to a fixed position |
| `.tui-statusbar` | Create a status bar |
| `.tui-statusbar-divider` | Put a vertical divider in the status bar |
| `.tui-input` | Create a TUI theme input like inputs, selects, textareas... |
| `.tui-button` | Create a TUI button. It can be used to a, buttons, input[type="button"] |
| `.tui-panel` | Create a TUI panel |
| `.tui-window` | Create a TUI window |
| `.tui-window-fieldset` | Put the border for the TUI window |
| `.tui-input-fieldset` | Used to create a container for the inputs like checkboxes and radios |
| `.tui-border-solid` | Change the border like fieldset borders to a solid border |
| `.tui-fieldset-button` | Create a action button in the fieldset like buttons to close, minimize, maximize... |
| `.tui-fieldset-button-left` | Change the position of the fieldset button to the left side |
| `.tui-fieldset-statusbar` | Create a bottom status bar in the fieldset |
| `.tui-checkbox` | Create TUI checkbox |
| `.tui-radio` | Create TUI radio |
| `.tui-progress` | Create a TUI progress bar |
| `.tui-indeterminate` | Set the progress bar to indeterminate property |
| `.tui-dropdown` | Create a menu dropdown. It can be used to the navbar itens, buttons... |
| `.tui-dropdown-content` | The content that will be displayed for the dropdown |
| `.tui-sidenav` | Create a left sidenav. To active, just move the cursor for the left side of the screen |
| `.tui-table` | Create a table |
| `.tui-table-hover` | Add an hover effect for the table rows |
| `.tui-textarea` | Create a textarea without background |
| `.tui-clock` | Create a clock space in the navbar |
## CSS Colors
| Colors | 168 Value | 255 Value |
| --- | --- | --- |
| `black` | `rgb(0, 0, 0)` | `rgb(0, 0, 0)` |
| `blue` | `rgb(0, 0, 168)` | `rgb(0, 0, 255)` |
| `green` | `rgb(0, 168, 0)` | `rgb(0, 255, 0)` |
| `cyan` | `rgb(0, 168, 168)` | `rgb(0, 255, 255)` |
| `red` | `rgb(168, 0, 0)` | `rgb(255, 0, 0)` |
| `purple` | `rgb(168, 0, 168)` | `rgb(255, 0, 255)` |
| `yellow` | `rgb(168, 168, 0)` | `rgb(255, 255, 0)` |
| `white` |`rgb(168, 168, 168)` | `rgb(255, 255, 255)` |
## CSS Color Classes
| Class | Description |
| --- | --- |
| `.<color>-168` | Change the background color to a specified color name with value 168 |
| `.<color>-255` | Change the background color to a specified color name with value 255 |
| `.<color>-168-text` | Change the foreground color to a specified color name with value 168 |
| `.<color>-255-text` | Change the foreground color to a specified color name with value 255 |
| `.<color>-168-border` | Change the border color to a specified color name with value 168 |
| `.<color>-255-border` | Change the border color to a specified color name with value 255 |
| `.<color>-168-hover` | Change the background color to a specified color name with value 168 on mouse hover |
| `.<color>-255-hover` | Change the background color to a specified color name with value 255 on mouse hover |
| `.<color>-168-text-hover` | Change the foreground color to a specified color name with value 168 on mouse hover |
| `.<color>-255-text-hover` | Change the foreground color to a specified color name with value 255 on mouse hover |
## Credit
TuiCss Framework &copy; Copyright 2018<br>
by Vinícius Reif Biavatti<br>
VBFoundation
### Documentation
Check the [repository wiki](https://github.com/vinibiavatti1/TuiCss/wiki) to access the documentation, getting started, components index, examples, styles, or to know how to contribute for this project.

View File

@@ -1,540 +0,0 @@
/*
TuiCSS - (c) Copyright 2018
by Vinícius Reif Biavatti
VBFoundation
*/
/* 168 */
.black-168 {background-color: rgb(0, 0, 0)!important}
.blue-168 {background-color: rgb(0, 0, 168)!important}
.green-168 {background-color: rgb(0, 168, 0)!important}
.cyan-168 {background-color: rgb(0, 168, 168)!important}
.red-168 {background-color: rgb(168, 0, 0)!important}
.purple-168 {background-color: rgb(168, 0, 168)!important}
.yellow-168 {background-color: rgb(168, 168, 0)!important}
.white-168 {background-color: rgb(168, 168, 168)!important}
.black-168-text {color: rgb(0, 0, 0)!important}
.blue-168-text {color: rgb(0, 0, 168)!important}
.green-168-text {color: rgb(0, 168, 0)!important}
.cyan-168-text {color: rgb(0, 168, 168)!important}
.red-168-text {color: rgb(168, 0, 0)!important}
.purple-168-text {color: rgb(168, 0, 168)!important}
.yellow-168-text {color: rgb(168, 168, 0)!important}
.white-168-text {color: rgb(168, 168, 168)!important}
.black-168-border {border-color: rgb(0, 0, 0)!important}
.blue-168-border {border-color: rgb(0, 0, 168)!important}
.green-168-border {border-color: rgb(0, 168, 0)!important}
.cyan-168-border {border-color: rgb(0, 168, 168)!important}
.red-168-border {border-color: rgb(168, 0, 0)!important}
.purple-168-border {border-color: rgb(168, 0, 168)!important}
.yellow-168-border {border-color: rgb(168, 168, 0)!important}
.white-168-border {border-color: rgb(168, 168, 168)!important}
.black-168-hover:hover {background-color: rgb(0, 0, 0)!important}
.blue-168-hover:hover {background-color: rgb(0, 0, 168)!important}
.green-168-hover:hover {background-color: rgb(0, 168, 0)!important}
.cyan-168-hover:hover {background-color: rgb(0, 168, 168)!important}
.red-168-hover:hover {background-color: rgb(168, 0, 0)!important}
.purple-168-hover:hover {background-color: rgb(168, 0, 168)!important}
.yellow-168-hover:hover {background-color: rgb(168, 168, 0)!important}
.white-168-hover:hover {background-color: rgb(168, 168, 168)!important}
.black-168-text-hover:hover {color: rgb(0, 0, 0)!important}
.blue-168-text-hover:hover {color: rgb(0, 0, 168)!important}
.green-168-text-hover:hover {color: rgb(0, 168, 0)!important}
.cyan-168-text-hover:hover {color: rgb(0, 168, 168)!important}
.red-168-text-hover:hover {color: rgb(168, 0, 0)!important}
.purple-text-168-hover:hover {color: rgb(168, 0, 168)!important}
.yellow-text-168-hover:hover {color: rgb(168, 168, 0)!important}
.white-text-168-hover:hover {color: rgb(168, 168, 168)!important}
/* 255 */
.black-255 {background-color: rgb(0, 0, 0)!important}
.blue-255 {background-color: rgb(0, 0, 255)!important}
.green-255 {background-color: rgb(0, 255, 0)!important}
.cyan-255 {background-color: rgb(0, 255, 255)!important}
.red-255 {background-color: rgb(255, 0, 0)!important}
.purple-255 {background-color: rgb(255, 0, 255)!important}
.yellow-255 {background-color: rgb(255, 255, 0)!important}
.white-255 {background-color: rgb(255, 255, 255)!important}
.black-255-text {color: rgb(0, 0, 0)!important}
.blue-255-text {color: rgb(0, 0, 255)!important}
.green-255-text {color: rgb(0, 255, 0)!important}
.cyan-255-text {color: rgb(0, 255, 255)!important}
.red-255-text {color: rgb(255, 0, 0)!important}
.purple-255-text {color: rgb(255, 0, 255)!important}
.yellow-255-text {color: rgb(255, 255, 0)!important}
.white-255-text {color: rgb(255, 255, 255)!important}
.black-255-border {border-color: rgb(0, 0, 0)!important}
.blue-255-border {border-color: rgb(0, 0, 255)!important}
.green-255-border {border-color: rgb(0, 255, 0)!important}
.cyan-255-border {border-color: rgb(0, 255, 255)!important}
.red-255-border {border-color: rgb(255, 0, 0)!important}
.purple-255-border {border-color: rgb(255, 0, 255)!important}
.yellow-255-border {border-color: rgb(255, 255, 0)!important}
.white-255-border {border-color: rgb(255, 255, 255)!important}
.black-255-hover:hover {background-color: rgb(0, 0, 0)!important}
.blue-255-hover:hover {background-color: rgb(0, 0, 255)!important}
.green-255-hover:hover {background-color: rgb(0, 255, 0)!important}
.cyan-255-hover:hover {background-color: rgb(0, 255, 255)!important}
.red-255-hover:hover {background-color: rgb(255, 0, 0)!important}
.purple-255-hover:hover {background-color: rgb(255, 0, 255)!important}
.yellow-255-hover:hover {background-color: rgb(255, 255, 0)!important}
.white-255-hover:hover {background-color: rgb(255, 255, 255)!important}
.black-255-text-hover:hover {color: rgb(0, 0, 0)!important}
.blue-255-text-hover:hover {color: rgb(0, 0, 255)!important}
.green-255-text-hover:hover {color: rgb(0, 255, 0)!important}
.cyan-255-text-hover:hover {color: rgb(0, 255, 255)!important}
.red-255-text-hover:hover {color: rgb(255, 0, 0)!important}
.purple-text-255-hover:hover {color: rgb(255, 0, 255)!important}
.yellow-text-255-hover:hover {color: rgb(255, 255, 0)!important}
.white-text-255-hover:hover {color: rgb(255, 255, 255)!important}
/* GLOBAL */
html {
font-family: 'Lucida Console';
font-size: 18px;
box-sizing: border-box;
}
body {
margin: 0px;
}
*, *:before, *:after {
font-family: inherit;
font-size: inherit;
box-sizing: inherit;
}
ul {
margin: 0px;
padding: 0px;
list-style-type: none;
}
ul li {
list-style-type: none;
}
ul li a {
display: block;
}
a {
color: inherit;
text-decoration: none;
}
span {
margin: 0px;
}
hr {
border: none;
border-bottom: 2px solid rgb(255, 255, 255);
}
input, select, textarea {
width: 200px;
}
/* TUI UTILS */
.tui-divider {
border-bottom: 2px solid rgb(255, 255, 255);
display: block;
}
.tui-black-divider {
border-bottom: 2px solid rgb(0, 0, 0);
display: block;
}
.tui-no-shadow {
box-shadow: none!important;
}
.tui-no-padding {
padding: 0px!important;
}
.tui-shadow {
box-shadow: 10px 10px black!important;
}
.tui-white-bg {
background-image: url("images/bg.png");
background-repeat: repeat;
}
.tui-blue-bg {
background-image: url("images/bg-black.png");
background-repeat: repeat;
}
.left {
float: left!important;
}
.right {
float: right!important;
}
.inline {
display: inline!important;
}
.block {
display: block!important;
}
.tui-shortcut {
float: right;
}
.tui-content {
padding: 10px;
}
/* NAV */
.tui-nav {
width: 100%;
background-color: rgb(168, 168, 168);
padding: 0px 1px;
z-index: 9;
}
.tui-nav-fixed {
position: fixed;
}
.tui-nav ul li {
display: inline-block;
margin-left: 10px;
padding: 1px 3px;
}
.tui-nav ul li a {
display: block;
}
.tui-nav ul li:hover {
background-color: rgb(0, 168, 0);
}
/* STATUSBAR */
.tui-statusbar {
width: 100%;
background-color: rgb(168, 168, 168);
padding: 0px 1px;
position: fixed;
left: 0px;
bottom: 0px;
z-index: 9;
}
.tui-statusbar ul li {
display: inline-block;
margin-left: 10px;
padding: 1px 3px;
}
.tui-statusbar ul li:active {
background-color: rgb(0, 0, 168);
color: white;
}
.tui-statusbar .tui-statusbar-divider {
border-right: 2px black solid;
display: inline;
margin: 0px 3px;
}
/* TUI INPUT */
.tui-input {
background-color: rgb(0, 0, 0);
color: white;
outline:0;
border: none;
padding: 1px;
}
.tui-input:focus {
background-color: rgb(255, 255, 0)!important;
color: black!important;
}
/* TUI BUTTON */
.tui-button {
display: inline-block;
outline:0;
padding: 1px 10px;
background-color: rgb(0, 168, 0);
color: black;
border: none;
cursor: pointer;
text-align: center;
box-shadow: 10px 10px black;
}
.tui-button:active {
background-color: rgb(0, 168, 168)!important;
color: black!important;
box-shadow: none!important;
}
.tui-button:focus {
color: rgb(0, 255, 255)!important;
}
/* TUI PANEL */
.tui-panel {
background-color: rgb(0, 0, 168);
padding: 12px;
display: inline-block;
color: white;
box-shadow: 6px 6px black;
}
/* TUI WINDOW */
.tui-window {
background-color: rgb(0, 0, 168);
padding: 1px;
display: inline-block;
position: relative;
box-shadow: 10px 10px black;
color: white;
}
/* TUI FIELDSET */
.tui-window-fieldset {
border: 6px white double;
padding: 10px;
background-color: inherit;
margin-bottom: 6px;
}
.tui-window-fieldset-no-legend {
margin-top: 6px;
}
.tui-input-fieldset {
border-top: 6px white double;
border-bottom: 6px white double;
border-left: 2px white solid;
border-right: 2px white solid;
padding: 5px;
background-color: inherit;
}
.tui-input-fieldset:hover {
border-color: yellow!important;
}
.tui-input-fieldset:hover legend {
color: yellow!important;
}
.tui-border-solid {
border: 2px white solid;
}
.tui-fieldset-button {
position: absolute;
top: 0px;
right: 16px;
color: white;
background-color: inherit;
z-index: 2;
border: none;
cursor: pointer;
outline:0;
padding: 2px;
}
.tui-fieldset-statusbar {
position: absolute;
bottom: 0px;
left: 16px;
color: white;
background-color: inherit;
z-index: 2;
padding: 2px;
}
.tui-fieldset-button-left {
left: 16px!important;
right: initial;
}
.tui-fieldset-button::before {
content: "[";
}
.tui-fieldset-button::after {
content: "]";
}
.tui-fieldset-button:active {
color: rgb(0, 255, 255)!important;
}
/* CHECKBOX */
.tui-checkbox {
display: block;
position: relative;
cursor: pointer;
color: white;
padding-left: 30px;
}
.tui-checkbox input {
position: absolute;
opacity: 0;
cursor: pointer;
top: 0px;
left: 0px;
}
.tui-checkbox span {
position: absolute;
width: 10px;
height: 10px;
cursor: pointer;
top: 0px;
left: 0px;
}
.tui-checkbox input:checked ~ span::after {
content: "[√]";
color: rgb(0, 255, 255);
}
.tui-checkbox input:not(checked) ~ span::after {
content: "[\00a0]";
}
/* RADIO */
.tui-radio {
display: block;
position: relative;
cursor: pointer;
color: white;
padding-left: 30px;
}
.tui-radio input {
position: absolute;
opacity: 0;
cursor: pointer;
top: 0px;
left: 0px;
}
.tui-radio span {
position: absolute;
width: 10px;
height: 10px;
cursor: pointer;
top: 0px;
left: 0px;
}
.tui-radio input:checked ~ span:after {
content: "(•)";
color: rgb(0, 255, 255)!important;
}
.tui-radio input:not(checked) ~ span:after {
content: "(\00a0)";
}
/* PROGRESS BAR */
.tui-progress {
display: block;
position: relative;
height: 16px;
width: 200px;
background-color: rgb(0, 168, 168);
overflow: hidden;
}
.tui-progress span {
position: absolute;
left: 0px;
background-color: rgb(0, 255, 255);
height: 16px;
display: inline-block;
}
.tui-progress .tui-indeterminate {
position: absolute;
left: 0px;
background-color: rgb(0, 255, 255);
height: 16px;
width: 16px;
display: inline-block;
animation: indeterminate 1s backwards;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
@keyframes indeterminate {
from {margin-left: -10%; }
to {margin-left: 100%}
}
/* DROPDOWN */
.tui-dropdown {
position: relative;
display: inline-block;
cursor: pointer;
}
.tui-dropdown-content {
display: none;
position: absolute;
background-color: rgb(168, 168, 168);
min-width: 200px;
padding: 6px;
z-index: 9;
}
.tui-dropdown-content ul {
border: 2px black solid;
}
.tui-dropdown-content ul li {
display: block;
margin: 6px;
}
.tui-dropdown:hover > .tui-dropdown-content:first-of-type {
display: block;
}
/* SCROLLBAR */
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background-image: url("images/scroll.png");
background-repeat: repeat;
}
::-webkit-scrollbar-thumb {
background-color: rgb(0, 168, 168);
}
::-webkit-scrollbar-thumb:hover {
background-color: rgb(0, 168, 168);
}
/* SIDENAV */
.tui-sidenav {
position: fixed;
top: 0px;
left: 0px;
background-color: rgb(0, 168, 168);
width: 1px;
z-index: 10;
height: 100%;
overflow: hidden;
}
.tui-sidenav:hover {
min-width: 200px;
box-shadow: 10px 10px black!important;
padding: 6px;
}
.tui-sidenav ul {
border: 2px black solid;
}
.tui-sidenav ul li {
display: block;
margin: 6px;
}
.tui-sidenav ul li a {
display: block;
}
.tui-sidenav ul li:hover {
background-color: rgb(255, 255, 0);
}
/* TABLE */
.tui-table {
border: 2px solid rgb(168, 168, 168);
padding: 5px;
border-collapse: collapse;
}
.tui-table-hover tbody tr:hover {
background-color: rgb(0, 168, 168);
color: black;
}
.tui-table tbody {
background-color: inherit;
color: white;
}
.tui-table tbody tr td {
border-right: 2px solid rgb(168, 168, 168);
padding: 0px 2px;
}
.tui-table thead {
background-color: inherit;
color: rgb(255, 255, 0);
text-align: center;
}
/* TEXTAREA */
.tui-textarea {
background-color: inherit;
border: none;
padding: 0px;
color: rgb(255, 255, 0);
outline: none;
}
/* CLOCK */
.tui-clock {
padding: 1px 0px;
margin-right: 10px;
float:right;
}

BIN
dist/fonts/Perfect DOS VGA 437 Win.ttf vendored Normal file

Binary file not shown.

BIN
dist/fonts/Perfect DOS VGA 437.ttf vendored Normal file

Binary file not shown.

72
dist/fonts/dos437.txt vendored Normal file
View File

@@ -0,0 +1,72 @@
/
/(_____________ ____
\ /______)\ | |
:\ | / \:| |:::::::::: : .. . : .. . . :. .
\_____| / | \| |______
___ / ________ \... . . .
\______________ \ | | /.. . . . . .
\ |__| /
--x--x-----x----\______ |-/_____/-x--x-xx--x-- - -x -- - - -- - - -
. . . . . . . . . . . .\____|. . . . . .
-------------------------------------------------------------------------------
>> perfect dos vga 437 - general information >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-------------------------------------------------------------------------------
"Perfect DOS VGA 437" and "Perfect DOS VGA 437 Win" are truetype fonts
designed to emulate the MS-DOS/Text mode standard font, used on VGA monitors,
with the 437 Codepage (standard US/International). This is a "bitmap" font,
meaning it emulates a bitmap font and can only be used at a given size (8 or
multiples of it like 16, 24, 32, etc). It's optimized for Flash too, so it
won't produce antialias if used at round positions.
There are two fonts available. "Perfect DOS VGA 437" uses the original DOS
codepage 437. It should be used, for example, if you're opening DOS ASCII
files on notepad or another windows-based editor. Since it's faithful to the
original DOS codes, it won't accent correctly in windows ("<22>" would produce
something different, not an "e" with an acute).
There's also "Perfect DOS VGA 437 Win" which is the exactly same font adapted
to a windows codepage. This should use accented characters correctly but won't
work if you're opening a DOS-based text file.
UPDATE: this is a new version, updated in august/2008. It has fixed leading
metrics for Mac systems.
-------------------------------------------------------------------------------
>> perfect dos vga 437 - creation process >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-------------------------------------------------------------------------------
This font was created to be used on a Flash-based ANSi viewer I'm working. To
create it, I created a small Quick Basic program to write all characters on
screen,
CLS
FOR l = 0 TO 255
charWrite 1 + (l MOD 20), 1 + (l \ 20) * 6 + (l MOD 2), LTRIM$(RTRIM$(STR$(l))) + CHR$(l)
NEXT
SUB charWrite (lin, col, char$)
DEF SEG = &HB800
FOR i = 1 TO LEN(char$)
POKE ((lin - 1) * 160) + ((col - 2 + i) * 2), ASC(MID$(char$, i, 1))
IF (i = LEN(char$)) THEN POKE ((lin - 1) * 160) + ((col - 2 + i) * 2) + 1, 113
NEXT
END SUB
Then captured the text screen using SCREEN THIEF (a very, very old screen
capture TSR program which converts text screens to images accurately). I then
recreated the font polygon by polygon on Fontlab, while looking at the image
on Photoshop. No conversion took place.
-------------------------------------------------------------------------------
>> author >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-------------------------------------------------------------------------------
zeh fernando remembers the old days. SMASH DAH FUCKING ENTAH.
http://www.fatorcaos.com.br
rorshack ^ maiden brazil
-------------------------------------------------------------------------------
^zehPULLSdahTRICK^kudosOUTtoWHOkeepsITreal^smashDAHfuckingENTAH!!!^lowres4ever^
-------------------------------------------------------------------------------

View File

Before

Width:  |  Height:  |  Size: 166 B

After

Width:  |  Height:  |  Size: 166 B

View File

Before

Width:  |  Height:  |  Size: 168 B

After

Width:  |  Height:  |  Size: 168 B

BIN
dist/images/bg-cyan-black.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

BIN
dist/images/bg-cyan-white.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B

BIN
dist/images/bg-green-black.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

BIN
dist/images/bg-green-white.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B

BIN
dist/images/bg-orange-black.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

BIN
dist/images/bg-orange-white.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B

BIN
dist/images/bg-purple-black.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

BIN
dist/images/bg-purple-white.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B

BIN
dist/images/bg-red-black.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B

BIN
dist/images/bg-red-white.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B

BIN
dist/images/bg-yellow-black.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

BIN
dist/images/bg-yellow-white.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B

BIN
dist/images/scroll-blue.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B

View File

Before

Width:  |  Height:  |  Size: 168 B

After

Width:  |  Height:  |  Size: 168 B

BIN
dist/images/scroll-green.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B

BIN
dist/images/scroll-orange.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B

BIN
dist/images/scroll-purple.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

BIN
dist/images/scroll-red.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B

BIN
dist/images/scroll-white.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

BIN
dist/images/scroll-yellow.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B

1927
dist/tuicss.css vendored Normal file

File diff suppressed because it is too large Load Diff

94
dist/tuicss.js vendored Normal file
View File

@@ -0,0 +1,94 @@
/**
* Init
*/
$(document).ready(function() {
tabsController();
datetimeController();
sidenavController();
modalController();
});
/**
* TuiTabs controller
*/
function tabsController() {
$(".tui-tab").click(function(event) {
$(".tui-tab-content").hide();
let tabContentid = $(this).attr('data-tab-content');
$(`#${tabContentid}`).show();
$(".tui-tab").removeClass("active");
$(this).addClass("active");
});
$('.tui-tab.active').click();
}
/**
* Date field controller
*/
function datetimeController() {
if(!$(".tui-datetime").length) return;
datetimeInterval();
setInterval(datetimeInterval, 1000);
function datetimeInterval() {
let today = new Date();
$(".tui-datetime").each(function() {
let clock = $(this);
let format = clock.attr("data-format");
let month = (today.getMonth() + "").length == 2 ? today.getMonth() + 1 : "0" + (today.getMonth() + 1);
let day = (today.getDay() + "").length == 2 ? today.getDay() + 1 : "0" + (today.getDay() + 1);
let year = today.getFullYear();
let hour = (today.getHours() + "").length == 2 ? today.getHours() : "0" + today.getHours();
let hour12 = (parseInt(hour) + 24) % 12 || 12;
let minute = (today.getMinutes() + "").length == 2 ? today.getMinutes() : "0" + today.getMinutes();
let second = (today.getSeconds() + "").length == 2 ? today.getSeconds() : "0" + today.getSeconds();
let ampm = parseInt(hour) >= 12 ? "PM" : "AM";
format = format.replace("M", month);
format = format.replace("d", day);
format = format.replace("y", year);
format = format.replace("H", hour);
format = format.replace("h", hour12);
format = format.replace("m", minute);
format = format.replace("s", second);
format = format.replace("a", ampm);
clock.html(format);
});
}
}
/**
* Sidenav Controller
*/
function sidenavController() {
$(".tui-sidenav-button").click(function() {
let sidenav = $(".tui-sidenav");
if(sidenav.hasClass("active")) {
$(".tui-sidenav").removeClass("active");
} else {
$(".tui-sidenav").addClass("active");
}
});
}
/**
* Modal controller
*/
function modalController() {
$(".tui-modal-button").click(function() {
$(".tui-overlap").addClass("active");
let modalId = $(this).attr("data-modal");
$(`#${modalId}`).addClass("active");
});
$(".tui-modal-close-button").click(function() {
$(".tui-overlap").removeClass("active");
let modalId = $(this).attr("data-modal");
$(`#${modalId}`).removeClass("active");
});
}

1
dist/tuicss.min.css vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/tuicss.min.js vendored Normal file
View File

@@ -0,0 +1 @@
function tabsController(){$(".tui-tab").click(function(t){$(".tui-tab-content").hide();let e=$(this).attr("data-tab-content");$(`#${e}`).show(),$(".tui-tab").removeClass("active"),$(this).addClass("active")}),$(".tui-tab.active").click()}function datetimeController(){function t(){let t=new Date;$(".tui-datetime").each(function(){let e=$(this),a=e.attr("data-format"),n=2==(t.getMonth()+"").length?t.getMonth()+1:"0"+(t.getMonth()+1),l=2==(t.getDay()+"").length?t.getDay()+1:"0"+(t.getDay()+1),i=t.getFullYear(),o=2==(t.getHours()+"").length?t.getHours():"0"+t.getHours(),c=(parseInt(o)+24)%12||12,s=2==(t.getMinutes()+"").length?t.getMinutes():"0"+t.getMinutes(),r=2==(t.getSeconds()+"").length?t.getSeconds():"0"+t.getSeconds(),u=parseInt(o)>=12?"PM":"AM";a=(a=(a=(a=(a=(a=(a=(a=a.replace("M",n)).replace("d",l)).replace("y",i)).replace("H",o)).replace("h",c)).replace("m",s)).replace("s",r)).replace("a",u),e.html(a)})}$(".tui-datetime").length&&(t(),setInterval(t,1e3))}function sidenavController(){$(".tui-sidenav-button").click(function(){$(".tui-sidenav").hasClass("active")?$(".tui-sidenav").removeClass("active"):$(".tui-sidenav").addClass("active")})}function modalController(){$(".tui-modal-button").click(function(){$(".tui-overlap").addClass("active");let t=$(this).attr("data-modal");$(`#${t}`).addClass("active")}),$(".tui-modal-close-button").click(function(){$(".tui-overlap").removeClass("active");let t=$(this).attr("data-modal");$(`#${t}`).removeClass("active")})}$(document).ready(function(){tabsController(),datetimeController(),sidenavController(),modalController()});

796
examples.html vendored
View File

@@ -1,796 +0,0 @@
<!DOCTYPE html>
<html lang="en" class="tui-blue-bg">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>TUI</title>
<link rel="stylesheet" href="TuiCss/tuicss.css">
</head>
<body>
<!-- SIDENAV -->
<nav class="tui-sidenav">
<ul>
<li>
<a href="#!">
<span class="red-168-text">O</span>pen
<span class="tui-shortcut">ctrl+o</span>
</a>
</li>
<li>
<a href="#!">OS Shell</a>
</li>
<li>
<a href="#!">
<span class="red-168-text">C</span>opy
<span class="tui-shortcut">ctrl+c</span>
</a>
</li>
<li>
<a href="#!">
<span class="red-168-text">P</span>aste
<span class="tui-shortcut">ctrl+v</span>
</a>
</li>
<li>
<a href="#!">C<span class="red-168-text">u</span>t
<span class="tui-shortcut">ctrl+x</span>
</a>
</li>
<div class="tui-black-divider"></div>
<li>
<a href="#!">Insert</a>
</li>
<li>
<a href="#!">Delete</a>
</li>
<li>
<a href="#!">Go...</a>
</li>
<div class="tui-black-divider"></div>
<li>
<a href="#!">
<span class="red-168-text">S</span>earch
<span class="tui-shortcut">ctrl+p</span>
</a>
</li>
<div class="tui-black-divider"></div>
<li>
<a href="#!">Exit <span class="tui-shortcut">F10</span></a>
</li>
</ul>
</nav>
<!-- NAV -->
<nav class="tui-nav tui-nav-fixed">
<span class="tui-clock" id="clock"></span>
<ul>
<li class="tui-dropdown">
<span class="red-168-text"></span>
<div class="tui-dropdown-content">
<ul>
<li>
<a href="#!">
<span class="red-168-text">R</span>epaint desktop
</a>
</li>
<div class="tui-black-divider"></div>
<li>
<a href="#!">
R<span class="red-168-text">e</span>load
</a>
</li>
<li>
<a href="#!">
Re<span class="red-168-text">s</span>tore
</a>
</li>
</ul>
</div>
</li>
<li class="tui-dropdown">
<span class="red-168-text">F</span>ile
<div class="tui-dropdown-content">
<ul>
<li>
<a href="#!">
<span class="red-168-text">N</span>ew
</a>
</li>
<li>
<a href="#!">
<span class="red-168-text">O</span>pen...
<span class="tui-shortcut">F3</span>
</a>
</li>
<li>
<a href="#!">
<span class="red-168-text">S</span>ave
<span class="tui-shortcut">F2</span>
</a>
</li>
<li>
<a href="#!">
S<span class="red-168-text">a</span>ve as...
</a>
</li>
<li>
<a href="#!">
Save a<span class="red-168-text">l</span>l
</a>
</li>
<div class="tui-black-divider"></div>
<!-- SUBMENU EXAMPLE -->
<li class="tui-dropdown">
<span class="right"></span>
<span class="red-168-text">M</span>ore
<div class="tui-dropdown-content">
<ul>
<li>
<a href="#!">
<span class="red-168-text">C</span>hange dir...
</a>
</li>
<li>
<a href="#!">
<span class="red-168-text">P</span>rint
</a>
</li>
<li>
<a href="#!">
<span class="red-168-text">D</span>OS shell
</a>
</li>
</ul>
</div>
</li>
<div class="tui-black-divider"></div>
<li>
<a href="#!">
<span class="red-168-text">Q</span>uit
<span class="tui-shortcut">F10</span>
</a>
</li>
</ul>
</div>
</li>
<li class="tui-dropdown">
<span class="red-168-text">E</span>dit
<div class="tui-dropdown-content">
<ul>
<li>
<a href="#!">
<span class="red-168-text">C</span>opy
<span class="tui-shortcut">ctrl+c</span>
</a>
</li>
<li>
<a href="#!">
<span class="red-168-text">P</span>aste
<span class="tui-shortcut">ctrl+v</span>
</a>
</li>
<li>
<a href="#!">C<span class="red-168-text">u</span>t
<span class="tui-shortcut">ctrl+x</span>
</a>
</li>
<div class="tui-black-divider"></div>
<li>
<a href="#!">Insert</a>
</li>
<li>
<a href="#!">Delete</a>
</li>
<li>
<a href="#!">Go...</a>
</li>
<div class="tui-black-divider"></div>
<li>
<a href="#!">
<span class="red-168-text">S</span>earch
<span class="tui-shortcut">ctrl+p</span>
</a>
</li>
</ul>
</div>
</li>
<li class="tui-dropdown">
<span class="red-168-text">E</span>dit Styled
<div class="tui-dropdown-content blue-168 white-255-text">
<ul class="white-255-border">
<li>
<a href="#!">
<span class="green-255-text">C</span>opy
<span class="tui-shortcut">ctrl+c</span>
</a>
</li>
<li>
<a href="#!">
<span class="green-255-text">P</span>aste
<span class="tui-shortcut">ctrl+v</span>
</a>
</li>
<li>
<a href="#!">C<span class="green-255-text">u</span>t
<span class="tui-shortcut">ctrl+x</span>
</a>
</li>
<div class="tui-divider"></div>
<li>
<a href="#!">Insert</a>
</li>
<li>
<a href="#!">Delete</a>
</li>
<li>
<a href="#!">Go...</a>
</li>
<div class="tui-divider"></div>
<li>
<a href="#!">
<span class="green-255-text">S</span>earch
<span class="tui-shortcut">ctrl+p</span>
</a>
</li>
</ul>
</div>
</li>
<li><a href="#!"><span class="red-168-text">H</span>elp</a></li>
</ul>
</nav>
<br>
<!-- CONTENT -->
<div class="tui-content">
<!-- WINDOW EXAMPLE 1 -->
<div class="tui-window">
<fieldset class="tui-window-fieldset">
<legend>Window</legend>
<button class="tui-fieldset-button tui-fieldset-button-right"><span class="green-255-text"></span></button>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br>
Curabitur id vestibulum libero, id fermentum lorem.<br>
Aenean aliquam erat leo, eu tempus ex ornare eu.<br>
Sed ut lacus libero. Etiam rhoncus ipsum arcu.<br>
In quis bibendum libero. Donec nec egestas ipsum.<br>
Sed in venenatis diam. Nullam sollicitudin risus vel.<br>
<br>
<div class="tui-divider"></div>
<br>
<button class="tui-button">more...</button>
<button class="tui-button purple-168 white-255-text">share</button>
</fieldset>
</div><br><br>
<!-- WINDOW EXAMPLE 2 -->
<div class="tui-window white-168 black-255-text">
<fieldset class="tui-window-fieldset">
<legend class="white-255-text">Window</legend>
<div style="overflow: scroll; height: 200px; width: 400px; white-space: nowrap;">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br>
Curabitur id vestibulum libero, id fermentum lorem.<br>
Aenean aliquam erat leo, eu tempus ex ornare eu.<br>
Sed ut lacus libero. Etiam rhoncus ipsum arcu.<br>
In quis bibendum libero. Donec nec egestas ipsum.<br>
Sed in venenatis diam. Nullam sollicitudin risus vel.<br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br>
Curabitur id vestibulum libero, id fermentum lorem.<br>
Aenean aliquam erat leo, eu tempus ex ornare eu.<br>
Sed ut lacus libero. Etiam rhoncus ipsum arcu.<br>
In quis bibendum libero. Donec nec egestas ipsum.<br>
Sed in venenatis diam. Nullam sollicitudin risus vel.<br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br>
Curabitur id vestibulum libero, id fermentum lorem.<br>
Aenean aliquam erat leo, eu tempus ex ornare eu.<br>
Sed ut lacus libero. Etiam rhoncus ipsum arcu.<br>
In quis bibendum libero. Donec nec egestas ipsum.<br>
Sed in venenatis diam. Nullam sollicitudin risus vel.<br>
</div>
</fieldset>
</div><br><br>
<!-- WINDOW EXAMPLE 3 -->
<div class="tui-window cyan-168 black-255-text">
<fieldset class="tui-window-fieldset">
<legend class="white-255-text">Window</legend>
<span class="tui-shadow">The Lorem Ipsum </span><br><br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br>
Curabitur id vestibulum libero, id fermentum lorem.<br>
Aenean aliquam erat leo, eu tempus ex ornare eu.<br>
Sed ut lacus libero. Etiam rhoncus ipsum arcu.<br>
In quis bibendum libero. Donec nec egestas ipsum.<br>
Sed in venenatis diam. Nullam sollicitudin risus vel.<br>
<br>
<div class="tui-divider"></div>
<br>
<a class="tui-button white-168">accept</a>
</fieldset>
</div><br><br>
<!-- WINDOW EXAMPLE 4 -->
<div class="tui-window red-168">
<fieldset class="tui-window-fieldset">
<legend>Error!</legend>
An ERROR ocurred while processing!
<br><br>
<button class="tui-button white-168"><span class="yellow-255-text">o</span>k</button>
</fieldset>
</div><br><br>
<!-- WINDOW EXAMPLE 5 -->
<div class="tui-window">
<fieldset class="tui-window-fieldset tui-border-solid">
<legend align="center">Window</legend>
<button class="tui-fieldset-button tui-fieldset-button-left">X</button>
<div class="tui-fieldset-statusbar">Text format: UTF-8</div>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br> Vestibulum a posuere sapien, nec placerat
lorem.<br> Aliquam urna lorem, placerat et varius et, aliquam ac libero.
<br><br>
<span class="tui-divider"></span>
<br>Author: Lorem Ipsum<br><br>
</fieldset>
</div><br><br>
<!-- WINDOW EXAMPLE 6 -->
<div class="tui-window red-168">
<fieldset class="tui-window-fieldset tui-window-fieldset-no-legend tui-border-solid">
<span class="red-255 yellow-255-text">Warning! There are pendencies</span><br><br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br> Vestibulum a posuere sapien, nec placerat
lorem.<br> Aliquam urna lorem, placerat et varius et, aliquam ac libero.
</fieldset>
</div><br><br>
<!-- LIST -->
<div class="tui-window purple-168">
<fieldset class="tui-window-fieldset tui-window-fieldset-no-legend tui-border-solid" style="width: 300px">
<ul>
<li class="cyan-255-hover black-255-text-hover">
<a href="#!">
<span class="tui-shortcut">A</span>
<span>Register Tables</span>
</a>
</li>
<li class="cyan-255-hover black-255-text-hover">
<a href="#!">
<span class="tui-shortcut">B</span>
<span>Register Consumers</span>
</a>
</li>
<li class="cyan-255-hover black-255-text-hover">
<a href="#!">
<span class="tui-shortcut">C</span>
<span>Register Companies</span>
</a>
</li>
<li class="cyan-255-hover black-255-text-hover">
<a href="#!">
<span class="tui-shortcut">D</span>
<span>Search Windows</span>
</a>
</li>
<li class="cyan-255-hover black-255-text-hover">
<a href="#!">
<span class="tui-shortcut">E</span>
<span>Quit</span>
</a>
</li>
</ul>
</fieldset>
</div><br><br>
<!-- PANEL EXAMPLE 1 -->
<div class="tui-panel">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br> Vestibulum a posuere sapien, nec placerat
lorem.<br> Aliquam urna lorem, placerat et varius et, aliquam ac libero.
</div><br><br>
<!-- PANEL EXAMPLE 2 -->
<div class="tui-panel yellow-168 black-255-text">
NOTE: Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br> Vestibulum a posuere sapien, nec
placerat
lorem.<br> Aliquam urna lorem, placerat et varius et, aliquam ac libero.
</div><br><br>
<!-- INPUTS -->
<div class="tui-window">
<fieldset class="tui-window-fieldset">
<legend>Inputs</legend>
TEXT:<br><input class="tui-input" /><br>
NUMBER:<br><input class="tui-input" type="number" /><br>
DATE:<br><input class="tui-input" type="date" /><br>
DATETIME:<br><input class="tui-input" type="datetime-local" /><br>
PASSWORD:<br><input class="tui-input" type="password" /><br>
SELECT:<br>
<select class="tui-input">
<option selected>-- SELECT --</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
<fieldset class="tui-input-fieldset">
<legend>Checkboxes</legend>
<label class="tui-checkbox">One
<input type="checkbox" checked />
<span></span>
</label>
<label class="tui-checkbox">Second
<input type="checkbox" />
<span></span>
</label>
</fieldset>
<fieldset class="tui-input-fieldset">
<legend>Radios</legend>
<label class="tui-radio">One
<input type="radio" name="radio" checked />
<span></span>
</label>
<label class="tui-radio">Second
<input type="radio" name="radio" />
<span></span>
</label>
<label class="tui-radio">Third
<input type="radio" name="radio" />
<span></span>
</label>
</fieldset>
TEXTAREA:<br>
<textarea class="tui-input"></textarea><br>
COLOR:<br>
<input class="tui-input" type="color" /><br>
MULTIPLE:<br>
<select class="tui-input" multiple>
<option selected>-- SELECT --</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
<option>Option 4</option>
<option>Option 5</option>
</select>
</fieldset>
</div><br><br>
<!--PROGRESS -->
<div class="tui-window">
<fieldset class="tui-window-fieldset">
<legend>Progress</legend>
0%
<div class="tui-progress">
<span style="width: 0%"></span>
</div>
25%
<div class="tui-progress">
<span style="width: 25%"></span>
</div>
50%
<div class="tui-progress">
<span style="width: 50%"></span>
</div>
75%
<div class="tui-progress">
<span style="width: 75%"></span>
</div>
100%
<div class="tui-progress">
<span style="width: 100%"></span>
</div>
Indeterminate
<div class="tui-progress">
<span class="tui-indeterminate"></span>
</div>
Custom
<div class="tui-progress red-255">
<span class="green-255" style="width: 75%"></span>
</div>
</fieldset>
</div><br><br>
<!-- TABLE -->
<div class="tui-window">
<fieldset class="tui-window-fieldset">
<legend>Table</legend>
<table class="tui-table tui-table-hover" style="width: 600px">
<thead>
<tr>
<td>Name</td>
<td>Size</td>
<td>MTime</td>
</tr>
</thead>
<tbody>
<tr>
<td>/.mc</td>
<td>1024</td>
<td>Apr 24 01:24</td>
</tr>
<tr>
<td>/bin</td>
<td>3072</td>
<td>Jun 12 11:01</td>
</tr>
<tr>
<td>/boot</td>
<td>1024</td>
<td>Apr 24 01:24</td>
</tr>
<tr>
<td>~cdrom</td>
<td>256</td>
<td>May 24 01:24</td>
</tr>
<tr>
<td>/disk</td>
<td>10258</td>
<td>May 12 11:01</td>
</tr>
<tr>
<td>/win32</td>
<td>4056</td>
<td>Apr 24 01:24</td>
</tr>
</tbody>
</table>
</fieldset>
</div><br><br>
<!-- CALCULATOR EXAMPLE -->
<div class="tui-window white-168">
<fieldset class="tui-window-fieldset">
<legend align="center">Pocket Calculator</legend>
<input class="tui-input blue-168 white-255-text" style="text-align: right;" disabled value="872.9000" />
<br><br>
<button class="tui-button">C&nbsp;</button>
<button class="tui-button">&#60;-</button>
<button class="tui-button">%&nbsp;</button>
<button class="tui-button">+-</button><br><br>
<button class="tui-button">7&nbsp;</button>
<button class="tui-button">8&nbsp;</button>
<button class="tui-button">9&nbsp;</button>
<button class="tui-button">/&nbsp;</button><br><br>
<button class="tui-button">4&nbsp;</button>
<button class="tui-button">5&nbsp;</button>
<button class="tui-button">6&nbsp;</button>
<button class="tui-button">*&nbsp;</button><br><br>
<button class="tui-button">1&nbsp;</button>
<button class="tui-button">2&nbsp;</button>
<button class="tui-button">3&nbsp;</button>
<button class="tui-button">-&nbsp;</button><br><br>
<button class="tui-button">0&nbsp;</button>
<button class="tui-button">.&nbsp;</button>
<button class="tui-button">=&nbsp;</button>
<button class="tui-button">+&nbsp;</button>
</fieldset>
</div><br><br>
<!-- WINDOW TEXTAREA -->
<div class="tui-window">
<fieldset class="tui-window-fieldset">
<legend align="center">MYAPP.CPP</legend>
<button class="tui-fieldset-button"><span class="green-255-text"></span></button>
<button class="tui-fieldset-button tui-fieldset-button-left"><span class="green-255-text"></span></button>
<textarea class="tui-textarea" style="width: 400px; height: 200px;">#include &#60;iostream&#62;
using namespace std;
int main()
{
cout &#60;&#60; "Hello, World!";
return 0;
}</textarea>
</fieldset>
</div><br><br>
<!--HELP -->
<div class="tui-window">
<fieldset class="tui-window-fieldset tui-window-fieldset-no-legend yellow-255-border">
<br><br>
<center>
TuiCSS<br><br>
Version: 0.1.0<br>
Copyright (c) 2018 by VBFoundation
</center>
<br><br>
</fieldset>
</div><br><br>
<!--REGISTER EXAMPLE 1 -->
<div class="tui-window white-168">
<fieldset class="tui-window-fieldset black-255-text">
<legend align="center" class="white-255-text">Register / 106</legend>
<div style="display: inline-block; width: 500px">
<span class="yellow-255-text">N</span>umber.....:
<input style="width: 100px" class="tui-input blue-168" type="number" value="106" /><br>
<span class="yellow-255-text">D</span>ocument...:
<input style="width: 150px" class="tui-input blue-168" value="1.504.00.1-00" /><br>
<span class="yellow-255-text">F</span>irst Name.:
<input style="width: 250px" class="tui-input blue-168" value="Robert" /><br>
<span class="yellow-255-text">S</span>econd Name:
<input style="width: 250px" class="tui-input blue-168" value="Munique Steffens" /><br>
<span class="yellow-255-text">C</span>ity.......:
<input style="width: 150px" class="tui-input blue-168" value="Blumenau" /><br>
S<span class="yellow-255-text">t</span>ate......:
<input style="width: 50px" class="tui-input blue-168" value="SC" /><br>
C<span class="yellow-255-text">o</span>ntry.....:
<input style="width: 100px" class="tui-input blue-168" value="Brazil" /><br><br>
P<span class="yellow-255-text">h</span>one......:
<input style="width: 200px" class="tui-input blue-168" value="(47) 3 3784-2134" /><br>
F<span class="yellow-255-text">a</span>x........:
<input style="width: 200px" class="tui-input blue-168" value="" /><br>
E<span class="yellow-255-text">m</span>ail......:
<input style="width: 250px" class="tui-input blue-168" value="robert@email.com" /><br><br>
<span class="yellow-255-text">G</span>roup......:
<select class="tui-input blue-168">
<option>Awner</option>
<option>Administrators</option>
<option>Common Users</option>
</select>
</div>
<div style="display: inline-block; width: 200px; vertical-align: top">
<span>Locale</span>
<div class="cyan-168">
<label class="tui-radio black-255-text"> en-US
<input type="radio" name="locale" checked>
<span></span>
</label>
<label class="tui-radio black-255-text"> pt-BR
<input type="radio" name="locale">
<span></span>
</label>
<label class="tui-radio black-255-text"> ch-CH
<input type="radio" name="locale">
<span></span>
</label>
<label class="tui-radio black-255-text"> none
<input type="radio" name="locale">
<span></span>
</label>
</div>
<div class="right">
<span>...Cod:</span><input style="width: 30px" class="tui-input blue-168">
</div>
<br><br>
<span>Currency</span>
<div class="cyan-168 black-255-text">
<label class="tui-radio black-255-text"> USD
<input type="radio" name="currency" checked>
<span></span>
</label>
<label class="tui-radio black-255-text"> R$
<input type="radio" name="currency">
<span></span>
</label>
<label class="tui-radio black-255-text"> none
<input type="radio" name="currency">
<span></span>
</label>
</div>
<br>
Registered at: 11/09/2018 12:50:15
</div>
<br><br>
<button class="tui-button"><span class="yellow-255-text">n</span>ew</button>
<button class="tui-button"><span class="yellow-255-text">d</span>el</button>
<button class="tui-button"><span class="yellow-255-text">s</span>earch</button>
<button class="tui-button"><span class="yellow-255-text">l</span>ist</button>
<button class="tui-button"><span class="yellow-255-text">r</span>eports</button>
<br><br>
</fieldset>
</div><br><br>
<!--REGISTER EXAMPLE 2 -->
<div class="tui-window">
<fieldset class="tui-window-fieldset">
<legend align="center" class="white-255-text">Register / 106</legend>
<div style="display: inline-block; width: 500px">
<span class="yellow-255-text">N</span>umber.....:
<input style="width: 100px" class="tui-input" type="number" value="106" /><br>
<span class="yellow-255-text">D</span>ocument...:
<input style="width: 150px" class="tui-input" value="1.504.00.1-00" /><br>
<span class="yellow-255-text">F</span>irst Name.:
<input style="width: 250px" class="tui-input" value="Robert" /><br>
<span class="yellow-255-text">S</span>econd Name:
<input style="width: 250px" class="tui-input" value="Munique Steffens" /><br>
<span class="yellow-255-text">C</span>ity.......:
<input style="width: 150px" class="tui-input" value="Blumenau" /><br>
S<span class="yellow-255-text">t</span>ate......:
<input style="width: 50px" class="tui-input" value="SC" /><br>
C<span class="yellow-255-text">o</span>ntry.....:
<input style="width: 100px" class="tui-input" value="Brazil" /><br><br>
P<span class="yellow-255-text">h</span>one......:
<input style="width: 200px" class="tui-input" value="(47) 3 3784-2134" /><br>
F<span class="yellow-255-text">a</span>x........:
<input style="width: 200px" class="tui-input" value="" /><br>
E<span class="yellow-255-text">m</span>ail......:
<input style="width: 250px" class="tui-input" value="robert@email.com" /><br><br>
<span class="yellow-255-text">G</span>roup......:
<select class="tui-input">
<option>Awner</option>
<option>Administrators</option>
<option>Common Users</option>
</select>
</div>
<div style="display: inline-block; width: 200px; vertical-align: top">
<span>Locale</span>
<div class="cyan-168">
<label class="tui-radio black-255-text"> en-US
<input type="radio" name="locale" checked>
<span></span>
</label>
<label class="tui-radio black-255-text"> pt-BR
<input type="radio" name="locale">
<span></span>
</label>
<label class="tui-radio black-255-text"> ch-CH
<input type="radio" name="locale">
<span></span>
</label>
<label class="tui-radio black-255-text"> none
<input type="radio" name="locale">
<span></span>
</label>
</div>
<div class="right">
<span>...Cod:</span><input style="width: 30px" class="tui-input blue-168">
</div>
<br><br>
<span>Currency</span>
<div class="cyan-168 black-255-text">
<label class="tui-radio black-255-text"> USD
<input type="radio" name="currency" checked>
<span></span>
</label>
<label class="tui-radio black-255-text"> R$
<input type="radio" name="currency">
<span></span>
</label>
<label class="tui-radio black-255-text"> none
<input type="radio" name="currency">
<span></span>
</label>
</div>
<br>
Registered at: 11/09/2018 12:50:15
</div>
<br><br>
<button class="tui-button"><span class="yellow-255-text">n</span>ew</button>
<button class="tui-button"><span class="yellow-255-text">d</span>el</button>
<button class="tui-button"><span class="yellow-255-text">s</span>earch</button>
<button class="tui-button"><span class="yellow-255-text">l</span>ist</button>
<button class="tui-button"><span class="yellow-255-text">r</span>eports</button>
<br><br>
</fieldset>
</div><br><br>
<!-- STATUSBAR -->
<div class="tui-statusbar">
<ul>
<li><a href="#!"><span class="red-168-text">F1</span> Help</a></li>
<li><a href="#!"><span class="red-168-text">F2</span> Shell</a></li>
<li><a href="#!"><span class="red-168-text">F3</span> Open</a></li>
<span class="tui-statusbar-divider"></span>
<li><a href="#!"><span class="red-168-text">F10</span> Exit</a></li>
</ul>
</div><br><br>
</div>
<br><br>
</body>
<script>
window.onload = function () {
setInterval(function () {
var today = new Date();
var clock = document.getElementById("clock");
var hour = (today.getHours() + "").length == 2 ? today.getHours() : "0" + today.getHours();
var minute = (today.getMinutes() + "").length == 2 ? today.getMinutes() : "0" + today.getMinutes();
var second = (today.getSeconds() + "").length == 2 ? today.getSeconds() : "0" + today.getSeconds();
clock.innerHTML = hour + ":" + minute + ":" + second;
});
};
</script>
</html>

70
examples/bios.html Normal file
View File

@@ -0,0 +1,70 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>BIOS Example</title>
<script src="plugins/jquery-3.4.1.min.js"></script>
<script src="../dist/tuicss.min.js"></script>
<link rel="stylesheet" href="../dist/tuicss.min.css">
</head>
<body>
<div class="tui-screen-800-600 bordered white-168">
<div class="tui-panel cyan-168 full-width black-255-text tui-no-shadow center">
BIOS
</div>
<div class="tui-tabs">
<ul>
<li><a class="tui-tab active" data-tab-content="tab-1-content">Main</a></li>
<li><a class="tui-tab" data-tab-content="tab-2-content">Exit</a></li>
</ul>
</div>
<div class="tui-tab-content tui-content" id="tab-1-content">
<table class="tui-table-grid">
<tbody>
<tr>
<td rowspan="2" width="60%" class="blue-168-text">
<br>System Time.........:<input type="text" class="tui-input white-168 black-text" value="[09:21:30]" style="width: 135px" />
<br>System Date.........:<input type="text" class="tui-input white-168 black-text" value="[15/09/1994]" style="width: 135px" />
<br>
<br>Legacy Diskette A...:<input type="text" class="tui-input white-168 black-text" value="[1.44/1.25 MB]" style="width: 135px" />]
<br>Legacy Diskette B...:<input type="text" class="tui-input white-168 black-text" value="[disabeld]" style="width: 135px" />
<br>
<br>Primary Master......:<input type="text" class="tui-input white-168 black-text" value="[None]" style="width: 135px" />
<br>Primary Slave.......:<input type="text" class="tui-input white-168 black-text" value="[None]" style="width: 135px" />
<br>Secondary Master....:<input type="text" class="tui-input white-168 black-text" value="[CD-ROM]" style="width: 135px" />
<br>Secondary Slave.....:<input type="text" class="tui-input white-168 black-text" value="[None]" style="width: 135px" />
<br>
<br>Keyboard Features...:<input type="text" class="tui-input white-168 black-text" value="[Enter]" style="width: 135px" />
<br>
<br>System Memory.......:<input type="text" class="tui-input white-168 black-text" value="[640 KB]" style="width: 135px" />
<br>Extended Memory.....:<input type="text" class="tui-input white-168 black-text" value="[3568410 KB]" style="width: 135px" />
<br>Boot-time Diagnostic:<input type="text" class="tui-input white-168 black-text" value="[Enabled]" style="width: 135px" />
</td>
<td width="40%" class="center">Item Specified Help</td>
</tr>
<tr>
<td width="25" height="448px">
<br>&#60;Tab&#62;, &#60;Shift-Tab&#62; or &#60;Enter&#62; selects field.
</td>
</tr>
</tbody>
</table>
</div>
<div class="tui-statusbar absolute cyan-168">
<ul>
<li><a href="#!"><span class="white-255-text">F1</span> Help</a></li>
<li><a href="#!"><span class="white-255-text">↑↓</span> Select Item</a></li>
<li><a href="#!"><span class="white-255-text">-/+</span> Change Values</a></li>
<li><a href="#!"><span class="white-255-text">F9</span> Setup Defaults</a></li>
<br>
<li><a href="#!"><span class="white-255-text">Esc</span> Exit</a></li>
<li><a href="#!"><span class="white-255-text">←→</span> Select Menu</a></li>
<li><a href="#!"><span class="white-255-text">Enter</span> Select Sub-Menu</a></li>
<li><a href="#!"><span class="white-255-text">F10</span> Save and Exit</a></li>
</ul>
</div>
</div>
</body>
</html>

80
examples/inputs.html Normal file
View File

@@ -0,0 +1,80 @@
<!DOCTYPE html>
<html lang="en" class="tui-bg-blue-black">
<head>
<meta charset="UTF-8">
<title>Inputs Example</title>
<script src="plugins/jquery-3.4.1.min.js"></script>
<script src="../dist/tuicss.min.js"></script>
<link rel="stylesheet" href="../dist/tuicss.min.css">
<style>
.tui-input {
width: 300px;
}
</style>
</head>
<body class="center" style="padding: 50px">
<div class="tui-window" style="text-align: left">
<fieldset class="tui-fieldset">
<legend class="center">Form</legend>
Text.......: <input class="tui-input" value="text" /><br>
Number.....: <input class="tui-input" type="number" value="25" /><br>
Password...: <input class="tui-input" type="password" value="12345" /><br>
Color......: <input class="tui-input" type="color" value="#00FF00" /><br>
Select.....: <select class="tui-input">
<option>First</option>
<option>Second</option>
<option>Third</option>
</select><br>
Date.......: <input class="tui-input" type="date" value="2019-01-01" /><br>
Time.......: <input class="tui-input" type="datetime-local" value="2019-01-01T12:00" />
<br><br>
<fieldset class="tui-input-fieldset">
<legend>Checkboxes</legend>
<label class="tui-checkbox">First
<input type="checkbox" checked />
<span></span>
</label>
<label class="tui-checkbox">Second
<input type="checkbox" />
<span></span>
</label>
<label class="tui-checkbox">Third
<input type="checkbox" />
<span></span>
</label>
</fieldset>
<br>
<fieldset class="tui-input-fieldset">
<legend>Radios</legend>
<label class="tui-radio">First
<input type="radio" name="radio" checked />
<span></span>
</label>
<label class="tui-radio">Second
<input type="radio" name="radio" />
<span></span>
</label>
<label class="tui-radio">Third
<input type="radio" name="radio" />
<span></span>
</label>
</fieldset>
<br>
Textarea<br>
<textarea class="tui-input" style="width: 100%"></textarea>
<br>
Multiple<br>
<select multiple class="tui-input" style="width: 100%">
<option>---</option>
<option>First</option>
<option>Second</option>
<option>Third</option>
</select><br>
File <input class="tui-input full-width" type="file" />
</fieldset>
</div>
</body>
</html>

35
examples/modal.html Normal file
View File

@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="en" class="tui-bg-blue-black">
<head>
<meta charset="UTF-8">
<title>Modal Example</title>
<script src="plugins/jquery-3.4.1.min.js"></script>
<script src="../dist/tuicss.min.js"></script>
<link rel="stylesheet" href="../dist/tuicss.min.css">
</head>
<body class="center">
<div style="margin-top: 300px"></div>
<!-- Button -->
<button class="tui-button tui-modal-button" data-modal="modal">◄ Click ►</button>
<!-- Overlap -->
<div class="tui-overlap"></div>
<!-- Modal window -->
<div id="modal" class="tui-modal">
<div class="tui-window red-168 left-align">
<fieldset class="tui-fieldset">
<legend class="red-255 yellow-255-text">Alert</legend>
This is an example of a modal window.
<br><br>
<div class="tui-divider"></div>
<br>
<button class="tui-button cyan-168 white-255-text tui-modal-close-button right" data-modal="modal">close</button>
</fieldset>
</div>
</div>
</body>
</html>

56
examples/pc-startup.html Normal file
View File

@@ -0,0 +1,56 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>PC Startup Example</title>
<script src="plugins/jquery-3.4.1.min.js"></script>
<script src="../dist/tuicss.min.js"></script>
<link rel="stylesheet" href="../dist/tuicss.min.css">
</head>
<body>
<div class="tui-screen-800-600 black white-text" style="padding: 2px">
<img src="./resources/pcstartup1.png" width="40px" height="40px" style="float: left" />
<img src="./resources/pcstartup2.png" width="200px" height="150px" style="float: right" />
<div style="margin-top: 4px"></div>
Award Medallion BIOS v6.0, An Energy Star Ally<br>
Copyright (C) 1984-2001, Award Software, Inc.<br><br>
ASUS P4T533-C ACPI BIOS Revision 1007 Beta 001<br><br>
Intel(R) Pentium(R) 4 2800 MHz Processor<br>
Memory Test : &nbsp;&nbsp; 262144K OK<br><br>
<div id="session-1" style="display: none">
Award Plug and Play BIOS Extension v1.0A<br>
Initialize Plug and Play Cards...<br>
PNP init Completed<br><br>
</div>
<div id="session-2" style="display: none">
Detecting Primary Master .....: MAXTOR 6L040J2<br>
</div>
<div id="session-3" style="display: none">
Detecting Primary Slave ......: ASUS CD-S520/A<br>
</div>
<div id="session-4" style="display: none">
Detecting Secondary Master ...: Skip<br>
Detecting Secondaty Slave ....: None
</div>
<div class="tui-statusbar absolute black white-text">
<ul>
<li style="margin-left: 0px">Press <b>DEL</b> to enter SETUP, <b>Alt+F2</b> to enter EZ flash utility
</li>
</ul>
<ul>
<li style="margin-left: 0px">08/20/2002-1850E/ICH2/W627-P4T533-C</li>
</ul>
</div>
</div>
</body>
<script>
$(document).ready(function() {
setTimeout(function() { $("#session-1").show(); }, 300);
setTimeout(function() { $("#session-2").show(); }, 400);
setTimeout(function() { $("#session-3").show(); }, 450);
setTimeout(function() { $("#session-4").show(); }, 870);
});
</script>
</html>

2
examples/plugins/jquery-3.4.1.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,55 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Pocket Calculator Example</title>
<script src="plugins/jquery-3.4.1.min.js"></script>
<script src="../dist/tuicss.min.js"></script>
<link rel="stylesheet" href="../dist/tuicss.min.css">
</head>
<body>
<div class="tui-screen-800-600 bordered blue-168" style="padding: 40px">
<div class="center" style="margin-top: 100px;">
<div class="tui-window white-168">
<fieldset class="tui-fieldset">
<legend align="center">Pocket Calculator</legend>
&nbsp;<input id="display" class="tui-input blue-168 white-255-text" style="text-align: right;" disabled value="872.9000" />
<br><br>
<button class="tui-button" onclick="clearDisplay()">C&nbsp;</button>
<button class="tui-button">&#60;-</button>
<button class="tui-button">%&nbsp;</button>
<button class="tui-button">+-</button><br><br>
<button class="tui-button" onclick="digit('7')">7&nbsp;</button>
<button class="tui-button" onclick="digit('8')">8&nbsp;</button>
<button class="tui-button" onclick="digit('9')">9&nbsp;</button>
<button class="tui-button">/&nbsp;</button><br><br>
<button class="tui-button" onclick="digit('4')">4&nbsp;</button>
<button class="tui-button" onclick="digit('5')">5&nbsp;</button>
<button class="tui-button" onclick="digit('6')">6&nbsp;</button>
<button class="tui-button">*&nbsp;</button><br><br>
<button class="tui-button" onclick="digit('1')">1&nbsp;</button>
<button class="tui-button" onclick="digit('2')">2&nbsp;</button>
<button class="tui-button" onclick="digit('3')">3&nbsp;</button>
<button class="tui-button">-&nbsp;</button><br><br>
<button class="tui-button" onclick="digit('0')">0&nbsp;</button>
<button class="tui-button" onclick="digit('.')">.&nbsp;</button>
<button class="tui-button">=&nbsp;</button>
<button class="tui-button">+&nbsp;</button>
</fieldset>
</div>
</div>
</div>
<script>
function digit(digit) {
let val = $("#display").val();
$("#display").val(digit + "" + val);
}
function clearDisplay() {
$("#display").val("");
}
</script>
</body>
</html>

View File

@@ -0,0 +1,60 @@
<!DOCTYPE html>
<html lang="en" class="tui-bg-blue-black">
<head>
<meta charset="UTF-8">
<title>Progress Example</title>
<script src="plugins/jquery-3.4.1.min.js"></script>
<script src="../dist/tuicss.min.js"></script>
<link rel="stylesheet" href="../dist/tuicss.min.css">
</head>
<body>
<body class="center" style="padding: 50px">
<div class="tui-window" style="text-align: left;">
<fieldset class="tui-fieldset">
<legend class="center">Progress</legend>
0% ............:
<div class="tui-progress-bar inline-block valign-middle">
<span class="tui-progress" style="width: 0%"></span>
</div><br><br>
25% ...........:
<div class="tui-progress-bar inline-block valign-middle">
<span class="tui-progress" style="width: 25%"></span>
</div><br><br>
50% ...........:
<div class="tui-progress-bar inline-block valign-middle">
<span class="tui-progress" style="width: 50%"></span>
</div><br><br>
75% ...........:
<div class="tui-progress-bar inline-block valign-middle">
<span class="tui-progress" style="width: 75%"></span>
</div><br><br>
100% ..........:
<div class="tui-progress-bar inline-block valign-middle">
<span class="tui-progress" style="width: 100%"></span>
</div><br><br>
Texture bg ....:
<div class="tui-progress-bar inline-block valign-middle tui-bg-blue-black">
<span class="tui-progress" style="width: 50%"></span>
</div><br><br>
Indeterminate .:
<div class="tui-progress-bar inline-block valign-middle">
<span class="tui-indeterminate"></span>
</div><br><br>
Labeled .......:
<div class="tui-progress-bar inline-block valign-middle">
<span class="tui-progress-label black-text">75%</span>
<span class="tui-progress" style="width: 75%"></span>
</div><br><br>
Custom ........:
<div class="tui-progress-bar inline-block valign-middle red-255">
<span class="tui-progress green-255" style="width: 50%"></span>
</div>
</fieldset>
</div>
</div>
</body>
</html>

126
examples/register.html Normal file
View File

@@ -0,0 +1,126 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Register Example</title>
<script src="plugins/jquery-3.4.1.min.js"></script>
<script src="../dist/tuicss.min.js"></script>
<link rel="stylesheet" href="../dist/tuicss.min.css">
<style>
ul li {
display: inline-block;
margin-right: 60px;
}
</style>
</head>
<body>
<div class="tui-screen-800-600 bordered white-168 tui-bg-blue-black center">
<div class="tui-window full-width tui-no-shadow left-align">
<fieldset class="tui-fieldset no-legend">
<ul>
<li><a class="white-255-hover black-text-hover cursor-pointer inline">Tables</a></li>
<li><a class="white-255-hover black-text-hover cursor-pointer inline">Reports</a></li>
<li><a class="white-255-hover black-text-hover cursor-pointer inline">Print</a></li>
<li><a class="white-255-hover black-text-hover cursor-pointer inline">Admin</a></li>
</ul>
</fieldset>
</div>
<div class="tui-window left-align" style="margin-top: 60px;">
<fieldset class="tui-fieldset">
<legend class="white-255-text center">Register</legend>
<div style="display: inline-block; width: 500px">
<span class="yellow-255-text">N</span>umber.....:
<input style="width: 100px" class="tui-input" type="number" value="106" /><br>
<span class="yellow-255-text">D</span>ocument...:
<input style="width: 150px" class="tui-input" value="1.504.00.1-00" /><br>
<span class="yellow-255-text">F</span>irst Name.:
<input style="width: 250px" class="tui-input" value="Robert" /><br>
<span class="yellow-255-text">S</span>econd Name:
<input style="width: 250px" class="tui-input" value="Munique Steffens" /><br>
<span class="yellow-255-text">C</span>ity.......:
<input style="width: 150px" class="tui-input" value="Blumenau" /><br>
S<span class="yellow-255-text">t</span>ate......:
<input style="width: 50px" class="tui-input" value="SC" /><br>
C<span class="yellow-255-text">o</span>ntry.....:
<input style="width: 100px" class="tui-input" value="Brazil" /><br><br>
P<span class="yellow-255-text">h</span>one......:
<input style="width: 200px" class="tui-input" value="(47) 3 3784-2134" /><br>
F<span class="yellow-255-text">a</span>x........:
<input style="width: 200px" class="tui-input" value="" /><br>
E<span class="yellow-255-text">m</span>ail......:
<input style="width: 250px" class="tui-input" value="robert@email.com" /><br><br>
<span class="yellow-255-text">G</span>roup......:
<select class="tui-input">
<option>Owner</option>
<option>Administrators</option>
<option>Common Users</option>
</select>
</div>
<div style="display: inline-block; width: 200px; vertical-align: top">
<span>Locale</span>
<div class="cyan-168">
<label class="tui-radio black-255-text"> en-US
<input type="radio" name="locale" checked>
<span></span>
</label>
<label class="tui-radio black-255-text"> pt-BR
<input type="radio" name="locale">
<span></span>
</label>
<label class="tui-radio black-255-text"> es-EC
<input type="radio" name="locale">
<span></span>
</label>
<label class="tui-radio black-255-text"> none
<input type="radio" name="locale">
<span></span>
</label>
</div>
<div class="right">
<span>...Cod:</span><input style="width: 30px" class="tui-input">
</div>
<br><br>
<span>Currency</span>
<div class="cyan-168 black-255-text">
<label class="tui-radio black-255-text"> USD
<input type="radio" name="currency" checked>
<span></span>
</label>
<label class="tui-radio black-255-text"> R$
<input type="radio" name="currency">
<span></span>
</label>
<label class="tui-radio black-255-text"> none
<input type="radio" name="currency">
<span></span>
</label>
</div>
<br>
Registered at: 09/06/2019 09:38:00 PM
</div>
<br><br>
<button class="tui-button"><span class="yellow-255-text">n</span>ew</button>
<button class="tui-button"><span class="yellow-255-text">d</span>el</button>
<button class="tui-button"><span class="yellow-255-text">s</span>earch</button>
<button class="tui-button"><span class="yellow-255-text">l</span>ist</button>
<button class="tui-button"><span class="yellow-255-text">r</span>eports</button>
<br><br>
</fieldset>
</div>
<div class="tui-statusbar blue-255 white-255-text absolute left-align">
<ul>
<li><a>09/06/2019</a></li>
<li><a>Service Orders Count: 2</a></li>
<li><a>10:43:00 PM</a></li>
</ul>
</div>
</div>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

52
examples/scandisk.html Normal file
View File

@@ -0,0 +1,52 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Scandisk Example</title>
<script src="plugins/jquery-3.4.1.min.js"></script>
<script src="../dist/tuicss.min.js"></script>
<link rel="stylesheet" href="../dist/tuicss.min.css">
<style>
.scandisk-button {
background-color: rgb(80, 80, 80);
color: rgb(168, 168, 168);
margin-right: 20px;
}
</style>
</head>
<body>
<div class="tui-screen-800-600 bordered blue-168" style="padding: 40px">
<span class="cyan-255-text">Microsoft ScanDisk</span>
<br><br>
<span class="tui-divider cyan-255-border"></span>
<br><br>
<span class="white-168-text">ScanDisk is now checking the following areas of drive C:</span>
<br><br>
<div class="white-168-text" style="padding-left: 80px">
<span class="cyan-255-text"></span><span style="margin-left: 30px">Media descriptor</span><br>
<span class="cyan-255-text"></span><span style="margin-left: 30px">Files allocation tables</span><br>
<span class="cyan-255-text">»</span><span style="margin-left: 30px">Directory structure</span><br>
<span class="cyan-255-text">&nbsp;</span><span style="margin-left: 30px">File system</span><br>
<span class="cyan-255-text">&nbsp;</span><span style="margin-left: 30px">Free space</span><br>
<span class="cyan-255-text">&nbsp;</span><span style="margin-left: 30px">Surface scan</span><br>
</div>
<div style="height: 220px"></div>
<div>
<button class="tui-button scandisk-button white-text">◄ Pause ►</button>
<button class="tui-button scandisk-button"><span class="white-text">M</span>ore info</button>
<button class="tui-button scandisk-button">E<span class="white-text">x</span>it</button>
</div>
<br><br>
<span class="tui-divider cyan-255-border"></span>
<br>
<div>
<span class="cyan-255-text">75% complete</span>
<span class="tui-progress-bar right tui-bg-blue-black" style="width: 550px; ">
<span class="tui-progress yellow-255" style="width: 75%"></span>
</span>
</div>
</div>
</body>
</html>

256
examples/table.html Normal file
View File

@@ -0,0 +1,256 @@
<!DOCTYPE html>
<html lang="en" class="tui-bg-blue-black">
<head>
<meta charset="UTF-8">
<title>Table Example</title>
<script src="plugins/jquery-3.4.1.min.js"></script>
<script src="../dist/tuicss.min.js"></script>
<link rel="stylesheet" href="../dist/tuicss.min.css">
<style>
.tui-window {
margin-bottom: 40px;
}
</style>
</head>
<body>
<body class="center" style="padding: 50px">
<div class="tui-window" style="text-align: left;">
<fieldset class="tui-fieldset">
<legend class="center">Table</legend>
<table class="tui-table" style="width: 700px">
<thead>
<tr>
<th>Name</th>
<th>PID</th>
<th>CPU</th>
<th>Memory</th>
</tr>
</thead>
<tbody>
<tr>
<td>conhost.exe</td>
<td>25768</td>
<td>00</td>
<td>1.748 Kb</td>
</tr>
<tr>
<td>msdos.exe</td>
<td>748</td>
<td>00</td>
<td>22.216 Kb</td>
</tr>
<tr>
<td>System</td>
<td>25000</td>
<td>12</td>
<td>112 Kb</td>
</tr>
<tr>
<td>svchost.exe</td>
<td>580</td>
<td>01</td>
<td>9.440 Kb</td>
</tr>
<tr>
<td>explorer.exe</td>
<td>4</td>
<td>00</td>
<td>53.740 Kb</td>
</tr>
<tr>
<td>conhost.exe</td>
<td>25768</td>
<td>00</td>
<td>1.748 Kb</td>
</tr>
<tr>
<td>msdos.exe</td>
<td>748</td>
<td>00</td>
<td>22.216 Kb</td>
</tr>
<tr>
<td>System</td>
<td>25000</td>
<td>12</td>
<td>112 Kb</td>
</tr>
<tr>
<td>svchost.exe</td>
<td>580</td>
<td>01</td>
<td>9.440 Kb</td>
</tr>
<tr>
<td>explorer.exe</td>
<td>4</td>
<td>00</td>
<td>53.740 Kb</td>
</tr>
</tbody>
</table>
</fieldset>
</div><br>
<div class="tui-window" style="text-align: left;">
<fieldset class="tui-fieldset">
<legend class="center">Table hovered</legend>
<table class="tui-table hovered-cyan" style="width: 700px">
<thead>
<tr>
<th>Name</th>
<th>PID</th>
<th>CPU</th>
<th>Memory</th>
</tr>
</thead>
<tbody>
<tr>
<td>conhost.exe</td>
<td>25768</td>
<td>00</td>
<td>1.748 Kb</td>
</tr>
<tr>
<td>msdos.exe</td>
<td>748</td>
<td>00</td>
<td>22.216 Kb</td>
</tr>
<tr>
<td>System</td>
<td>25000</td>
<td>12</td>
<td>112 Kb</td>
</tr>
<tr>
<td>svchost.exe</td>
<td>580</td>
<td>01</td>
<td>9.440 Kb</td>
</tr>
<tr>
<td>explorer.exe</td>
<td>4</td>
<td>00</td>
<td>53.740 Kb</td>
</tr>
<tr>
<td>conhost.exe</td>
<td>25768</td>
<td>00</td>
<td>1.748 Kb</td>
</tr>
<tr>
<td>msdos.exe</td>
<td>748</td>
<td>00</td>
<td>22.216 Kb</td>
</tr>
<tr>
<td>System</td>
<td>25000</td>
<td>12</td>
<td>112 Kb</td>
</tr>
<tr>
<td>svchost.exe</td>
<td>580</td>
<td>01</td>
<td>9.440 Kb</td>
</tr>
<tr>
<td>explorer.exe</td>
<td>4</td>
<td>00</td>
<td>53.740 Kb</td>
</tr>
</tbody>
</table>
</fieldset>
</div><br>
<div class="tui-window" style="text-align: left;">
<fieldset class="tui-fieldset">
<legend class="center">Table striped</legend>
<table class="tui-table striped-purple" style="width: 700px">
<thead>
<tr>
<th>Name</th>
<th>PID</th>
<th>CPU</th>
<th>Memory</th>
</tr>
</thead>
<tbody>
<tr>
<td>conhost.exe</td>
<td>25768</td>
<td>00</td>
<td>1.748 Kb</td>
</tr>
<tr>
<td>msdos.exe</td>
<td>748</td>
<td>00</td>
<td>22.216 Kb</td>
</tr>
<tr>
<td>System</td>
<td>25000</td>
<td>12</td>
<td>112 Kb</td>
</tr>
<tr>
<td>svchost.exe</td>
<td>580</td>
<td>01</td>
<td>9.440 Kb</td>
</tr>
<tr>
<td>explorer.exe</td>
<td>4</td>
<td>00</td>
<td>53.740 Kb</td>
</tr>
<tr>
<td>conhost.exe</td>
<td>25768</td>
<td>00</td>
<td>1.748 Kb</td>
</tr>
<tr>
<td>msdos.exe</td>
<td>748</td>
<td>00</td>
<td>22.216 Kb</td>
</tr>
<tr>
<td>System</td>
<td>25000</td>
<td>12</td>
<td>112 Kb</td>
</tr>
<tr>
<td>svchost.exe</td>
<td>580</td>
<td>01</td>
<td>9.440 Kb</td>
</tr>
<tr>
<td>explorer.exe</td>
<td>4</td>
<td>00</td>
<td>53.740 Kb</td>
</tr>
</tbody>
</table>
</fieldset>
</div>
</div>
</body>
</html>

188
examples/turbo-vision.html Normal file
View File

@@ -0,0 +1,188 @@
<!DOCTYPE html>
<html lang="en" class="no-tui-scroll">
<head>
<meta charset="UTF-8">
<title>Turbo Vision Example</title>
<script src="plugins/jquery-3.4.1.min.js"></script>
<script src="../dist/tuicss.min.js"></script>
<link rel="stylesheet" href="../dist/tuicss.min.css">
</head>
<body>
<div class="tui-screen-800-600 bordered tui-bg-blue-black">
<!-- Sidenav -->
<nav class="tui-sidenav absolute">
<ul>
<li>
<a href="#!">
<span class="red-168-text">O</span>pen
<span class="tui-shortcut">ctrl+o</span>
</a>
</li>
<li>
<a href="#!">OS Shell</a>
</li>
<li>
<a href="#!">
<span class="red-168-text">C</span>opy
<span class="tui-shortcut">ctrl+c</span>
</a>
</li>
<li>
<a href="#!">
<span class="red-168-text">P</span>aste
<span class="tui-shortcut">ctrl+v</span>
</a>
</li>
<li>
<a href="#!">C<span class="red-168-text">u</span>t
<span class="tui-shortcut">ctrl+x</span>
</a>
</li>
<div class="tui-black-divider"></div>
<li>
<a href="#!">Insert</a>
</li>
<li>
<a href="#!">Delete</a>
</li>
<li>
<a href="#!">Go...</a>
</li>
<div class="tui-black-divider"></div>
<li>
<a href="#!">
<span class="red-168-text">S</span>earch
<span class="tui-shortcut">ctrl+p</span>
</a>
</li>
<div class="tui-black-divider"></div>
<li>
<a href="#!">Exit <span class="tui-shortcut">F10</span></a>
</li>
</ul>
</nav>
<!-- Navbar -->
<nav class="tui-nav absolute">
<span class="tui-datetime" data-format="h:m:s a"></span>
<ul>
<li class="tui-sidenav-button red-168-text"></li>
<li class="tui-dropdown">
<span class="red-168-text">F</span>ile
<div class="tui-dropdown-content">
<ul>
<li>
<a href="#!">
<span class="red-168-text">N</span>ew
</a>
</li>
<li>
<a href="#!">
<span class="red-168-text">O</span>pen...
<span class="tui-shortcut">F3</span>
</a>
</li>
<li>
<a href="#!">
<span class="red-168-text">S</span>ave
<span class="tui-shortcut">F2</span>
</a>
</li>
<li>
<a href="#!">
S<span class="red-168-text">a</span>ve as...
</a>
</li>
<li>
<a href="#!">
Save a<span class="red-168-text">l</span>l
</a>
</li>
<div class="tui-black-divider"></div>
<!-- SUBMENU EXAMPLE -->
<li class="tui-dropdown block">
<span class="right"></span>
<span class="red-168-text">M</span>ore
<div class="tui-dropdown-content">
<ul>
<li>
<a href="#!">
<span class="red-168-text">C</span>hange dir...
</a>
</li>
<li>
<a href="#!">
<span class="red-168-text">P</span>rint
</a>
</li>
<li>
<a href="#!">
<span class="red-168-text">D</span>OS shell
</a>
</li>
</ul>
</div>
</li>
<div class="tui-black-divider"></div>
<li>
<a href="#!">
<span class="red-168-text">Q</span>uit
<span class="tui-shortcut">F10</span>
</a>
</li>
</ul>
</div>
</li>
<li class="tui-dropdown">
<span class="red-168-text">E</span>dit
</li>
<li class="tui-dropdown">
<span class="red-168-text">V</span>iew
</li>
<li class="tui-dropdown">
<span class="red-168-text">H</span>elp
</li>
</ul>
</nav>
<!-- Edit panel -->
<div class="tui-window full-width tui-no-shadow" style="margin-top: 20px;">
<fieldset class="tui-fieldset">
<legend class="center">MYAPP.CPP</legend>
<span class="tui-fieldset-button"><span class="green-255-text"></span></span>
<span class="tui-fieldset-button left"><span class="green-255-text"></span></span>
<span class="tui-fieldset-text top right" style="margin-right: 50px">1</span>
<span class="tui-fieldset-text" style="margin-left: 50px;">&nbsp;1:1&nbsp;</span>
<textarea class="tui-textarea full-width" style="height: 493px; overflow: scroll;">#include &#60;iostream&#62;
using namespace std;
int main()
{
cout &#60;&#60; "Hello, World!";
return 0;
}</textarea>
</fieldset>
</div>
<!-- Status bar -->
<div class="tui-statusbar absolute">
<ul>
<li><a href="#!"><span class="red-168-text">F1</span> Help</a></li>
<li><a href="#!"><span class="red-168-text">F2</span> Save</a></li>
<li><a href="#!"><span class="red-168-text">F3</span> Open</a></li>
<li><a href="#!"><span class="red-168-text">Alt+F9</span> Compile</a></li>
<span class="tui-statusbar-divider"></span>
<li><a href="#!"><span class="red-168-text">F10</span> Menu</a></li>
</ul>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,171 @@
<!DOCTYPE html>
<html lang="en" class="tui-bg-blue-black">
<head>
<meta charset="UTF-8">
<title>Window and Panels Example</title>
<script src="plugins/jquery-3.4.1.min.js"></script>
<script src="../dist/tuicss.min.js"></script>
<link rel="stylesheet" href="../dist/tuicss.min.css">
<style>
.tui-window, .tui-panel {
margin-bottom: 20px;
text-align: left;
}
.info-text {
margin-bottom: 10px;
color: white;
}
</style>
</head>
<body>
<div class="center" style="margin-top: 100px; margin-bottom: 100px">
<!-- Simple window -->
<div class="info-text">Simple window</div>
<div class="tui-window">
<fieldset class="tui-fieldset">
<legend>Window</legend>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br>
Curabitur id vestibulum libero, id fermentum lorem.<br>
Aenean aliquam erat leo, eu tempus ex ornare eu.<br>
Sed ut lacus libero. Etiam rhoncus ipsum arcu.<br>
In quis bibendum libero. Donec nec egestas ipsum.<br>
Sed in venenatis diam. Nullam sollicitudin risus vel.<br>
<br>
<div class="tui-divider"></div>
<br>
<button class="tui-button white-255-text">more...</button>
<button class="tui-button purple-168 white-255-text">share</button>
</fieldset>
</div>
<!-- Scrool window -->
<div class="info-text">Scrool window</div>
<div class="tui-window white-168 black-255-text">
<fieldset class="tui-fieldset">
<legend class="white-255-text">Window</legend>
<div style="overflow: scroll; height: 200px; width: 400px; white-space: nowrap;">
<span class="tui-shadow">The Lorem Ipsum </span><br><br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br>
Curabitur id vestibulum libero, id fermentum lorem.<br>
Aenean aliquam erat leo, eu tempus ex ornare eu.<br>
Sed ut lacus libero. Etiam rhoncus ipsum arcu.<br>
In quis bibendum libero. Donec nec egestas ipsum.<br>
Sed in venenatis diam. Nullam sollicitudin risus vel.<br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br>
Curabitur id vestibulum libero, id fermentum lorem.<br>
Aenean aliquam erat leo, eu tempus ex ornare eu.<br>
Sed ut lacus libero. Etiam rhoncus ipsum arcu.<br>
In quis bibendum libero. Donec nec egestas ipsum.<br>
Sed in venenatis diam. Nullam sollicitudin risus vel.<br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br>
Curabitur id vestibulum libero, id fermentum lorem.<br>
Aenean aliquam erat leo, eu tempus ex ornare eu.<br>
Sed ut lacus libero. Etiam rhoncus ipsum arcu.<br>
In quis bibendum libero. Donec nec egestas ipsum.<br>
Sed in venenatis diam. Nullam sollicitudin risus vel.<br>
</div>
</fieldset>
</div>
<!-- Fieldset features -->
<div class="info-text">Fieldset features</div>
<div class="tui-window orange-168 black-255-text">
<fieldset class="tui-fieldset tui-border-solid white-border">
<legend class="center white-255-text">Window</legend>
<button class="tui-fieldset-button left"><span class="green-255-text"></span></button>
<button class="tui-fieldset-button"><span class="green-255-text"></span></button>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br>
Curabitur id vestibulum libero, id fermentum lorem.<br>
Aenean aliquam erat leo, eu tempus ex ornare eu.<br>
Sed ut lacus libero. Etiam rhoncus ipsum arcu.<br>
In quis bibendum libero. Donec nec egestas ipsum.<br>
Sed in venenatis diam. Nullam sollicitudin risus vel.<br>
<br>
<div class="tui-divider"></div>
<br>
<a class="tui-button white-168">Copy</a>
<a class="tui-button white-168">Paste</a>
<br><br>
<div class="tui-fieldset-text">Text format: UTF-8</div>
<div class="tui-fieldset-text right">Ln: 2, Col: 5</div>
</fieldset>
</div>
<!-- Item select -->
<div class="info-text">Item select</div>
<div class="tui-window purple-168">
<fieldset class="tui-fieldset no-legend tui-border-solid" style="width: 300px">
<ul>
<li class="cyan-255-hover black-255-text-hover">
<a href="#!">
<span class="tui-shortcut">A</span>
<span>Register Tables</span>
</a>
</li>
<li class="cyan-255-hover black-255-text-hover">
<a href="#!">
<span class="tui-shortcut">B</span>
<span>Register Consumers</span>
</a>
</li>
<li class="cyan-255-hover black-255-text-hover">
<a href="#!">
<span class="tui-shortcut">C</span>
<span>Register Companies</span>
</a>
</li>
</ul>
</fieldset>
</div>
<!-- Window textarea -->
<div class="info-text">Window textarea</div>
<div class="tui-window">
<fieldset class="tui-fieldset">
<legend class="center">MYAPP.CPP</legend>
<button class="tui-fieldset-button"><span class="green-255-text"></span></button>
<button class="tui-fieldset-button tui-fieldset-button-left"><span class="green-255-text"></span></button>
<textarea class="tui-textarea" style="width: 400px; height: 200px;">#include &#60;iostream&#62;
using namespace std;
int main()
{
cout &#60;&#60; "Hello, World!";
return 0;
}</textarea>
</fieldset>
</div>
<!-- Simple panel -->
<div class="info-text">Simple panel</div>
<div class="tui-panel cyan-168 black-255-text">
<div class="tui-panel-content">
<b>NOTE:</b> Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br> Vestibulum a posuere sapien, nec
placerat
lorem.<br> Aliquam urna lorem, placerat et varius et, aliquam ac libero.
</div>
</div>
<!-- Panel title -->
<div class="info-text">Panel title</div>
<div class="tui-panel white-168 black-255-text">
<div class="tui-panel-header">
About
</div>
<div class="tui-panel-content">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br>
Curabitur id vestibulum libero, id fermentum lorem.
<br><br>
<div class="center">
<button class="tui-button white-255" style="width: 80px">OK</button>
</div>
</div>
</div>
</div>
</body>
</html>

61
gulpfile.js Normal file
View File

@@ -0,0 +1,61 @@
const { series, src, dest } = require('gulp');
const sass = require('gulp-sass');
const gulpClean = require('gulp-clean');
const gulpMinify = require('gulp-minify');
const cleanCss = require('gulp-clean-css');
const gulpRename = require("gulp-rename");
const distPath = "./dist";
// Clear dist folder
function clean() {
return src(distPath + "/*", {read: false})
.pipe(gulpClean());
}
// Compile scss
function sassCompile() {
return src('src/tuicss.scss')
.pipe(sass())
.pipe(dest(distPath));
}
function minifyCss() {
return src(distPath + '/tuicss.css')
.pipe(cleanCss())
.pipe(gulpRename({
suffix: ".min"
}))
.pipe(dest(distPath));
}
function copyScript() {
return src('src/js/tuicss.js')
.pipe(dest(distPath));
}
function minifyJs() {
return src(distPath + '/tuicss.js')
.pipe(gulpMinify({
ext:{
min:'.min.js'
}
}))
.pipe(dest(distPath));
}
function copyImages() {
return src('src/images/*')
.pipe(dest(distPath + "/images"));
}
function copyFonts() {
return src('src/fonts/*')
.pipe(dest(distPath + "/fonts"));
}
exports.default = series(clean, sassCompile, minifyCss, copyScript, minifyJs, copyImages, copyFonts);

4751
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

34
package.json Normal file
View File

@@ -0,0 +1,34 @@
{
"name": "tuicss",
"version": "1.0.0",
"description": "TuiCss is a framework made to develop text-based user interface applications (TUI)",
"keywords": [
"TUI",
"Text based user interface",
"Turbo vision",
"TuiCss"
],
"main": "dist/tuicss.min.css",
"scripts": {
"build": "gulp"
},
"repository": {
"type": "git",
"url": "git+https://github.com/vinibiavatti1/TuiCss.git"
},
"author": "Vinícius Reif Biavatti",
"license": "MIT",
"bugs": {
"url": "https://github.com/vinibiavatti1/TuiCss/issues"
},
"homepage": "https://github.com/vinibiavatti1/TuiCss#readme",
"devDependencies": {
"gulp": "^4.0.2",
"gulp-clean": "^0.4.0",
"gulp-clean-css": "^4.2.0",
"gulp-copy": "^4.0.1",
"gulp-minify": "^3.1.0",
"gulp-rename": "^1.4.0",
"gulp-sass": "^4.0.2"
}
}

View File

@@ -0,0 +1,20 @@
.tui-bg-blue-white { background-image: url('./images/bg-blue-white.png'); background-repeat: repeat; }
.tui-bg-blue-black { background-image: url('./images/bg-blue-black.png'); background-repeat: repeat; }
.tui-bg-green-white { background-image: url('./images/bg-green-white.png'); background-repeat: repeat; }
.tui-bg-green-black { background-image: url('./images/bg-green-black.png'); background-repeat: repeat; }
.tui-bg-cyan-white { background-image: url('./images/bg-cyan-white.png'); background-repeat: repeat; }
.tui-bg-cyan-black { background-image: url('./images/bg-cyan-black.png'); background-repeat: repeat; }
.tui-bg-red-white { background-image: url('./images/bg-red-white.png'); background-repeat: repeat; }
.tui-bg-red-black { background-image: url('./images/bg-red-black.png'); background-repeat: repeat; }
.tui-bg-purple-white { background-image: url('./images/bg-purple-white.png'); background-repeat: repeat; }
.tui-bg-purple-black { background-image: url('./images/bg-purple-black.png'); background-repeat: repeat; }
.tui-bg-yellow-white { background-image: url('./images/bg-yellow-white.png'); background-repeat: repeat; }
.tui-bg-yellow-black { background-image: url('./images/bg-yellow-black.png'); background-repeat: repeat; }
.tui-bg-orange-white { background-image: url('./images/bg-orange-white.png'); background-repeat: repeat; }
.tui-bg-orange-black { background-image: url('./images/bg-orange-black.png'); background-repeat: repeat; }

View File

@@ -0,0 +1,19 @@
.tui-border-solid {
border-style: solid !important;
border-width: 2px !important;
}
.tui-border-dashed {
border-style: dashed !important;
border-width: 2px !important;
}
.tui-border-dotted {
border-style: dotted !important;
border-width: 2px !important;
}
.tui-border-double {
border-style: double !important;
border-width: 6px !important;
}

View File

@@ -0,0 +1,25 @@
@import '../mixins.scss';
.tui-button {
display: inline-block;
outline:0;
padding: 1px 10px;
background-color: rgb(0, 168, 0);
color: black;
border: none;
cursor: pointer;
text-align: center;
box-shadow: 10px 10px black;
@include disable-select;
}
.tui-button:active {
background-color: rgb(0, 168, 168)!important;
color: black!important;
box-shadow: none!important;
}
.tui-button:focus {
color: rgb(0, 255, 255)!important;
}
input[type=button] {
width: initial;
}

View File

@@ -0,0 +1,33 @@
@import '../variables.scss';
@import '../mixins.scss';
.tui-checkbox {
display: block;
position: relative;
cursor: pointer;
color: white;
padding-left: 30px;
@include disable-select;
}
.tui-checkbox input {
position: absolute;
opacity: 0;
cursor: pointer;
top: 0px;
left: 0px;
}
.tui-checkbox span {
position: absolute;
width: 10px;
height: 10px;
cursor: pointer;
top: 0px;
left: 0px;
}
.tui-checkbox input:checked ~ span::after {
content: $checkbox-on;
color: rgb(0, 255, 255);
}
.tui-checkbox input:not(checked) ~ span::after {
content: $checkbox-off;
}

View File

@@ -0,0 +1,5 @@
.tui-datetime {
padding: 1px 0px 1px 0px;
margin-right: 10px;
float:right;
}

View File

@@ -0,0 +1,8 @@
.tui-divider {
border-bottom: 2px solid rgb(255, 255, 255);
display: block;
}
.tui-black-divider {
border-bottom: 2px solid rgb(0, 0, 0);
display: block;
}

View File

@@ -0,0 +1,29 @@
@import '../mixins.scss';
.tui-dropdown {
position: relative;
display: inline-block;
cursor: pointer;
@include disable-select;
}
.tui-dropdown-content {
display: none;
position: absolute;
background-color: rgb(168, 168, 168);
min-width: 200px;
padding: 6px;
z-index: 9;
}
.tui-dropdown-content ul {
border: 2px black solid;
}
.tui-dropdown-content ul li {
display: block!important;
margin: 6px;
}
.tui-dropdown-content ul li a:hover {
background-color: rgb(0, 168, 0);
}
.tui-dropdown:hover > .tui-dropdown-content:first-of-type {
display: block;
}

View File

@@ -0,0 +1,75 @@
.tui-fieldset {
border: 6px white double;
padding: 12px;
background-color: inherit;
margin-bottom: 6px;
&.no-legend {
margin-top: 6px;
}
}
.tui-input-fieldset {
border-top: 6px white double;
border-bottom: 6px white double;
border-left: 2px white solid;
border-right: 2px white solid;
padding: 5px;
background-color: inherit;
}
.tui-input-fieldset legend {
color: white;
}
.tui-input-fieldset:hover {
border-color: yellow;
}
.tui-input-fieldset:hover legend {
color: yellow;
}
.tui-fieldset-button {
position: absolute;
top: 0px;
right: 16px;
color: white;
background-color: inherit;
z-index: 2;
border: none;
cursor: pointer;
outline:0;
padding: 2px;
&.left {
right: initial;
left: 16px !important;
}
&.bottom {
bottom: 0px;
top: initial;
}
}
.tui-fieldset-text {
position: absolute;
bottom: 0px;
left: 16px;
color: white;
background-color: inherit;
z-index: 2;
padding: 2px;
&.right {
left: initial;
right: 16px;
}
&.top {
top: 0px;
bottom: initial;
}
}
.tui-fieldset-button::before {
content: "[";
}
.tui-fieldset-button::after {
content: "]";
}
.tui-fieldset-button:active {
color: rgb(0, 255, 255)!important;
}

158
src/components/grid.scss Normal file
View File

@@ -0,0 +1,158 @@
@import '../variables.scss';
.container {
margin: 0 auto;
max-width: 1280px;
width: 90%;
}
@media #{$medium-and-up} {
.container {
width: 85%;
}
}
@media #{$large-and-up} {
.container {
width: 70%;
}
}
.col .row {
margin-left: (-1 * $gutter-width / 2);
margin-right: (-1 * $gutter-width / 2);
}
.section {
padding-top: 1rem;
padding-bottom: 1rem;
&.no-pad {
padding: 0;
}
&.no-pad-bot {
padding-bottom: 0;
}
&.no-pad-top {
padding-top: 0;
}
}
// Mixins to eliminate code repitition
@mixin reset-offset {
margin-left: auto;
left: auto;
right: auto;
}
@mixin grid-classes($size, $i, $perc) {
&.offset-#{$size}#{$i} {
margin-left: $perc;
}
&.pull-#{$size}#{$i} {
right: $perc;
}
&.push-#{$size}#{$i} {
left: $perc;
}
}
.row {
margin-left: auto;
margin-right: auto;
margin-bottom: 20px;
// Clear floating children
&:after {
content: "";
display: table;
clear: both;
}
.col {
float: left;
box-sizing: border-box;
padding: 0 $gutter-width / 2;
min-height: 1px;
&[class*="push-"],
&[class*="pull-"] {
position: relative;
}
$i: 1;
@while $i <= $num-cols {
$perc: unquote((100 / ($num-cols / $i)) + "%");
&.s#{$i} {
width: $perc;
@include reset-offset;
}
$i: $i + 1;
}
$i: 1;
@while $i <= $num-cols {
$perc: unquote((100 / ($num-cols / $i)) + "%");
@include grid-classes("s", $i, $perc);
$i: $i + 1;
}
@media #{$medium-and-up} {
$i: 1;
@while $i <= $num-cols {
$perc: unquote((100 / ($num-cols / $i)) + "%");
&.m#{$i} {
width: $perc;
@include reset-offset;
}
$i: $i + 1
}
$i: 1;
@while $i <= $num-cols {
$perc: unquote((100 / ($num-cols / $i)) + "%");
@include grid-classes("m", $i, $perc);
$i: $i + 1;
}
}
@media #{$large-and-up} {
$i: 1;
@while $i <= $num-cols {
$perc: unquote((100 / ($num-cols / $i)) + "%");
&.l#{$i} {
width: $perc;
@include reset-offset;
}
$i: $i + 1;
}
$i: 1;
@while $i <= $num-cols {
$perc: unquote((100 / ($num-cols / $i)) + "%");
@include grid-classes("l", $i, $perc);
$i: $i + 1;
}
}
@media #{$extra-large-and-up} {
$i: 1;
@while $i <= $num-cols {
$perc: unquote((100 / ($num-cols / $i)) + "%");
&.xl#{$i} {
width: $perc;
@include reset-offset;
}
$i: $i + 1;
}
$i: 1;
@while $i <= $num-cols {
$perc: unquote((100 / ($num-cols / $i)) + "%");
@include grid-classes("xl", $i, $perc);
$i: $i + 1;
}
}
}
}

11
src/components/input.scss Normal file
View File

@@ -0,0 +1,11 @@
.tui-input {
background-color: rgb(0, 0, 0);
color: white;
outline:0;
border: none;
padding: 1px;
}
.tui-input:focus {
background-color: rgb(255, 255, 0)!important;
color: black!important;
}

25
src/components/modal.scss Normal file
View File

@@ -0,0 +1,25 @@
.tui-modal {
position: absolute;
left: 0px;
right: 0px;
top: 100px;
z-index: 101;
display: none;
&.active {
display: block !important;
}
}
.tui-overlap {
position: absolute;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
z-index: 100;
display: none;
&.active {
display: block !important;
}
}
.tui-modal-button {}
.tui-modal-close-button {}

View File

@@ -0,0 +1,22 @@
@import '../mixins.scss';
.tui-nav {
width: 100%;
background-color: rgb(168, 168, 168);
padding: 0px 2px;
z-index: 9;
display: block;
position: fixed;
}
.tui-nav ul li {
display: inline-block;
margin-left: 10px;
padding: 1px 3px;
}
.tui-nav ul li a {
display: block;
@include disable-select;
}
.tui-nav ul li:hover {
background-color: rgb(0, 168, 0);
}

17
src/components/panel.scss Normal file
View File

@@ -0,0 +1,17 @@
.tui-panel {
background-color: rgb(0, 0, 168);
display: inline-block;
color: white;
box-shadow: 10px 10px black;
}
.tui-panel-content {
padding: 12px;
}
.tui-panel-header {
padding-top: 2px;
display: block;
background: white;
text-align: center;
}

View File

@@ -0,0 +1,37 @@
.tui-progress-bar {
display: block;
position: relative;
height: 20px;
width: 200px;
background-color: rgb(0, 168, 168);
overflow: hidden;
}
.tui-progress {
position: absolute;
left: 0px;
background-color: rgb(0, 255, 255);
height: 100%;
display: inline-block;
}
.tui-progress-bar .tui-indeterminate {
position: absolute;
left: 0px;
background-color: rgb(0, 255, 255);
height: 20px;
width: 20px;
display: inline-block;
animation: indeterminate 1s backwards;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
.tui-progress-label {
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
z-index: 1;
}
@keyframes indeterminate {
from {margin-left: -10%; }
to {margin-left: 100%}
}

33
src/components/radio.scss Normal file
View File

@@ -0,0 +1,33 @@
@import '../variables.scss';
@import '../mixins.scss';
.tui-radio {
display: block;
position: relative;
cursor: pointer;
color: white;
padding-left: 30px;
@include disable-select;
}
.tui-radio input {
position: absolute;
opacity: 0;
cursor: pointer;
top: 0px;
left: 0px;
}
.tui-radio span {
position: absolute;
width: 10px;
height: 10px;
cursor: pointer;
top: 0px;
left: 0px;
}
.tui-radio input:checked ~ span:after {
content: $radio-on;
color: rgb(0, 255, 255)!important;
}
.tui-radio input:not(checked) ~ span:after {
content: $radio-off;
}

View File

@@ -0,0 +1,25 @@
.tui-screen-640-480 {
width: 640px;
height: 480px;
}
.tui-screen-800-600 {
width: 800px;
height: 600px;
}
.tui-screen-1024-768 {
width: 1024px;
height: 768px;
}
.tui-screen-640-480,
.tui-screen-800-600,
.tui-screen-1024-768 {
position: relative;
&.bordered{
border: 2px solid black;
}
&.centered {
margin: auto;
margin-top: 20px;
}
}

View File

@@ -0,0 +1,105 @@
@import '../variables.scss';
@if $scroll-default-tui {
/* Default */
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background-image: $scroll-default-image;
background-repeat: repeat;
}
::-webkit-scrollbar-thumb {
background-color: $scroll-default-color;
}
::-webkit-scrollbar-thumb:hover {
background-color: $scroll-default-color;
}
}
/* Styles */
.tui-scroll-blue {
::-webkit-scrollbar-track {
background-image: url(images/scroll-blue.png);
}
::-webkit-scrollbar-thumb {
background-color: rgb(0, 0, 168);
}
::-webkit-scrollbar-thumb:hover {
background-color: rgb(0, 0, 168);
}
}
.tui-scroll-green {
::-webkit-scrollbar-track {
background-image: url(images/scroll-green.png);
}
::-webkit-scrollbar-thumb {
background-color: rgb(0, 168, 0);
}
::-webkit-scrollbar-thumb:hover {
background-color: rgb(0, 168, 0);
}
}
.tui-scroll-cyan {
::-webkit-scrollbar-track {
background-image: url(images/scroll-cyan.png);
}
::-webkit-scrollbar-thumb {
background-color: rgb(0, 168, 168);
}
::-webkit-scrollbar-thumb:hover {
background-color: rgb(0, 168, 168);
}
}
.tui-scroll-red {
::-webkit-scrollbar-track {
background-image: url(images/scroll-red.png);
}
::-webkit-scrollbar-thumb {
background-color: rgb(168, 0, 0);
}
::-webkit-scrollbar-thumb:hover {
background-color: rgb(168, 0, 0);
}
}
.tui-scroll-purple {
::-webkit-scrollbar-track {
background-image: url(images/scroll-purple.png);
}
::-webkit-scrollbar-thumb {
background-color: rgb(168, 0, 168);
}
::-webkit-scrollbar-thumb:hover {
background-color: rgb(168, 0, 168);
}
}
.tui-scroll-yellow {
::-webkit-scrollbar-track {
background-image: url(images/scroll-yellow.png);
}
::-webkit-scrollbar-thumb {
background-color: rgb(168, 168, 0);
}
::-webkit-scrollbar-thumb:hover {
background-color: rgb(168, 168, 0);
}
}
.tui-scroll-white {
::-webkit-scrollbar-track {
background-image: url(images/scroll-white.png);
}
::-webkit-scrollbar-thumb {
background-color: rgb(168, 168, 168);
}
::-webkit-scrollbar-thumb:hover {
background-color: rgb(168, 168, 168);
}
}

View File

@@ -0,0 +1,43 @@
.tui-shadow, .tui-shadow-1 {
box-shadow: 10px 10px black!important;
}
.tui-shadow-2 {
box-shadow: 15px 15px black;
}
.tui-shadow-3 {
box-shadow: 20px 20px black;
}
.tui-shadow-4 {
box-shadow: 25px 25px black;
}
.tui-shadow-5 {
box-shadow: 30px 30px black;
}
.tui-shadow-left, .tui-shadow-left-1 {
box-shadow: -10px 10px black!important;
}
.tui-shadow-left-2 {
box-shadow: -15px 15px black!important;
}
.tui-shadow-left-3 {
box-shadow: -20px 20px black!important;
}
.tui-shadow-left-4 {
box-shadow: -25px 25px black!important;
}
.tui-shadow-left-5 {
box-shadow: -30px 30px black!important;
}
.tui-no-shadow {
box-shadow: none!important;
}

View File

@@ -0,0 +1,3 @@
.tui-shortcut {
float: right;
}

View File

@@ -0,0 +1,41 @@
@import '../mixins.scss';
.tui-sidenav {
position: fixed;
top: 0px;
left: 0px;
background-color: rgb(0, 168, 168);
min-width: 200px;
box-shadow: 10px 10px black!important;
padding: 6px;
z-index: 10;
height: 100%;
z-index: 8;
display: none;
&.right {
left: initial;
right: 0px;
}
&.active {
display: block !important;
}
}
.tui-sidenav ul {
margin-top: 20px;
border: 2px black solid;
}
.tui-sidenav ul li {
display: block;
margin: 6px;
}
.tui-sidenav ul li a {
display: block;
@include disable-select;
}
.tui-sidenav ul li:hover {
background-color: rgb(255, 255, 0);
}
.tui-sidenav-button {
cursor: pointer;
@include disable-select;
}

View File

@@ -0,0 +1,28 @@
@import '../mixins.scss';
.tui-statusbar {
width: 100%;
background-color: rgb(168, 168, 168);
padding: 0px 1px;
left: 0px;
bottom: 0px;
z-index: 9;
position: fixed;
}
.tui-statusbar ul li {
display: inline-block;
margin-left: 10px;
padding: 2px 3px;
}
.tui-statusbar ul li:active {
background-color: rgb(0, 0, 168);
color: white;
}
.tui-statusbar ul li a {
@include disable-select;
}
.tui-statusbar-divider {
border-right: 2px black solid;
display: inline;
margin: 0px 3px;
}

101
src/components/table.scss Normal file
View File

@@ -0,0 +1,101 @@
.tui-table {
border: 2px solid rgb(168, 168, 168);
padding: 5px;
border-collapse: collapse;
&.hovered-blue tbody tr:hover {
background-color: rgb(0, 0, 255) !important;
color: black;
}
&.hovered-green tbody tr:hover {
background-color: rgb(0, 255, 0) !important;
color: black;
}
&.hovered-cyan tbody tr:hover {
background-color: rgb(0, 255, 255) !important;
color: black;
}
&.hovered-red tbody tr:hover {
background-color: rgb(255, 0, 0) !important;
color: white;
}
&.hovered-purple tbody tr:hover {
background-color: rgb(255, 0, 255) !important;
color: white;
}
&.hovered-yellow tbody tr:hover {
background-color: rgb(255, 255, 0) !important;
color: black;
}
&.hovered-white tbody tr:hover {
background-color: rgb(255, 255, 255) !important;
color: black;
}
&.hovered-orange tbody tr:hover {
background-color: rgb(255, 168, 0) !important;
color: black;
}
&.hovered tbody tr:hover {
background-color: rgb(0, 255, 255) !important;
color: black;
}
&.striped-blue tbody tr:nth-child(even) {
background-color: rgb(0, 0, 168);
}
&.striped-green tbody tr:nth-child(even) {
background-color: rgb(0, 168, 0);
}
&.striped-cyan tbody tr:nth-child(even) {
background-color: rgb(0, 168, 168);
}
&.striped-red tbody tr:nth-child(even) {
background-color: rgb(168, 0, 0);
}
&.striped-purple tbody tr:nth-child(even) {
background-color: rgb(168, 0, 168);
}
&.striped-yellow tbody tr:nth-child(even) {
background-color: rgb(168, 168, 0);
}
&.striped-white tbody tr:nth-child(even) {
background-color: rgb(168, 168, 168);
color: black;
}
&.striped-orange tbody tr:nth-child(even) {
background-color: rgb(168, 86, 0);
}
}
.tui-table tbody {
background-color: inherit;
color: white;
}
.tui-table tbody tr td {
border-right: 2px solid rgb(168, 168, 168);
padding: 0px 2px;
}
.tui-table thead {
background-color: inherit;
color: rgb(255, 255, 0);
text-align: center;
}
.tui-table tfoot {
background-color: inherit;
color: rgb(255, 255, 0);
text-align: center;
}

View File

@@ -0,0 +1,13 @@
.tui-table-grid {
border-collapse: collapse;
width: 100%;
}
.tui-table-grid thead tr td,
.tui-table-grid tbody tr td,
.tui-table-grid thead tr th,
.tui-table-grid tbody tr th {
border: 2px solid black;
padding: 10px;
vertical-align: top;
}

26
src/components/tabs.scss Normal file
View File

@@ -0,0 +1,26 @@
@import '../mixins.scss';
.tui-tabs {
background-color: rgb(0, 0, 168);
width: 100%;
padding: 0px 10px 0px 10px;
}
.tui-tabs ul li {
display: inline-block;
}
.tui-tabs ul li a {
display: block;
@include disable-select;
}
.tui-tab {
padding: 2px 10px 0px 10px;
color: rgb(168, 168, 168);
cursor: pointer;
&.active {
background-color: rgb(168, 168, 168);
color: rgb(0, 0, 168);
}
}
.tui-tab-content {
display: none;
}

View File

@@ -0,0 +1,7 @@
.tui-textarea {
background-color: inherit;
border: none;
padding: 0px;
color: rgb(255, 255, 0);
outline: none;
}

View File

@@ -0,0 +1,8 @@
.tui-window {
background-color: rgb(0, 0, 168);
padding: 1px;
display: inline-block;
position: relative;
box-shadow: 10px 10px black;
color: white;
}

Binary file not shown.

Binary file not shown.

72
src/fonts/dos437.txt Normal file
View File

@@ -0,0 +1,72 @@
/
/(_____________ ____
\ /______)\ | |
:\ | / \:| |:::::::::: : .. . : .. . . :. .
\_____| / | \| |______
___ / ________ \... . . .
\______________ \ | | /.. . . . . .
\ |__| /
--x--x-----x----\______ |-/_____/-x--x-xx--x-- - -x -- - - -- - - -
. . . . . . . . . . . .\____|. . . . . .
-------------------------------------------------------------------------------
>> perfect dos vga 437 - general information >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-------------------------------------------------------------------------------
"Perfect DOS VGA 437" and "Perfect DOS VGA 437 Win" are truetype fonts
designed to emulate the MS-DOS/Text mode standard font, used on VGA monitors,
with the 437 Codepage (standard US/International). This is a "bitmap" font,
meaning it emulates a bitmap font and can only be used at a given size (8 or
multiples of it like 16, 24, 32, etc). It's optimized for Flash too, so it
won't produce antialias if used at round positions.
There are two fonts available. "Perfect DOS VGA 437" uses the original DOS
codepage 437. It should be used, for example, if you're opening DOS ASCII
files on notepad or another windows-based editor. Since it's faithful to the
original DOS codes, it won't accent correctly in windows ("<22>" would produce
something different, not an "e" with an acute).
There's also "Perfect DOS VGA 437 Win" which is the exactly same font adapted
to a windows codepage. This should use accented characters correctly but won't
work if you're opening a DOS-based text file.
UPDATE: this is a new version, updated in august/2008. It has fixed leading
metrics for Mac systems.
-------------------------------------------------------------------------------
>> perfect dos vga 437 - creation process >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-------------------------------------------------------------------------------
This font was created to be used on a Flash-based ANSi viewer I'm working. To
create it, I created a small Quick Basic program to write all characters on
screen,
CLS
FOR l = 0 TO 255
charWrite 1 + (l MOD 20), 1 + (l \ 20) * 6 + (l MOD 2), LTRIM$(RTRIM$(STR$(l))) + CHR$(l)
NEXT
SUB charWrite (lin, col, char$)
DEF SEG = &HB800
FOR i = 1 TO LEN(char$)
POKE ((lin - 1) * 160) + ((col - 2 + i) * 2), ASC(MID$(char$, i, 1))
IF (i = LEN(char$)) THEN POKE ((lin - 1) * 160) + ((col - 2 + i) * 2) + 1, 113
NEXT
END SUB
Then captured the text screen using SCREEN THIEF (a very, very old screen
capture TSR program which converts text screens to images accurately). I then
recreated the font polygon by polygon on Fontlab, while looking at the image
on Photoshop. No conversion took place.
-------------------------------------------------------------------------------
>> author >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-------------------------------------------------------------------------------
zeh fernando remembers the old days. SMASH DAH FUCKING ENTAH.
http://www.fatorcaos.com.br
rorshack ^ maiden brazil
-------------------------------------------------------------------------------
^zehPULLSdahTRICK^kudosOUTtoWHOkeepsITreal^smashDAHfuckingENTAH!!!^lowres4ever^
-------------------------------------------------------------------------------

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B

BIN
src/images/bg-red-black.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B

BIN
src/images/bg-red-white.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B

BIN
src/images/scroll-blue.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B

BIN
src/images/scroll-cyan.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

BIN
src/images/scroll-green.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

BIN
src/images/scroll-red.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B

BIN
src/images/scroll-white.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

Some files were not shown because too many files have changed in this diff Show More