GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — UnityGraphicsProgrammingBook2/articles/style.scss at master · IndieVisualLab/UnityGraphicsProgrammingBook2 Expand file tree/ Copy pathstyle.scssMore file actions 153 lines (144 loc) · 2.56 KB / Copy pathstyle.scssFile metadata and controls153 lines (144 loc) · 2.56 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 // Variables $main-color: #64C1D7; $footer-link-color: #9e9e9e; $font-size: 16px; $paragraph-margin-bottom: $font-size * 0.75; // デフォルトの装飾を上書く body { font-family: "Helvetica Neue", Helvetica, Arial, Meiryo, "メイリオ", sans-serif; font-size: $font-size; line-height: 24px / $font-size; } h2 { border-bottom: 1px solid #ccc; } h1, h2, h3 { margin-top: $font-size * 0.875 * 2; margin-bottom: $font-size * 0.875; } h4, h5, h6 { margin-top: $font-size * 0.875; margin-bottom: $font-size * 0.875; &:before { content: "■"; } } p { margin-bottom: $paragraph-margin-bottom; } dd { margin-left: 3em; } // コラム div.column { border: solid 3px; border-radius: 10px; padding-left: 1em; padding-right: 1em; margin-top: $paragraph-margin-bottom; margin-bottom: $paragraph-margin-bottom; h1, h2, h3 { margin-top: $font-size * 0.875; } } // リード文 div.lead { font-size: $font-size; margin-left: 3em; } // footnote .noteref { vertical-align: super; font-size: smaller; } p.footnote { font-size: 0.8em; } // footnoteは最後に持ってくる .main-content { display: flex; flex-direction: column; } div.footnote { order: 1; } // 画像やリストなどのキャプション系 .image, .table, .caption-code, .cmd-code { margin-bottom: $paragraph-margin-bottom; } .image, .table { // キャプションを中央寄せするもの .caption { text-align: center; } } .image { // キャプションに▲を付けるもの .caption { margin-top: 0; &:before { content: "▲"; color: lightgray; } } } .caption-code, .table { // キャプションに▼を付けるもの .caption { margin-bottom: 0; &:before { content: "▼"; color: lightgray; } } } .image { img { // 画像は中央余生にしとく display: block; max-width: 100%; height: auto; margin-left: auto;; margin-right: auto; } } // ヘッダ .tb-header { background-image: url(images/html_header.jpg); background-size: cover; height: 20vw; background-color: $main-color; color: white; // テキストは隠す text-indent: 150%; overflow: hidden; white-space: nowrap; } // メニューまわり .tb-nav-link { margin-top: 1em; margin-bottom: 1em; a.prev:before { content: "<<"; } a.next:after { content: ">>"; } } // フッタ .tb-footer { margin-top: 16px; padding-top: 16px; padding-bottom: 16px; color: white; background-color: #424242; a { color: $footer-link-color; } p { margin-right: 10px; } } .tb-footer-links { li:nth-child(n+2)::before { color: $footer-link-color; content: "/"; margin-right: 16px; } } |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |