Changeset 7f82568
- Timestamp:
- Oct 31, 2024, 7:02:44 AM (2 weeks ago)
- Branches:
- master
- Children:
- a8c08e1
- Parents:
- 7dd59e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
public/css/custom.css
r7dd59e3 r7f82568 1 1 :root { 2 --universal-margin: 0.5 rem;3 --universal-padding: 0.5 rem;4 --universal-border-radius: 0.2 rem;2 --universal-margin: 0.5em; 3 --universal-padding: 0.5em; 4 --universal-border-radius: 0.2em; 5 5 --a-link-color: blue; 6 6 --a-visited-color: #551A8B; … … 9 9 :link { color: #0000EE; } 10 10 :visited { color: #551A8B; } 11 :visited:hover { color: blue; } 11 12 12 13 html { … … 21 22 #footnotes, 22 23 #content > :not(article):not(#table-of-contents) { 23 max-width: calc(60ch);24 max-width: 40em; 24 25 margin: var(--universal-padding); 25 26 padding: calc(var(--universal-padding) * 2); … … 42 43 article h2 { 43 44 margin-top: 0; 44 padding: 0; 45 border: 1px solid rgba(0,0,0,.2); 46 text-transform: uppercase; 47 font-size: 1.2em; 48 text-align: center; 49 font-weight: 300; 50 border-radius: var(--universal-border-radius); 51 padding: 4px 2.5em; 52 box-shadow: 0px 2px 0 rgba(0,0,255,.2); 53 background: rgba(0,0,255,0.05); 45 54 } 46 55 … … 51 60 position: relative; 52 61 z-index: 999; 53 54 /* top: calc(var(--universal-padding) - 2px); */ 62 font-size: 0.9em; 55 63 } 56 64 … … 59 67 background: #fefefe; 60 68 border: 1px solid rgba(0,0,0,.25); 61 box-shadow: 0 1px 0px rgba(0,0,0,.1);69 box-shadow: 0 2px 0px rgba(0,0,0,.1); 62 70 border-radius: var(--universal-border-radius); 63 71 text-decoration: underline; 64 color: var(--a-link-color); 65 padding: 4px 12px; 72 padding: 4px 2.5em; 66 73 margin-right: 6px; 67 74 flex-shrink: 0; 68 } 69 70 .navbar a:visited { 71 color: purple; 72 } 73 74 #youmu { 75 position: relative; 76 top: 1em; 77 margin-bottom: -0.5em; 78 max-width: 400px; 79 filter: drop-shadow(0 12px 4px rgba(0,0,0,.25)); 75 font-weight: 600; 76 text-transform: uppercase; 80 77 } 81 78 82 79 #preamble { 83 max-width: calc(60ch + 6em);80 max-width: 42em; 84 81 margin: var(--universal-margin); 85 82 } … … 87 84 #postamble { 88 85 margin: var(--universal-margin); 89 max-width: calc(76ch);86 max-width: 50.5em; 90 87 display: flex; 91 88 flex-direction: row; … … 100 97 #postamble ul { 101 98 display: flex; 102 list-style: square;99 list-style: inside; 103 100 margin: 0; 104 101 padding-left: 0; … … 111 108 112 109 #postamble ul li:first-child { 113 list-style: square !important;110 list-style: inside !important; 114 111 } 115 112 } 116 113 117 114 #postamble ul li { 118 margin: 0 0.75em; 119 margin: 0 1ch; 115 margin: 0 0.5em; 120 116 } 121 117 … … 138 134 z-index: 1050; 139 135 position: fixed; 140 left: 70ch;136 left: 45em; 141 137 background: #fefefe; 142 138 box-shadow: 0 1px 0px rgba(0,0,0,.1); … … 144 140 border: 1px solid #cfcfcf; 145 141 max-height: calc(100% - 3 * (var(--universal-margin) + 0.5em) - 5em); 146 overflow: auto; 147 max-width: 35ch; 148 padding-right: 2em; 142 max-width: 45m; 143 padding-right: 1em; 149 144 } 150 145 151 146 #table-of-contents * { 152 147 padding: none; 148 } 149 150 #table-of-contents a:visited { 151 color: blue; 153 152 } 154 153 … … 211 210 max-width: 100%; 212 211 border-radius: var(--universal-border-radius); 212 box-shadow: 0 2px 1px rgba (0, 0, 0, 0.2); 213 border: 1px solid rgba(0, 0, 0, 0.2); 213 214 } 214 215 … … 239 240 240 241 a:hover { 241 text-decoration: underline;242 242 background: #ddd; 243 box-shadow: 2px 2px 0px; 243 244 } 244 245
Note:
See TracChangeset
for help on using the changeset viewer.