|
1 | | -body { margin: 60px auto; width: 70%; } |
| 1 | +body { |
| 2 | + margin: 60px auto; |
| 3 | + width: 70%; |
| 4 | +} |
2 | 5 |
|
3 | | -a { color: #00a; } |
4 | | -a:visited { color: #a0a; } |
5 | | -a:hover { text-decoration: underline; } |
| 6 | +a { |
| 7 | + color: #00a; |
| 8 | +} |
6 | 9 |
|
7 | | -p, ul { font-family: Sans-Serif; font-size: 1.00em; line-height: 1.4em; color: #333; } |
| 10 | +a:visited { |
| 11 | + color: #a0a; |
| 12 | +} |
| 13 | + |
| 14 | +a:hover { |
| 15 | + text-decoration: underline; |
| 16 | +} |
| 17 | + |
| 18 | +p, |
| 19 | +ul { |
| 20 | + font-family: Sans-Serif; |
| 21 | + font-size: 1.00em; |
| 22 | + line-height: 1.4em; |
| 23 | + color: #333; |
| 24 | +} |
8 | 25 |
|
9 | 26 | /* h1, h2, h3, h4 { font-family: 'Helvetica', 'Arial', 'Sans-Serif'; } |
10 | 27 | h1 { font-size: 3em; } |
11 | 28 | h2 { font-size: 2.7em; } |
12 | 29 | h3 { font-size: 2.3em; } |
13 | 30 | h4 { font-size: 1.9em; } */ |
14 | 31 |
|
15 | | -nav ul, footer ul { font-size: 1em; font-family: 'Helvetica', 'Arial', 'Sans-Serif'; padding: 0px; list-style: none; font-weight: bold; } |
16 | | -nav ul li, footer ul li { display: inline; margin-right: 20px; } |
| 32 | +nav ul, |
| 33 | +footer ul { |
| 34 | + font-size: 1em; |
| 35 | + font-family: 'Helvetica', 'Arial', 'Sans-Serif'; |
| 36 | + padding: 0px; |
| 37 | + list-style: none; |
| 38 | + font-weight: bold; |
| 39 | +} |
17 | 40 |
|
18 | | -footer { border-top: 1px solid #d5d5d5; font-size: .8em; } |
| 41 | +nav ul li, |
| 42 | +footer ul li { |
| 43 | + display: inline; |
| 44 | + margin-right: 20px; |
| 45 | +} |
| 46 | + |
| 47 | +footer { |
| 48 | + border-top: 1px solid #d5d5d5; |
| 49 | + font-size: .8em; |
| 50 | +} |
19 | 51 |
|
20 | 52 | /* Blog */ |
21 | | -ul.posts { margin: 20px auto 40px; font-size: 1.5em; } |
22 | | -ul.posts li { list-style: none; } |
| 53 | +ul.posts { |
| 54 | + margin: 20px auto 40px; |
| 55 | + font-size: 1.5em; |
| 56 | +} |
| 57 | + |
| 58 | +ul.posts li { |
| 59 | + list-style: none; |
| 60 | +} |
| 61 | + |
| 62 | + |
| 63 | +.tree ul { |
| 64 | + padding-top: 20px; |
| 65 | + position: relative; |
| 66 | + transition: all 0.5s; |
| 67 | + -webkit-transition: all 0.5s; |
| 68 | + -moz-transition: all 0.5s; |
| 69 | +} |
| 70 | + |
| 71 | +.tree li { |
| 72 | + float: left; |
| 73 | + text-align: center; |
| 74 | + list-style-type: none; |
| 75 | + position: relative; |
| 76 | + padding: 20px 5px 0 5px; |
| 77 | + transition: all 0.5s; |
| 78 | + -webkit-transition: all 0.5s; |
| 79 | + -moz-transition: all 0.5s; |
| 80 | +} |
| 81 | + |
| 82 | +/* Connectors */ |
| 83 | +.tree li::before, |
| 84 | +.tree li::after { |
| 85 | + content: ''; |
| 86 | + position: absolute; |
| 87 | + top: 0; |
| 88 | + right: 50%; |
| 89 | + border-top: 1px solid #ccc; |
| 90 | + width: 50%; |
| 91 | + height: 20px; |
| 92 | +} |
| 93 | + |
| 94 | +.tree li::after { |
| 95 | + right: auto; |
| 96 | + left: 50%; |
| 97 | + border-left: 1px solid #ccc; |
| 98 | +} |
| 99 | + |
| 100 | +.tree li:only-child::before, |
| 101 | +.tree li:only-child::after { |
| 102 | + display: none; |
| 103 | +} |
| 104 | + |
| 105 | +.tree li:only-child { |
| 106 | + padding-top: 0; |
| 107 | +} |
| 108 | + |
| 109 | +.tree li:first-child::before, |
| 110 | +.tree li:last-child::after { |
| 111 | + border: 0 none; |
| 112 | +} |
| 113 | + |
| 114 | +.tree li:last-child::before { |
| 115 | + border-right: 1px solid #ccc; |
| 116 | + border-radius: 0 5px 0 0; |
| 117 | +} |
| 118 | + |
| 119 | +.tree li:first-child::after { |
| 120 | + border-radius: 5px 0 0 0; |
| 121 | +} |
| 122 | + |
| 123 | +.tree ul ul::before { |
| 124 | + content: ''; |
| 125 | + position: absolute; |
| 126 | + top: 0; |
| 127 | + left: 50%; |
| 128 | + border-left: 1px solid #ccc; |
| 129 | + width: 0; |
| 130 | + height: 20px; |
| 131 | +} |
| 132 | + |
| 133 | +.tree li div { |
| 134 | + border: 1px solid #ccc; |
| 135 | + padding: 5px 10px; |
| 136 | + display: inline-block; |
| 137 | + border-radius: 5px; |
| 138 | + background: #f8f8f8; |
| 139 | + transition: all 0.5s; |
| 140 | +} |
0 commit comments