loveberry

adapted windows 98

Jun 28th, 2023 (edited)
731
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.88 KB | None | 0 0
  1. <!-- vast majority of this code is pulled from 98 css but edited so it only effects this certain scrollbox. if you are making everything windows 98 themed i reccomend you use the css stylesheet
  2. cred to https://jdan.github.io/98.css/ -->
  3. <style>
  4. .title-bar-controls button {border:none;border-radius:0;box-sizing:border-box;color:transparent;min-height:23px;min-width:75px;padding:0 12px;text-shadow:0 0 #222}
  5.  
  6. .title-bar-controls button {background:silver;box-shadow:inset -1px -1px #0a0a0a,inset 1px 1px #fff,inset -2px -2px grey,inset 2px 2px #dfdfdf}
  7.  
  8. .title-bar-controls button:not(:disabled):active {box-shadow:inset -1px -1px #fff,inset 1px 1px #0a0a0a,inset -2px -2px #dfdfdf,inset 2px 2px grey;text-shadow:1px 1px #222}
  9.  
  10. @media (not(hover)){
  11. button:not(:disabled):hover {
  12. box-shadow:inset -1px -1px #fff,inset 1px 1px #0a0a0a,inset -2px -2px #dfdfdf,inset 2px 2px grey}
  13. }
  14.  
  15. .title-bar-controls button:focus {outline:1px dotted #000; outline-offset:-4px}
  16. .title-bar-controls button::-moz-focus-inner {border:0}
  17.  
  18.  
  19. @font-face {
  20. font-family: "Pixelated MS Sans Serif";
  21. src: url("https://files.catbox.moe/1za99g.woff") format("woff");
  22. src: url("https://files.catbox.moe/8fwbkl.woff2") format("woff2");
  23. font-weight: normal;
  24. font-style: normal;
  25. }
  26.  
  27. @font-face {
  28. font-family: "Pixelated MS Sans Serif";
  29. src: url("https://files.catbox.moe/z7csle.woff") format("woff");
  30. src: url("https://files.catbox.moe/moqhx6.woff2") format("woff2");
  31. font-weight: bold;
  32. font-style: normal;
  33. }
  34.  
  35.  
  36. .window, .title-bar {
  37. font-family: "Pixelated MS Sans Serif", Arial;
  38. -webkit-font-smoothing: none;
  39. font-size: 11px;
  40. }
  41.  
  42. .window {
  43. box-shadow: inset -1px -1px #0a0a0a,
  44. inset 1px 1px #dfdfdf, inset -2px -2px #808080,
  45. inset 2px 2px #ffffff;
  46. background: #c0c0c0;
  47. padding: 3px;
  48. width:300px;
  49. }
  50.  
  51. .title-bar {
  52. background:linear-gradient(90deg, purple, orchid, pink);
  53. padding: 3px 2px 3px 3px;
  54. display: flex;
  55. justify-content: space-between;
  56. align-items: center;
  57. }
  58.  
  59. .title-bar-text {
  60. font-weight: bold;
  61. color: white;
  62. letter-spacing: 0;
  63. margin-right: 24px;
  64. }
  65.  
  66. .title-bar-controls {
  67. display: flex;
  68. }
  69.  
  70. .title-bar-controls button {
  71. padding: 0;
  72. display: block;
  73. min-width: 16px;
  74. min-height: 14px;
  75. }
  76.  
  77. .title-bar-controls button:active {
  78. padding: 0;
  79. }
  80.  
  81. .title-bar-controls button:focus {
  82. outline: none;
  83. }
  84.  
  85. .title-bar-controls button[aria-label=Minimize]{
  86. background-image:url("https://raw.githubusercontent.com/jdan/98.css/main/icon/minimize.svg");
  87. background-position:bottom 3px left 4px;
  88. background-repeat:no-repeat}
  89.  
  90. .title-bar-controls button[aria-label=Maximize]{
  91. background-image:url("https://raw.githubusercontent.com/jdan/98.css/4a2282dd9170cabf730fb5803d1153d86b2e94e3/icon/maximize.svg");
  92. background-position:top 2px left 3px;
  93. background-repeat:no-repeat}
  94.  
  95. .title-bar-controls button[aria-label=Close]{
  96. background-image:url("https://raw.githubusercontent.com/jdan/98.css/main/icon/close.svg");
  97. background-position:top 3px left 4px;
  98. background-repeat:no-repeat;
  99. margin-left:2px}
  100.  
  101. .window-body {
  102. margin: 8px;
  103. }
  104.  
  105. /* literally only part ive custom coded so it scrolls V */
  106. .fieldset {
  107. border:1px gray solid;
  108. box-shadow: white 1px 1px 0px inset, white 1px 1px 0px, white 0px 1px 0px, white 1px 0px 0px;
  109. margin:0;
  110. padding:10px;
  111. overflow-y:auto;
  112. height: 190px;}
  113. </style>
  114.  
  115. <div class="window">
  116. <div class="title-bar">
  117. <div class="title-bar-text">A Window With Stuff In It</div>
  118. <div class="title-bar-controls">
  119. <button aria-label="Minimize"></button>
  120. <button aria-label="Maximize"></button>
  121. <button aria-label="Close"></button>
  122. </div>
  123. </div>
  124. <div class="window-body">
  125. <div class="fieldset">
  126. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi fringilla urna vitae massa egestas tincidunt. Nunc vel felis velit. Aliquam varius mauris vel elit consectetur, ut varius nisi dapibus. Etiam at nibh eu nulla fermentum tristique. Mauris ultricies nisi quis odio molestie tempor. Duis a dolor risus. Pellentesque sed quam vel dolor euismod bibendum quis sed augue. Vivamus urna tellus, iaculis a luctus a, dapibus quis nisl. In eget enim ultricies, accumsan tortor vitae, facilisis libero. Donec massa leo, porta sit amet nisl nec, semper ullamcorper elit. Aenean luctus vel purus ut scelerisque. Suspendisse commodo luctus tortor. Fusce mi mi, varius in iaculis non, eleifend et nunc. Phasellus facilisis nibh sodales felis ultrices, sit amet consequat tortor dapibus. Curabitur quis nulla sed est efficitur malesuada. Aliquam facilisis ultricies felis, fermentum consectetur leo mattis sit amet.<br><br>
  127.  
  128. Duis pharetra malesuada fermentum. Donec pellentesque metus id lectus imperdiet tristique. In semper, velit et porta vulputate, ex neque aliquam lacus, nec lacinia magna est sit amet est. Vestibulum sit amet lacinia nisl. Aliquam erat volutpat. Integer pulvinar lectus id turpis pretium, non convallis urna pharetra. Nulla pulvinar quam non risus lobortis, non faucibus orci elementum. Nullam sed justo mi. Cras posuere, velit sed tincidunt placerat, justo ex gravida sem, ut viverra mi tellus sed erat. Proin sollicitudin felis dolor. Phasellus et arcu molestie, blandit diam scelerisque, fermentum elit. Sed et lectus non est dignissim gravida ut sed mauris.<br><br>
  129.  
  130. Phasellus sit amet lacus nulla. Quisque scelerisque lacus vel quam dapibus, scelerisque faucibus nisl auctor. Donec gravida molestie nisl, et aliquam est suscipit id. Maecenas a porta magna. Nulla at condimentum lacus. Vivamus ultricies sem vel dolor imperdiet porttitor. Suspendisse orci odio, molestie in augue sed, bibendum interdum urna. Mauris maximus nisi et sapien pharetra, sed consequat enim convallis. Aenean dictum ligula at auctor laoreet. Donec elementum dui vitae tortor venenatis, sed pretium eros semper. Morbi semper malesuada ipsum sit amet tincidunt. Donec iaculis iaculis pretium.
  131. </div>
  132. </div>
  133. </div>
Add Comment
Please, Sign In to add comment