From d8ebd83f689b3a40d2a7b04b7d3fe0297e8dd635 Mon Sep 17 00:00:00 2001 From: Kumar Priyansh <30593201+luciferreeves@users.noreply.github.com> Date: Thu, 3 Jan 2019 06:06:55 +0530 Subject: Add files via upload --- dist/css/win98.css | 268 ++++++++++++++++++++++++++++++++++++++++++++++++ dist/css/win98.min.css | 1 + dist/js/win98.js | 74 ++++++++++++++ dist/js/win98.min.js | 1 + docs/index.html | 270 +++++++++++++++++++++++++++++++++++++++++++++++++ index.html | 19 ++++ src/image.jpg | Bin 0 -> 44910 bytes src/webstyle.css | 83 +++++++++++++++ 8 files changed, 716 insertions(+) create mode 100644 dist/css/win98.css create mode 100644 dist/css/win98.min.css create mode 100644 dist/js/win98.js create mode 100644 dist/js/win98.min.js create mode 100644 docs/index.html create mode 100644 index.html create mode 100644 src/image.jpg create mode 100644 src/webstyle.css 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 + + + + + + Win 98 CSS + + + + + +
+ << Go Back Home +

Documentation

+

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 open an issue.

+
+
+ +
+

How to start?

+

To get started download the Win 98 CSS. You can download Win 98 CSS uncompressed or compressed. Include that in your HTML file. Next, Download the Win 98 JS, uncompressed or compressed and also include it in you HTML file and you're ready to go.

+

Starter template

+

+ + + <!doctype html>
+ <html lang="en">
+  <head>
+   <!-- Required meta tags -->
+   <meta charset="utf-8">
+   <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+ +   <!-- Win 98 CSS -->
+   <link rel="stylesheet" href="win98.min.css">
+ +   <title>Hello, world!</title>
+  </head>
+  <body>
+   <h1>Hello, world!
+ +   <!-- Win 98 JavaScript -->
+   <script src="win98.min.js">
+  </body>
+ </html>
+ +

+

Alerts

+

Alerts are available for any length of text, as well as an optional dismiss button. These resemble similar to the 98 Window Alerts

+
+
+ This is an alert +
+
+ This is the alert body with a SUPER BAD LOOKING ERROR CODE. Please fix this error before pursuing to the webpage. + +
+
+ +

+ <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>
+

+ +

Buttons

+

Win 98 CSS includes several predefined button styles, each serving its own semantic purpose, with a few extras thrown in for more control.

+
+ + + + + + + +
+ +

+ + <button class="btn btn-primary"><span>Primary</button>
+ <button class="btn btn-secondary"><span>Secondary</button>
+ <button class="btn btn-danger"><span>Danger</button>
+ <button class="btn btn-success"><span>Success</button>
+ <button class="btn btn-warning"><span>Warning</button>
+ <button class="btn btn-info"><span>Info</button>
+ <button class="btn btn-outline"><span>Outline Button</button>
+ +

+ +

Card

+

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.

+
+ ... +
+
Card Title
+

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!

+ +
+
+ +

+ + <div class="card">
+   <img src="..." 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>
+ +

+ +

Card body can also be added alone.

+ +
+
+ This is some text within a card body. +
+
+ +

+ + <div class="card">
+   <div class="card-body">
+     This is some text within a card body.
+   </div>
+ </div>
+ +

+ +

Card can also contain subtitles, links and no images.

+ +
+
+
Card title
+
Card subtitle
+

Some quick example text to build on the card title and make up the bulk of the card's content.

+ Card link + Another link +
+
+ +

+ + <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>
+ +

+ +

Forms

+

Forms are used to get data on your site.

+ + + + +
+ +
+ + + +

+ + <input type="email" class="form-control" placeholder="name@example.com">
+ <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>
+ +

+ +

List Groups

+ +
+
+ Featured +
+
    +
  • Cras justo odio
  • +
  • Dapibus ac facilisis in
  • +
  • Vestibulum at eros
  • +
+
+

+ + <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>
+

+

Quotes

+ +
+
+ Quote +
+
+
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

+
— Someone famous in Source Title
+
+
+
+ +

+ + <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>
+ +

+
+
+ + + \ 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 @@ + + + + + + + Win 98 CSS + + + + + + +

Win 98 CSS

+

Bringing back your childhood memories in CSS.

+

View the docs or View on Github

+ + + \ No newline at end of file diff --git a/src/image.jpg b/src/image.jpg new file mode 100644 index 0000000..2554b0b Binary files /dev/null and b/src/image.jpg differ 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 -- cgit v1.2.3