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 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
| // Code标签 .post-content .note { border-radius: 3px; margin-bottom: 20px; padding: 15px; position: relative; background: #f9f9f9; border: initial; border-left: 3px solid #eee; } .post-content .note h2, .post-content .note h3, .post-content .note h4, .post-content .note h5, .post-content .note h6 { margin-top: 3px; border-bottom: initial; margin-bottom: 0; padding-top: 0; } .post-content .note p:first-child, .post-content .note ul:first-child, .post-content .note ol:first-child, .post-content .note table:first-child, .post-content .note pre:first-child, .post-content .note blockquote:first-child, .post-content .note img:first-child { margin-top: 0; } .post-content .note p:last-child, .post-content .note ul:last-child, .post-content .note ol:last-child, .post-content .note table:last-child, .post-content .note pre:last-child, .post-content .note blockquote:last-child, .post-content .note img:last-child { margin-bottom: 0; } .post-content .note:not(.no-icon) { padding-left: 45px; } .post-content .note:not(.no-icon)::before { font-family: 'FontAwesome'; font-size: larger; left: 15px; position: absolute; top: 13px; } .post-content .note.default { background: #f7f7f7; border-left-color: #777; } .post-content .note.default h2, .post-content .note.default h3, .post-content .note.default h4, .post-content .note.default h5, .post-content .note.default h6 { color: #777; } .post-content .note.default:not(.no-icon)::before { content: "\f0a9"; color: #777; } .post-content .note.primary { background: #f5f0fa; border-left-color: #6f42c1; } .post-content .note.primary h2, .post-content .note.primary h3, .post-content .note.primary h4, .post-content .note.primary h5, .post-content .note.primary h6 { color: #6f42c1; } .post-content .note.primary:not(.no-icon)::before { content: "\f055"; color: #6f42c1; } .post-content .note.info { background: #eef7fa; border-left-color: #428bca; } .post-content .note.info h2, .post-content .note.info h3, .post-content .note.info h4, .post-content .note.info h5, .post-content .note.info h6 { color: #428bca; } .post-content .note.info:not(.no-icon)::before { content: "\f05a"; color: #428bca; } .post-content .note.success { background: #eff8f0; border-left-color: #5cb85c; } .post-content .note.success h2, .post-content .note.success h3, .post-content .note.success h4, .post-content .note.success h5, .post-content .note.success h6 { color: #5cb85c; } .post-content .note.success:not(.no-icon)::before { content: "\f058"; color: #5cb85c; } .post-content .note.warning { background: #fdf8ea; border-left-color: #f0ad4e; } .post-content .note.warning h2, .post-content .note.warning h3, .post-content .note.warning h4, .post-content .note.warning h5, .post-content .note.warning h6 { color: #f0ad4e; } .post-content .note.warning:not(.no-icon)::before { content: "\f06a"; color: #f0ad4e; } .post-content .note.danger { background: #fcf1f2; border-left-color: #d9534f; } .post-content .note.danger h2, .post-content .note.danger h3, .post-content .note.danger h4, .post-content .note.danger h5, .post-content .note.danger h6 { color: #d9534f; } .post-content .note.danger:not(.no-icon)::before { content: "\f056"; color: #d9534f; }
// class = .my-blockquote-center p 居中 .my-blockquote-center p{ text-align: center; }
// label .post-content .label { display: inline; padding: 0 2px; } .post-content .label.default { background: #f0f0f0; } .post-content .label.primary { background: #efe6f7; } .post-content .label.info { background: #e5f2f8; } .post-content .label.success { background: #e7f4e9; } .post-content .label.warning { background: #fcf6e1; } .post-content .label.danger { background: #fae8eb; }
|