Guest User

FO4CSS

a guest
Nov 6th, 2025
4
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.09 KB | None | 0 0
  1.  
  2.  
  3. /* -------------------------------------------------------- */
  4. /* VARIABLES */
  5. /* -------------------------------------------------------- */
  6.  
  7. /* Variables are used like this: var(--text-color) */
  8. :root {
  9. /* Background Colors: */
  10. --background-color: #000000;
  11. --content-background-color: #000000;
  12. --sidebar-background-color: #000000;
  13.  
  14. /* Text Colors: */
  15. --text-color: #A3E61D;
  16. --sidebar-text-color: #A3E61D;
  17. --link-color: rgb(255, 242, 214);
  18. --link-color-hover: #ffffff;
  19.  
  20. /* Text: */
  21. --font: Courier New, monospace;
  22. --heading-font: Lucida Console, monospace;
  23. --font-size: 12px;
  24.  
  25. /* Other Settings: */
  26. --margin: 18px;
  27. --padding: 26px;
  28. --border: 10px solid #A3E61D;
  29. --round-borders: 0px;
  30. --sidebar-width: 300px;
  31.  
  32. --infoboxbg:#a3e61d28;
  33. --centertext:#A3E61D;
  34. --boldtext:#A3E61D;
  35. --infotext:#A3E61D;
  36. }
  37.  
  38. /* -------------------------------------------------------- */
  39. /* BASICS */
  40. /* -------------------------------------------------------- */
  41.  
  42. * {
  43. box-sizing: border-box;
  44. }
  45.  
  46. body {
  47. display: flex;
  48. align-items: flex-start;
  49. justify-content: center;
  50. min-height: 100vh;
  51. font-size: var(--font-size);
  52. margin: 0;
  53. padding: var(--margin);
  54. color: var(--text-color);
  55. font-family: var(--font);
  56. line-height: 1.2;
  57. background: var(--background-color);
  58. background-image: url("");
  59.  
  60. }
  61.  
  62. ::selection {
  63. /* (Text highlighted by the user) */
  64. background: rgba(0, 0, 0, 0.2);
  65. }
  66.  
  67. mark {
  68. /* Text highlighted by using the <mark> element */
  69. text-shadow: 1px 1px 4px var(--link-color);
  70. background-color: inherit;
  71. color: var(--text-color);
  72. }
  73.  
  74. /* Links: */
  75. a {
  76. text-decoration: underline;
  77. }
  78.  
  79. a,
  80. a:visited {
  81. color: var(--link-color);
  82. }
  83.  
  84. a:hover,
  85. a:focus {
  86. color: var(--link-color-hover);
  87. text-decoration: none;
  88. }
  89.  
  90. /* -------------------------------------------------------- */
  91. /* LAYOUT */
  92. /* -------------------------------------------------------- */
  93.  
  94. .layout {
  95. width: 1000px;
  96. display: grid;
  97. grid-gap: var(--margin);
  98. grid-template: "header header" auto "main rightSidebar" auto "footer footer" auto / auto var(--sidebar-width);
  99. /* Confused by the grid? Check out my tutorial: https://petrapixel.neocities.org/coding/positioning-tutorial#grid */
  100. }
  101.  
  102. main {
  103. grid-area: main;
  104. overflow-y: auto;
  105. padding: var(--padding);
  106. background: var(--content-background-color);
  107. border: var(--border);
  108. border-radius: var(--round-borders);
  109. }
  110.  
  111. /* -------------------------------------------------------- */
  112. /* HEADER */
  113. /* -------------------------------------------------------- */
  114.  
  115. header {
  116. grid-area: header;
  117. font-size: 3em;
  118. border: var(--border);
  119. border-radius: var(--round-borders);
  120. background: var(--content-background-color);
  121.  
  122. }
  123.  
  124. .header-content {
  125. padding: var(--padding);
  126.  
  127. }
  128.  
  129. .header-title {
  130. font-family: var(--heading-font);
  131. font-size: 1.5em;
  132. font-weight: bold;
  133. }
  134.  
  135. .header-image img {
  136. width: 100%;
  137. height: auto;
  138. }
  139.  
  140. /* -------------------------------------------------------- */
  141. /* SIDEBARS */
  142. /* -------------------------------------------------------- */
  143.  
  144. aside {
  145. grid-area: aside;
  146. border: var(--border);
  147. border-radius: var(--round-borders);
  148. overflow: hidden;
  149. background: var(--sidebar-background-color);
  150. padding: var(--padding);
  151. color: var(--sidebar-text-color);
  152. }
  153.  
  154. .left-sidebar {
  155. grid-area: leftSidebar;
  156. }
  157.  
  158. .right-sidebar {
  159. grid-area: rightSidebar;
  160. }
  161.  
  162. .sidebar-title {
  163. font-weight: bold;
  164. font-size: 1.2em;
  165. font-family: var(--heading-font);
  166. }
  167.  
  168. .sidebar-section:not(:last-child) {
  169. margin-bottom: 3em;
  170. }
  171.  
  172. .sidebar-section ul,
  173. .sidebar-section ol {
  174. padding-left: 1.5em;
  175. }
  176.  
  177. .sidebar-section > *:not(p):not(ul):not(ol):not(blockquote) {
  178. margin-top: 10px;
  179. }
  180.  
  181. /* Sidebar Blockquote: */
  182.  
  183. .sidebar-section blockquote {
  184. background: rgba(0, 0, 0, 0.1);
  185. padding: 15px;
  186. margin: 1em 0;
  187. border-radius: 10px;
  188. overflow: hidden;
  189. }
  190.  
  191. .sidebar-section blockquote > *:first-child {
  192. margin-top: 0;
  193. }
  194.  
  195. .sidebar-section blockquote > *:last-child {
  196. margin-bottom: 0;
  197. }
  198.  
  199. /* Site Button: */
  200.  
  201. .site-button {
  202. display: flex;
  203. flex-direction: column;
  204. align-items: center;
  205. }
  206.  
  207. .site-button textarea {
  208. font-family: monospace;
  209. font-size: 0.7em;
  210. }
  211.  
  212. /* -------------------------------------------------------- */
  213. /* FOOTER */
  214. /* -------------------------------------------------------- */
  215.  
  216. footer {
  217. grid-area: footer;
  218. border: var(--border);
  219. border-radius: var(--round-borders);
  220. overflow: hidden;
  221. font-size: 0.75em;
  222. padding: 15px;
  223. background: var(--content-background-color);
  224. display: flex;
  225. justify-content: center;
  226. }
  227.  
  228. footer a,
  229. footer a:visited {
  230. color: var(--link-color);
  231. }
  232.  
  233. footer a:hover,
  234. footer a:focus {
  235. color: var(--link-color-hover);
  236. }
  237.  
  238. /* -------------------------------------------------------- */
  239. /* NAVIGATION */
  240. /* -------------------------------------------------------- */
  241.  
  242. nav {
  243. margin-bottom: 3em;
  244. }
  245.  
  246. nav .sidebar-title {
  247. margin-bottom: 0.5em;
  248. }
  249.  
  250. nav ul {
  251. margin: 0 -5px;
  252. padding: 0;
  253. list-style: none;
  254. user-select: none;
  255. }
  256.  
  257. nav ul li {
  258. margin-bottom: 0;
  259. }
  260.  
  261. nav > ul li > a,
  262. nav > ul li > strong {
  263. display: inline-block;
  264. }
  265.  
  266. nav > ul li > a,
  267. nav > ul li > details summary,
  268. nav > ul li > strong {
  269. padding: 5px 10px;
  270. }
  271.  
  272. nav > ul li > a.active,
  273. nav > ul li > details.active summary {
  274. font-weight: bold;
  275. }
  276.  
  277. nav ul summary {
  278. cursor: pointer;
  279. }
  280.  
  281. nav ul ul li > a {
  282. padding-left: 30px;
  283. }
  284.  
  285. /* NAVIGATION IN HEADER */
  286.  
  287. header nav {
  288. margin-bottom: 0;
  289. }
  290.  
  291. header nav ul {
  292. display: flex;
  293. flex-wrap: wrap;
  294. margin: 0;
  295. }
  296.  
  297. header nav ul li {
  298. position: relative;
  299. }
  300.  
  301. header nav ul li:first-child > a {
  302. padding-left: 0;
  303. }
  304.  
  305. header nav ul li:last-child > a {
  306. padding-right: 0;
  307. }
  308.  
  309. /* Subnavigation (Drop-Down): */
  310.  
  311. header nav ul ul {
  312. background: var(--content-background-color);
  313. display: none;
  314. position: absolute;
  315. top: 100%;
  316. left: 10px;
  317. padding: 0.5em;
  318. z-index: 1;
  319. border: var(--border);
  320. min-width: 100%;
  321. box-shadow: 0px 1px 5px rgba(0,0,0,0.2);
  322. }
  323.  
  324. header nav ul li:hover ul,
  325. header nav ul li:focus-within ul {
  326. display: block;
  327. }
  328.  
  329. header nav ul li strong {
  330. color: var(--link-color);
  331. text-decoration: underline;
  332. font-weight: normal;
  333. }
  334.  
  335. header nav ul ul li a {
  336. display: block;
  337. padding-left: 0;
  338. padding-right: 0;
  339. }
  340.  
  341. /* -------------------------------------------------------- */
  342. /* CONTENT */
  343. /* -------------------------------------------------------- */
  344.  
  345. main {
  346. line-height: 1.3;
  347. }
  348.  
  349. main a,
  350. main a:visited {
  351. color: var(--link-color);
  352. }
  353.  
  354. main a:hover,
  355. main a:focus {
  356. color: var(--link-color-hover);
  357. text-decoration-style: wavy;
  358. }
  359.  
  360. main p,
  361. main .image,
  362. main .full-width-image,
  363. main .two-columns {
  364. margin: 0.75em 0;
  365. }
  366.  
  367. main ol,
  368. main ul {
  369. margin: 0.5em 0;
  370. padding-left: 1.5em;
  371. }
  372.  
  373. main ol li,
  374. main ul li {
  375. margin-bottom: 0.2em;
  376. line-height: 1.3;
  377. }
  378.  
  379. main ol {
  380. padding-left: 2em;
  381. }
  382.  
  383. main blockquote {
  384. background: rgba(0, 0, 0, 0.1);
  385. padding: 15px;
  386. margin: 1em 0;
  387. border-radius: 10px;
  388. }
  389.  
  390. main pre {
  391. margin: 1em 0 1.5em;
  392. }
  393.  
  394. main code {
  395. text-transform: none;
  396. }
  397.  
  398. main center {
  399. margin: 1em 0;
  400. padding: 0 1em;
  401. }
  402.  
  403. main hr {
  404. border: 0;
  405. border-top: var(--border);
  406. margin: 1.5em 0;
  407. padding: 0em;
  408. }
  409.  
  410. h1,h2,h3{
  411. overflow: hidden;
  412. border-bottom: 2px solid var(--headerunderline);
  413. }
  414. h2{
  415. font-size: 17pt;
  416. margin: 1em 0;
  417. padding:
  418. }
  419. h3{
  420. font-size: 13.03pt;
  421. font-weight: bold;
  422.  
  423.  
  424. }
  425. h1{
  426. font-size: 29px
  427. }
  428. h4{
  429. text-align: right;
  430. }
  431. h5{
  432. font-size: 10px;
  433. text-align: left;
  434. }
  435.  
  436. .image-row {
  437. display: flex;
  438. flex-wrap: wrap;
  439. gap: 16px;
  440.  
  441. }
  442.  
  443. figure {
  444. padding: 4px;
  445. margin: auto;
  446. }
  447.  
  448. figcaption {
  449. background-color: black;
  450. color: #A3E61D;
  451. font-style: italic;
  452. text-align: left;
  453.  
  454.  
  455.  
  456. }
  457.  
  458. /*quotes*/
  459. .quotebox{
  460. width: 30%;
  461. background-size: cover;
  462. font-style: italic;
  463. padding: 10px;
  464.  
  465. padding: 13px;
  466. border-left: solid;
  467. background-color:var(--quotebackground);
  468. color: var(--quotetext);
  469. }
  470. /*infotable*/
  471. .infotable {
  472. float:right;
  473. margin-left:5px;
  474. background:var(--infoboxbg);
  475. border-left:2px solid var(--borders);
  476. border:2px solid var(--borders);
  477. width:40%;
  478. font-size: 14px;
  479. color: var(--infotext);
  480.  
  481. }
  482. .infotable img{
  483. max-width: 100%;
  484. margin: auto;
  485. }
  486. .infotable th {
  487. text-align:left;
  488.  
  489. }
  490. .infotable th{
  491. padding: 5px;
  492. color: #3f580b;
  493. }
  494. .infotable ul{
  495. list-style: none;
  496. padding: 0px;
  497. margin: 4px;
  498. }
  499. #centertext{
  500. text-align: center;
  501. background: var(--centertext);
  502. }
  503.  
  504.  
  505.  
  506.  
  507. /* COLUMNS: */
  508.  
  509. .two-columns {
  510. display: flex;
  511. }
  512.  
  513. .two-columns > * {
  514. flex: 1 1 0;
  515. margin: 0;
  516. }
  517.  
  518. .two-columns > *:first-child {
  519. padding-right: 0.75em;
  520. }
  521.  
  522. .two-columns > *:last-child {
  523. padding-left: 0.75em;
  524. }
  525.  
  526. /* -------------------------------------------------------- */
  527. /* CONTENT IMAGES */
  528. /* -------------------------------------------------------- */
  529.  
  530. .image {
  531. display: block;
  532. width: auto;
  533. height: auto;
  534. max-width: 100%;
  535. }
  536.  
  537. .full-width-image {
  538. display: block;
  539. width: 100%;
  540. height: auto;
  541. }
  542.  
  543. .images {
  544. display: flex;
  545. width: calc(100% + 5px + 5px);
  546. margin-left: -5px;
  547. margin-right: -5px;
  548. }
  549.  
  550. .images img {
  551. width: 100%;
  552. height: auto;
  553. padding: 5px;
  554. margin: 0;
  555. overflow: hidden;
  556. }
  557.  
  558. /* -------------------------------------------------------- */
  559. /* ACCESSIBILITY */
  560. /* -------------------------------------------------------- */
  561.  
  562. /* please do not remove this. */
  563.  
  564. #skip-to-content-link {
  565. position: fixed;
  566. top: 0;
  567. left: 0;
  568. display: inline-block;
  569. padding: 0.375rem 0.75rem;
  570. line-height: 1;
  571. font-size: 1.25rem;
  572. background-color: var(--content-background-color);
  573. color: var(--text-color);
  574. transform: translateY(-3rem);
  575. transition: transform 0.1s ease-in;
  576. z-index: 99999999999;
  577. }
  578.  
  579. #skip-to-content-link:focus,
  580. #skip-to-content-link:focus-within {
  581. transform: translateY(0);
  582. }
  583.  
  584. /* -------------------------------------------------------- */
  585. /* MOBILE RESPONSIVE */
  586. /* -------------------------------------------------------- */
  587.  
  588. /* CSS Code for devices < 800px */
  589. @media (max-width: 800px) {
  590. body {
  591. font-size: 14px;
  592. }
  593.  
  594. .layout {
  595. width: 100%;
  596. grid-template: "header" auto "rightSidebar" auto "main" auto "footer" auto / 1fr;
  597. /* Confused by the grid? Check out my tutorial: https://petrapixel.neocities.org/coding/positioning-tutorial#grid */
  598. }
  599.  
  600. .left-sidebar {
  601. display: none;
  602. }
  603.  
  604.  
  605. aside {
  606. border-bottom: 1px solid;
  607. padding: 9px;
  608. font-size: 0.9em;
  609. }
  610.  
  611.  
  612. nav {
  613. padding: 0;
  614. }
  615.  
  616. nav > ul {
  617. padding-top: 0.5em;
  618. }
  619.  
  620. nav > ul li > a,
  621. nav > ul li > details summary,
  622. nav > ul li > strong {
  623. padding: 0.5em;
  624. }
  625.  
  626. main {
  627. max-height: none;
  628. padding: 15px;
  629. }
  630.  
  631. .images {
  632. flex-wrap: wrap;
  633. }
  634.  
  635. .images img {
  636. width: 100%;
  637. }
  638.  
  639. #skip-to-content-link {
  640. font-size: 1rem;
  641. }
  642.  
  643.  
  644.  
  645. }
  646.  
Add Comment
Please, Sign In to add comment