diff options
| -rw-r--r-- | dist/css/win98.css | 268 | ||||
| -rw-r--r-- | dist/css/win98.min.css | 1 | ||||
| -rw-r--r-- | dist/js/win98.js | 74 | ||||
| -rw-r--r-- | dist/js/win98.min.js | 1 | ||||
| -rw-r--r-- | docs/index.html | 270 | ||||
| -rw-r--r-- | index.html | 19 | ||||
| -rw-r--r-- | src/image.jpg | bin | 0 -> 44910 bytes | |||
| -rw-r--r-- | src/webstyle.css | 83 |
8 files changed, 716 insertions, 0 deletions
diff --git a/dist/css/win98.css b/dist/css/win98.css new file mode 100644 index 0000000..7e010df --- /dev/null +++ b/dist/css/win98.css @@ -0,0 +1,268 @@ +body { + padding: 50px; + margin: 0px; + font-family: "MS Sans Serif", "Segoe UI", sans-serif; +} + +/* Alertbox */ + +.alertbox { + width: 600px; + padding-left: 1px; + padding-top: 1px; + border-left: solid 1px #C0C0C0; + border-top: solid 1px #C0C0C0; + border-bottom: solid 3px #555555; + border-right: solid 3px #555555; +} +.alertbox-header { + background-color: #092080; + color: white; + font-size: 14px; + padding: 5px; + font-weight: bolder; +} +.alertbox-body { + background-color: #C0C0C0; + padding: 50px 20px; + font-size: 14px; +} + +/* Buttons */ + +.btn { + background-color: #C0C0C0; + padding: 5px 5px; + font-size: 14px; + border-left: solid 1px black; + border-top: solid 1px black; + border-right: solid 3px black; + border-bottom: solid 3px black; + color: black; + border-radius: 2px; +} +.btn-alertbox { + display: block; + margin: 20px auto 0px auto; +} +.btn-alertbox span { + border: 1px dotted black; + padding: 2px 25px; +} +.btn-alertbox:focus { + outline: none; + color: black; + background-color: #979797; +} +.btn-alertbox:active { + outline: none; + color: black; + background-color: #b4b4b4; +} +.btn span { + border: 1px dotted black; + padding: 2px 25px; +} +.btn-primary:active { + background-color: #b4b4b4; +} +.btn-secondary { + background-color: #167AF6; + color: white; +} +.btn-secondary:active { + background-color: #0F69D9; + color: white; +} +.btn-danger { + background-color: #DC3545; + color: white; +} +.btn-danger:active { + background-color: #b82c3a; + color: white; +} +.btn-success { + background-color: #4CA846; + color: white; +} +.btn-success:active { + background-color: #327a2d; + color: white; +} +.btn-warning { + background-color: #F8C246; + color: black; +} +.btn-warning:active { + background-color: rgb(190, 150, 55); + color: white; +} +.btn-info { + background-color: #42A3B8; + color: white; +} +.btn-info:active { + background-color: rgb(54, 138, 156); + color: white; +} +.btn-outline { + background-color: transparent; +} +.btn-outline:hover { + background-color: #C0C0C0; +} + +/* Card */ + +.card { + width: 300px; + padding-left: 1px; + padding-top: 1px; + border-left: solid 1px #C0C0C0; + border-top: solid 1px #C0C0C0; + border-bottom: solid 3px #555555; + border-right: solid 3px #555555; +} +.card-image { + width: 100%; + height: 200px; + margin-bottom: -4px; +} +.card-body { + /* margin-top: -26px; */ + padding: 20px 20px 20px 20px; + background-color: #c0c0c0; +} +.card-title { + font-size: 22px; + line-height: 18px; + margin-top: 10px; +} +.card-text { + font-size: 14px; + margin-top: -15px; + margin-bottom: 15px; +} +.card-subtitle { + font-size: 18px; + font-weight: 700; + margin-top: -10px; +} +.card-header { + font-size: 18px; + color: white; + background-color: #092080; + padding: 10px 5px; + font-weight: bold; +} + + +/* List group */ + +.list-group { + list-style-type: none; + margin: 0; + padding: 0; + background-color: #C0C0C0; +} +.list-group-item { + padding: 10px 5px; + border-bottom: solid 1px black; +} + + +/* Blockquote */ + +.blockquote-footer { + color: #464646 +} + + +/* Forms */ + +.form-control { + font-size: 14px; + padding: 5px 10px; + width: 600px; + outline: none; + border-left: solid 1px #C0C0C0; + border-top: solid 1px #C0C0C0; + border-bottom: solid 3px #555555; + border-right: solid 3px #555555; +} + + +.form-select { + position: relative; + font-family: Arial; + width: 620px; + padding-left: 1px; + padding-top: 1px; + border-left: solid 1px #C0C0C0; + border-top: solid 1px #C0C0C0; + border-bottom: solid 3px #555555; + border-right: solid 3px #555555; + } + + .form-select select { + display: none; /*hide original SELECT element: */ + } + + .select-selected { + background-color: #082081; + } + + /* Style the arrow inside the select element: */ + .select-selected:after { + position: absolute; + content: ""; + top: 14px; + right: 10px; + width: 0; + height: 0; + border: 6px dotted transparent; + border-color: #fff transparent transparent transparent; + } + + /* Point the arrow upwards when the select box is open (active): */ + .select-selected.select-arrow-active:after { + border-color: transparent transparent #fff transparent; + top: 7px; + } + + /* style the items (options), including the selected item: */ + .select-items div { + color: #000000; + padding: 8px 16px; + border: 1px dotted transparent; + border-color: white; + cursor: pointer; + } + + .select-selected { + color: #fff; + padding: 8px 16px; + cursor: pointer; + } + + /* Style items (options): */ + .select-items { + position: absolute; + background-color: white; + top: 100%; + left: 0; + right: 0; + z-index: 99; + color: black; + } + + /* Hide the items when the select box is closed: */ + .select-hide { + display: none; + } + + .select-items div:hover, .same-as-selected { + background-color: #082081; + color: white; + }
\ No newline at end of file diff --git a/dist/css/win98.min.css b/dist/css/win98.min.css new file mode 100644 index 0000000..2e7d338 --- /dev/null +++ b/dist/css/win98.min.css @@ -0,0 +1 @@ +.btn-alertbox:active,.btn-alertbox:focus{outline:0;color:#000}body{padding:50px;margin:0;font-family:"MS Sans Serif","Segoe UI",sans-serif}.alertbox{width:600px;padding-left:1px;padding-top:1px;border-left:solid 1px silver;border-top:solid 1px silver;border-bottom:solid 3px #555;border-right:solid 3px #555}.alertbox-header{background-color:#092080;color:#fff;font-size:14px;padding:5px;font-weight:bolder}.alertbox-body,.btn{background-color:silver;font-size:14px}.alertbox-body{padding:50px 20px}.btn{padding:5px;border-left:solid 1px #000;border-top:solid 1px #000;border-right:solid 3px #000;border-bottom:solid 3px #000;color:#000;border-radius:2px}.btn span,.btn-alertbox span{border:1px dotted #000;padding:2px 25px}.btn-alertbox{display:block;margin:20px auto 0}.form-select select,.select-hide{display:none}.btn-alertbox:focus{background-color:#979797}.btn-alertbox:active,.btn-primary:active{background-color:#b4b4b4}.btn-secondary{background-color:#167AF6;color:#fff}.btn-secondary:active{background-color:#0F69D9;color:#fff}.btn-danger{background-color:#DC3545;color:#fff}.btn-danger:active{background-color:#b82c3a;color:#fff}.btn-success{background-color:#4CA846;color:#fff}.btn-success:active{background-color:#327a2d;color:#fff}.btn-warning{background-color:#F8C246;color:#000}.btn-warning:active{background-color:#be9637;color:#fff}.btn-info{background-color:#42A3B8;color:#fff}.btn-info:active{background-color:#368a9c;color:#fff}.btn-outline{background-color:transparent}.btn-outline:hover,.card-body{background-color:silver}.card{width:300px;padding-left:1px;padding-top:1px;border-left:solid 1px silver;border-top:solid 1px silver;border-bottom:solid 3px #555;border-right:solid 3px #555}.card-image{width:100%;height:200px;margin-bottom:-4px}.card-body{padding:20px}.card-title{font-size:22px;line-height:18px;margin-top:10px}.card-text{font-size:14px;margin-top:-15px;margin-bottom:15px}.card-header,.card-subtitle{font-size:18px;font-weight:700}.card-subtitle{margin-top:-10px}.card-header{color:#fff;background-color:#092080;padding:10px 5px}.list-group{list-style-type:none;margin:0;padding:0;background-color:silver}.list-group-item{padding:10px 5px;border-bottom:solid 1px #000}.form-control,.form-select{border-left:solid 1px silver;border-top:solid 1px silver;border-bottom:solid 3px #555;border-right:solid 3px #555}.blockquote-footer{color:#464646}.form-control{font-size:14px;padding:5px 10px;width:600px;outline:0}.form-select{position:relative;font-family:Arial;width:620px;padding-left:1px;padding-top:1px}.select-selected:after{position:absolute;content:"";top:14px;right:10px;width:0;height:0;border:6px dotted transparent;border-color:#fff transparent transparent}.select-selected.select-arrow-active:after{border-color:transparent transparent #fff;top:7px}.select-items div{color:#000;padding:8px 16px;border:1px dotted #fff;cursor:pointer}.select-selected{background-color:#082081;color:#fff;padding:8px 16px;cursor:pointer}.select-items{position:absolute;background-color:#fff;top:100%;left:0;right:0;z-index:99;color:#000}.same-as-selected,.select-items div:hover{background-color:#082081;color:#fff}
\ No newline at end of file diff --git a/dist/js/win98.js b/dist/js/win98.js new file mode 100644 index 0000000..5664804 --- /dev/null +++ b/dist/js/win98.js @@ -0,0 +1,74 @@ +var x, i, j, selElmnt, a, b, c; +/* Look for any elements with the class "form-select": */ +x = document.getElementsByClassName("form-select"); +for (i = 0; i < x.length; i++) { + selElmnt = x[i].getElementsByTagName("select")[0]; + /* For each element, create a new DIV that will act as the selected item: */ + a = document.createElement("DIV"); + a.setAttribute("class", "select-selected"); + a.innerHTML = selElmnt.options[selElmnt.selectedIndex].innerHTML; + x[i].appendChild(a); + /* For each element, create a new DIV that will contain the option list: */ + b = document.createElement("DIV"); + b.setAttribute("class", "select-items select-hide"); + for (j = 1; j < selElmnt.length; j++) { + /* For each option in the original select element, + create a new DIV that will act as an option item: */ + c = document.createElement("DIV"); + c.innerHTML = selElmnt.options[j].innerHTML; + c.addEventListener("click", function(e) { + /* When an item is clicked, update the original select box, + and the selected item: */ + var y, i, k, s, h; + s = this.parentNode.parentNode.getElementsByTagName("select")[0]; + h = this.parentNode.previousSibling; + for (i = 0; i < s.length; i++) { + if (s.options[i].innerHTML == this.innerHTML) { + s.selectedIndex = i; + h.innerHTML = this.innerHTML; + y = this.parentNode.getElementsByClassName("same-as-selected"); + for (k = 0; k < y.length; k++) { + y[k].removeAttribute("class"); + } + this.setAttribute("class", "same-as-selected"); + break; + } + } + h.click(); + }); + b.appendChild(c); + } + x[i].appendChild(b); + a.addEventListener("click", function(e) { + /* When the select box is clicked, close any other select boxes, + and open/close the current select box: */ + e.stopPropagation(); + closeAllSelect(this); + this.nextSibling.classList.toggle("select-hide"); + this.classList.toggle("select-arrow-active"); + }); +} + +function closeAllSelect(elmnt) { + /* A function that will close all select boxes in the document, + except the current select box: */ + var x, y, i, arrNo = []; + x = document.getElementsByClassName("select-items"); + y = document.getElementsByClassName("select-selected"); + for (i = 0; i < y.length; i++) { + if (elmnt == y[i]) { + arrNo.push(i) + } else { + y[i].classList.remove("select-arrow-active"); + } + } + for (i = 0; i < x.length; i++) { + if (arrNo.indexOf(i)) { + x[i].classList.add("select-hide"); + } + } +} + +/* If the user clicks anywhere outside the select box, +then close all select boxes: */ +document.addEventListener("click", closeAllSelect);
\ No newline at end of file diff --git a/dist/js/win98.min.js b/dist/js/win98.min.js new file mode 100644 index 0000000..1d11d8d --- /dev/null +++ b/dist/js/win98.min.js @@ -0,0 +1 @@ +var x,i,j,selElmnt,a,b,c;for(x=document.getElementsByClassName("form-select"),i=0;i<x.length;i++){for(selElmnt=x[i].getElementsByTagName("select")[0],(a=document.createElement("DIV")).setAttribute("class","select-selected"),a.innerHTML=selElmnt.options[selElmnt.selectedIndex].innerHTML,x[i].appendChild(a),(b=document.createElement("DIV")).setAttribute("class","select-items select-hide"),j=1;j<selElmnt.length;j++)(c=document.createElement("DIV")).innerHTML=selElmnt.options[j].innerHTML,c.addEventListener("click",function(e){var t,s,l,n,i;for(n=this.parentNode.parentNode.getElementsByTagName("select")[0],i=this.parentNode.previousSibling,s=0;s<n.length;s++)if(n.options[s].innerHTML==this.innerHTML){for(n.selectedIndex=s,i.innerHTML=this.innerHTML,t=this.parentNode.getElementsByClassName("same-as-selected"),l=0;l<t.length;l++)t[l].removeAttribute("class");this.setAttribute("class","same-as-selected");break}i.click()}),b.appendChild(c);x[i].appendChild(b),a.addEventListener("click",function(e){e.stopPropagation(),closeAllSelect(this),this.nextSibling.classList.toggle("select-hide"),this.classList.toggle("select-arrow-active")})}function closeAllSelect(e){var t,s,l,n=[];for(t=document.getElementsByClassName("select-items"),s=document.getElementsByClassName("select-selected"),l=0;l<s.length;l++)e==s[l]?n.push(l):s[l].classList.remove("select-arrow-active");for(l=0;l<t.length;l++)n.indexOf(l)&&t[l].classList.add("select-hide")}document.addEventListener("click",closeAllSelect);
\ No newline at end of file diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..7ff33da --- /dev/null +++ b/docs/index.html @@ -0,0 +1,270 @@ +<!DOCTYPE html> +<html lang="en"> +<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>Win 98 CSS</title> + <link rel="stylesheet" href="../dist/css/win98.min.css"> + <link rel="stylesheet" href="../src/webstyle.css"> + <link href="https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900" rel="stylesheet"> +</head> +<body> + <div class="padded"> + <a href="../" class="wba"><< Go Back Home</a> + <h1 class="wbh1">Documentation</h1> + <p class="wbp">Please note that Win 98 CSS is still in development and only a few features are available. If you're still ready to use it,this guide explains how do you use it. It must be noted that the developer is not responsible for any unexpected behaviours due to other CSS frameworks. It is best advised to use Win 98 CSS Standalone. If you want to file a bug or add a feature <a href="https://github.com/luciferreeves/win98css/issues/new">open an issue.</a></p> + </div> + <div class="documentation"> + <div class="doc-sidebar"> + <ol> + <li><a href="#hts">How to start</a></li> + <li><a href="#st">Starter template</a></li> + <li><a href="#alerts">Alerts</a></li> + <li><a href="#buttons">Buttons</a></li> + <li><a href="#card">Card</a></li> + <li><a href="#forms">Forms</a></li> + <li><a href="#lg">List Groups</a></li> + <li><a href="#quote">Quotes</a></li> + </ol> + </div> + <div class="doc-content"> + <h1 id="hts" class="dch1">How to start?</h1> + <p class="dcp">To get started download the Win 98 CSS. You can download Win 98 CSS <a href="../dist/css/win98.css">uncompressed</a> or <a href="../dist/css/win98.min.css">compressed</a>. Include that in your HTML file. Next, Download the Win 98 JS, <a href="../dist/js/win98.js">uncompressed</a> or <a href="../dist/js/win98.min.js">compressed</a> and also include it in you HTML file and you're ready to go. </p> + <h1 id="st" class="dch1">Starter template</h1> + <p class="dcp-code"> + + + <!doctype html><br> + <html lang="en"><br> +  <head><br> +   <!-- Required meta tags --><br> +   <meta charset="utf-8"><br> +   <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><br> + +   <!-- Win 98 CSS --><br> +   <link rel="stylesheet" href="win98.min.css"><br> + +   <title>Hello, world!</title><br> +  </head><br> +  <body><br> +   <h1>Hello, world!</h1><br> + +   <!-- Win 98 JavaScript --><br> +   <script src="win98.min.js"></script><br> +  </body><br> + </html><br> + + </p> + <h1 id="alerts" class="dch1">Alerts</h1> + <p class="dcp">Alerts are available for any length of text, as well as an optional dismiss button. These resemble similar to the 98 Window Alerts</p> + <div class="alertbox"> + <div class="alertbox-header"> + This is an alert + </div> + <div class="alertbox-body"> + This is the alert body with a SUPER BAD LOOKING ERROR CODE. Please fix this error before pursuing to the webpage. + <button class="btn btn-alertbox"><span>Okay</span></button> + </div> + </div> + + <p class="dcp-code"> + <div class="alertbox"><br> +  <div class="alertbox-header"><br> +   This is an alert<br> +  </div><br> +  <div class="alertbox-body"><br> +   This is the alert body with a SUPER BAD LOOKING ERROR CODE. Please fix this error before pursuing to the webpage.<br> +   <button class="btn btn-alertbox"><span>Okay</span></button><br> +  </div><br> + </div><br> + </p> + + <h1 id="buttons" class="dch1">Buttons</h1> + <p class="dcp">Win 98 CSS includes several predefined button styles, each serving its own semantic purpose, with a few extras thrown in for more control.</p> + <div class="buttons"> + <button class="btn btn-primary"><span>Primary</span></button> + <button class="btn btn-secondary"><span>Secondary</span></button> + <button class="btn btn-danger"><span>Danger</span></button> + <button class="btn btn-success"><span>Success</span></button> + <button class="btn btn-warning"><span>Warning</span></button> + <button class="btn btn-info"><span>Info</span></button> + <button class="btn btn-outline"><span>Outline Button</span></button> + </div> + + <p class="dcp-code"> + + <button class="btn btn-primary"><span>Primary</span></button><br> + <button class="btn btn-secondary"><span>Secondary</span></button><br> + <button class="btn btn-danger"><span>Danger</span></button><br> + <button class="btn btn-success"><span>Success</span></button><br> + <button class="btn btn-warning"><span>Warning</span></button><br> + <button class="btn btn-info"><span>Info</span></button><br> + <button class="btn btn-outline"><span>Outline Button</span></button><br> + + </p> + + <h1 id="#card" class="dch1">Card</h1> + <p class="dcp">A card is a flexible and extensible content container. It includes options for headings and titles, a wide variety of content, contextual background colors, and powerful display options.</p> + <div class="card"> + <img src="https://boygeniusreport.files.wordpress.com/2017/02/windows98.jpg?quality=98&strip=all&w=782" class="card-image" alt="..."> + <div class="card-body"> + <h5 class="card-title">Card Title</h5> + <p class="card-text">Lorem ipsum dolor sit amet consectetur adipisicing elit. Error odio delectus magnam. Neque odit voluptas tempore beatae iste assumenda ipsum odio! Quisquam dolorem laudantium deserunt sapiente quam nostrum, perspiciatis dignissimos!</p> + <button class="btn btn-primary"><span>Go Somewhere</span></button> + </div> + </div> + + <p class="dcp-code"> + + <div class="card"><br> +   <img src="..." class="card-image" alt="..."><br> +   <div class="card-body"><br> +     <h5 class="card-title">Card Title</h5><br> +     <p class="card-text">Lorem ipsum dolor sit amet consectetur adipisicing elit. Error odio delectus magnam. Neque odit voluptas tempore beatae iste assumenda ipsum odio! Quisquam dolorem laudantium deserunt sapiente quam nostrum, perspiciatis dignissimos!</p><br> +     <button class="btn btn-primary"><span>Go Somewhere</span></button><br> +   </div><br> + </div><br> + + </p> + + <p class="dcp">Card body can also be added alone.</p> + + <div class="card"> + <div class="card-body"> + This is some text within a card body. + </div> + </div> + + <p class="dcp-code"> + + <div class="card"><br> +   <div class="card-body"><br> +     This is some text within a card body.<br> +   </div><br> + </div><br> + + </p> + + <p class="dcp">Card can also contain subtitles, links and no images.</p> + + <div class="card"> + <div class="card-body"> + <h5 class="card-title">Card title</h5> + <h6 class="card-subtitle">Card subtitle</h6> + <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p> + <a href="#" class="card-link">Card link</a> + <a href="#" class="card-link">Another link</a> + </div> + </div> + + <p class="dcp-code"> + + <div class="card"><br> +   <div class="card-body"><br> +     <h5 class="card-title">Card title</h5><br> +     <h6 class="card-subtitle">Card subtitle</h6><br> +     <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p><br> +     <a href="#" class="card-link">Card link</a><br> +     <a href="#" class="card-link">Another link</a><br> +   </div><br> + </div><br> + + </p> + + <h1 id="forms" class="dch1">Forms</h1> + <p class="dcp">Forms are used to get data on your site.</p> + + <input type="email" class="form-control" placeholder="[email protected]"> + <input type="password" class="form-control" placeholder="Password"> + + <div class="form-select"> + <select> + <option>Select A Number:</option> + <option>One</option> + <option>Two</option> + <option>Three</option> + <option>Four</option> + </select> + </div> + + <textarea class="form-control" rows="3"></textarea> + + <p class="dcp-code"> + + <input type="email" class="form-control" placeholder="[email protected]"><br> + <input type="password" class="form-control" placeholder="Password"><br> + + <div class="form-select"><br> +   <select><br> +     <option>Select A Number:</option><br> +     <option>One</option><br> +     <option>Two</option><br> +     <option>Three</option><br> +     <option>Four</option><br> +   </select><br> + </div><br> + + <textarea class="form-control" rows="3"></textarea><br> + + </p> + + <h1 id="lg" class="dch1">List Groups</h1> + <!-- <p class="dcp"></p> --> + <div class="card"> + <div class="card-header"> + Featured + </div> + <ul class="list-group"> + <li class="list-group-item">Cras justo odio</li> + <li class="list-group-item">Dapibus ac facilisis in</li> + <li class="list-group-item">Vestibulum at eros</li> + </ul> + </div> + <p class="dcp-code"> + + <div class="card"><br> +   <div class="card-header"><br> +     Featured<br> +   </div><br> +   <ul class="list-group"><br> +     <li class="list-group-item">Cras justo odio</li><br> +     <li class="list-group-item">Dapibus ac facilisis in</li><br> +     <li class="list-group-item">Vestibulum at eros</li><br> +   </ul><br> + </div><br> + </p> + <h1 id="quotes" class="dch1">Quotes</h1> + <!-- <p class="dcp"></p> --> + <div class="card"> + <div class="card-header"> + Quote + </div> + <div class="card-body"> + <blockquote class="blockquote"> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> + <footer class="blockquote-footer">— Someone famous in <cite title="Source Title">Source Title</cite></footer> + </blockquote> + </div> + </div> + + <p class="dcp-code"> + + <div class="card"><br> +   <div class="card-header"><br> +     Quote<br> +   </div><br> +   <div class="card-body"><br> +     <blockquote class="blockquote "><br> +       <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p><br> +       <footer class="blockquote-footer">— Someone famous in <cite title="Source Title">Source Title</cite><footer><br> +     </blockquote><br> +   </div><br> + </div><br> + + </p> + </div> + </div> + <script src="../dist/js/win98.min.js"></script> +</body> +</html>
\ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..d4643fd --- /dev/null +++ b/index.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html lang="en"> +<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>Win 98 CSS</title> + <link rel="stylesheet" href="dist/css/win98.min.css"> + <link rel="stylesheet" href="src/webstyle.css"> + <link href="https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900" rel="stylesheet"> +</head> +<body> + <img src="src/image.jpg" class="wimg"> + <h1 class="wbh1">Win 98 CSS</h1> + <p class="wbp">Bringing back your childhood memories in CSS.</p> + <p class="wbp"><a href="docs" class="wba">View the docs</a> or <a href="https://github.com/luciferreeves/win98css" class="wba">View on Github</a></p> + <script src="dist/js/win98.min.js"></script> +</body> +</html>
\ No newline at end of file diff --git a/src/image.jpg b/src/image.jpg Binary files differnew file mode 100644 index 0000000..2554b0b --- /dev/null +++ b/src/image.jpg diff --git a/src/webstyle.css b/src/webstyle.css new file mode 100644 index 0000000..c0ecefb --- /dev/null +++ b/src/webstyle.css @@ -0,0 +1,83 @@ +body { + padding: 0px; + margin: 0px; +} +.wbh1 { + text-align: center; + font-size: 5em; + font-weight: 100; + background: -webkit-linear-gradient(#000066, #cc0099); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + font-family: 'Lato' +} +.wbp { + text-align: center; + font-size: 1.2em; + font-weight: 300; + font-family: 'Lato'; +} +.wba { + text-align: center; + font-size: 1em; + font-weight: 300; + font-family: 'Lato'; + color: #2c2cad; +} +.wimg { + text-align: center; + display: block; + margin-left: auto; + margin-right: auto; + width: 200px; + margin-top: 150px; +} +.padded { + padding: 20px; +} +.documentation { + width: 75%; + margin: 0 auto; + border: solid 1px black; + display: grid; + grid-template-columns: 25% auto; + height: 50vh; +} +.doc-sidebar { + border-right: solid 1px black; +} +.doc-sidebar ol li a { + font-family: 'Lato'; + font-size: 16px; + font-weight: 300; + color: black; + overflow: scroll; +} +.doc-sidebar ol { + font-family: 'Lato'; + font-size: 16px; + font-weight: 300; + color: black; +} +.doc-content { + padding-left: 20px; + overflow: scroll; +} +.dch1 { + font-family: 'Lato'; + font-size: 32px; + font-weight: 300; +} +.dcp { + font-family: 'Lato'; + font-size: 16px; + font-weight: 300; +} +.dcp-code { + font-family: monospace; + font-size: 16px; + font-weight: 300; + background-color: rgb(216, 216, 216); + padding: 10px 20px; + width: calc(100% - 60px); +}
\ No newline at end of file |
