Created
May 19, 2020 04:31
-
-
Save calvinmorett/9ff51ecf4455d6cb2a940af6d8ceec05 to your computer and use it in GitHub Desktop.
98.css + Lupus Research Alliance (New York City) | May 2020 - Lupus Awareness Month
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<link | |
rel="stylesheet" | |
href="https://unpkg.com/98.css" | |
> | |
</head> | |
<body id="containment-wrapper" class="desktop"> | |
<div class="desktop-icons"> | |
<div class="recycle-bin ui-icon"> | |
<div class="ui-icon-container"> | |
<img width="32" height="32" src="https://i.imgur.com/EvJUWPq.png"> | |
<span style="color:white;">My Computer</span> | |
</div> | |
</div> | |
<div class="recycle-bin ui-icon"> | |
<div class="ui-icon-container"> | |
<img width="32" height="32" src="https://i.imgur.com/vTS9sJI.png"> | |
<span style="color:white;">Documents</span> | |
</div> | |
</div> | |
<div class="recycle-bin ui-icon"> | |
<div class="ui-icon-container"> | |
<img width="32" height="32" src="https://i.imgur.com/HN64xjm.png"> | |
<span style="color:white;">Info</span> | |
</div> | |
</div> | |
<div class="recycle-bin ui-icon"> | |
<div class="ui-icon-container"> | |
<img width="32" height="32" src="https://i.imgur.com/ZgZ86X4.png"> | |
<span style="color:white;">Slum Village</span> | |
</div> | |
</div> | |
</div> | |
</div> | |
<div id="startbar"> | |
<div class="startbutton"> | |
<p class="start"></p> | |
</div> | |
<span class="time"><a href="#" target="_blank">12:20 pm</a></span> | |
</div> | |
<section id="draggable" class="float z444 ui-widget-content"> | |
<div class="window" style="width: 300px"> | |
<div class="title-bar"> | |
<div class="title-bar-text">May 2020 - Lupus Awareness Month</div> | |
<div class="title-bar-controls"> | |
<button aria-label="Minimize"></button> | |
<button aria-label="Maximize"></button> | |
<button aria-label="Close"></button> | |
</div> | |
</div> | |
<div class="window-body"> | |
<p>May is a critical time to raise awareness and support for Lupus. Amidst COVID-19 there’s an even brighter spotlight on this complex autoimmune disorder. What can the world learn from Lupus? <a href="https://www.lupusresearch.org/learnfromlupus/">Find out here.</a></p> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$( function() { | |
$( "#draggable" ).draggable({ cursor: "move", containment: "#containment-wrapper", scroll: false }); | |
} ); | |
for (var i=1; i <= 3; i++) { | |
// Minimum 0 and maximum 60%. You can change that. | |
var x = Math.max(0, Math.min(25, Math.ceil(Math.random() * 100))); | |
var y = Math.max(0, Math.min(25, Math.ceil(Math.random() * 100))); | |
$('#draggable').css({ | |
position: 'absolute', | |
top: y + '%', | |
left: x + '%' | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-webkit-scrollbar-thumb { | |
background-color: silver; | |
border-left: ridge 2px #fff; | |
border-top: ridge 2px #fff; | |
border-right: ridge 2px gray; | |
border-bottom: ridge 2px gray; | |
} | |
html, | |
*, | |
:after, | |
:before { | |
box-sizing: inherit; | |
box-sizing: border-box; | |
} | |
*, | |
:after, | |
:before { | |
box-sizing: inherit; | |
} | |
html { | |
-moz-osx-font-smoothing: grayscale; | |
-webkit-font-smoothing: antialiased; | |
text-rendering: optimizeLegibility; | |
text-size-adjust: 100%; | |
} | |
body, | |
button, | |
input, | |
select, | |
textarea { | |
font-family: BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, Helvetica, Arial, sans-serif; | |
} | |
body { | |
font-size: 1rem; | |
font-weight: 400; | |
line-height: 1.5; | |
} | |
body { | |
height: 100%; | |
width: 100%; | |
} | |
.desktop { | |
min-height: 100vh; | |
width: 100%; | |
overflow: hidden; | |
background-size: cover; | |
background: #008080; | |
} | |
.desktop-icons { | |
top: 20px; | |
position: absolute; | |
left: 10px; | |
width: 72px; | |
z-index: 9999; | |
} | |
.icon-wrap { | |
border-left: 1px solid #fff; | |
border-top: 1px solid #fff; | |
border-right: 1px solid #000; | |
border-bottom: 1px solid #000; | |
margin: 0; | |
padding: 0; | |
height: 100%; | |
} | |
.icon-outer-container { | |
border-left: 1px solid #dfdfdf; | |
border-top: 1px solid #dfdfdf; | |
border-right: 1px solid #7f7f7f; | |
border-bottom: 1px solid #7f7f7f; | |
height: 100%; | |
padding: 10px; | |
margin: 0; | |
} | |
.icon-inner-container { | |
border-left: 2px solid #404040; | |
border-top: 2px solid #404040; | |
border-right: 2px solid #f4f4f4; | |
border-bottom: 2px solid #f4f4f4; | |
background: #fff; | |
height: 100%; | |
padding: 0; | |
margin: 0; | |
overflow-y: scroll; | |
} | |
.icon-inner-container .icon-box { | |
display: inline-block; | |
position: relative; | |
text-align: center; | |
} | |
.icon-inner-container .img16 { | |
margin-top: -40px; | |
margin-left: 25px; | |
} | |
.icon-inner-container .img32 { | |
margin-top: -50px; | |
margin-left: 17px; | |
} | |
.icon-inner-container .img48 { | |
margin-top: -56px; | |
margin-left: 10px; | |
} | |
.icon-inner-container .img64 { | |
height: 128px; | |
width: 128px; | |
} | |
.icon-inner-container .icon-box span { | |
display: block; | |
padding: 4px 0 0; | |
} | |
.icon-item, | |
.icon-item .helper, | |
.ui-icon { | |
display: inline-block; | |
} | |
.icon-item { | |
width: 68px; | |
height: 68px; | |
border: 1px solid #ccc; | |
text-align: center; | |
vertical-align: middle; | |
white-space: nowrap; | |
margin: 5px; | |
border-left: 1px solid #dfdfdf; | |
border-top: 1px solid #dfdfdf; | |
border-right: 1px solid #7f7f7f; | |
border-bottom: 1px solid #7f7f7f; | |
} | |
.icon-item .helper { | |
height: 100%; | |
vertical-align: middle; | |
} | |
.icon-item a div { | |
vertical-align: middle; | |
max-height: 64px; | |
max-width: 64px; | |
margin-top: -60px; | |
margin-left: 10px; | |
} | |
.ui-desktop { | |
position: absolute; | |
left: 0; | |
top: 0; | |
width: 72px; | |
z-index: 9999; | |
} | |
.ui-icon { | |
text-align: center; | |
vertical-align: top; | |
width: 72px; | |
z-index: 0; | |
line-height: 12px; | |
margin: 0; | |
padding: 8px 1px; | |
} | |
.ui-icon-container { | |
position: relative; | |
} | |
.ui_icon div { | |
display: block; | |
text-align: center; | |
} | |
.ui-icon span { | |
display: block; | |
padding: 4px 0 0; | |
} | |
#startbar { | |
overflow: none; | |
font-weight: bold!important; | |
padding: 2px; | |
box-shadow: inset 1px 0 #fff; | |
display: block; | |
background-color: silver; | |
bottom: 0; | |
left: 0; | |
right: 0; | |
border-top: 1px solid #f4f4f4; | |
border-bottom: 1px solid #4e4e4e; | |
position: fixed; | |
z-index: 99999; | |
-webkit-user-select: none; | |
-moz-user-select: none; | |
-ms-user-select: none; | |
user-select: none; | |
} | |
.start { | |
background-image: url(https://i.imgur.com/9bk1mDV.png); | |
background-repeat: no-repeat; | |
width: 45px; | |
height: 14px; | |
margin: 0; | |
} | |
.startbutton { | |
float: left; | |
margin-left: 2px; | |
margin-bottom: 2px; | |
vertical-align: middle; | |
display: inline-block; | |
padding: 2px 6px 3px; | |
background-color: silver; | |
border-top: 1px solid #fff; | |
border-left: 1px solid #fff; | |
border-right: 1px solid gray; | |
border-bottom: 1px solid gray; | |
box-shadow: inset 1px 1px #dfdfdf, 1px 0 #000, 0 1px #000, 1px 1px #000; | |
min-width: 59px; | |
margin-right: 6px; | |
color: #000; | |
height: 21px; | |
width: 59px; | |
} | |
.start-menub:hover {} | |
.time { | |
float: right; | |
text-align: right; | |
padding: 0 10px; | |
border-top: 1px solid gray; | |
border-left: 1px solid gray; | |
} | |
.time { | |
vertical-align: middle; | |
height: 22px; | |
line-height: 21px; | |
border-right: 1px solid #fff; | |
border-bottom: 1px solid #fff; | |
font-family: Arial; | |
font-weight: 400; | |
color: #000; | |
text-decoration: none; | |
} | |
.time a { | |
color: #333; | |
text-decoration: none; | |
} | |
.icon { | |
width: 68px; | |
height: 68px; | |
border: 1px solid #ccc; | |
text-align: center; | |
vertical-align: middle; | |
white-space: nowrap; | |
margin: 5px; | |
border-left: 1px solid #dfdfdf; | |
border-top: 1px solid #dfdfdf; | |
border-right: 1px solid #7f7f7f; | |
border-bottom: 1px solid #7f7f7f; | |
} | |
.ui-icon-container span { | |
font-family: 'VT323', monospace; | |
} | |
.z444 { | |
z-index: 99999999; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="https://unpkg.com/98.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment