chore: modify the default icon style (#236)

pull/287/head
Seaton Jiang 2020-06-25 09:39:31 +08:00
parent 44167a1fc6
commit e4790c5766
9 changed files with 165 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -1178,6 +1178,10 @@ button:focus {
font-size: 17px; font-size: 17px;
} }
.k-main .details .article .content .accordion .acheader .icon .kicon {
font-size: 17px;
}
.k-main .details .article .content .accordion.active .icon { .k-main .details .article .content .accordion.active .icon {
-webkit-transition: 0.3s; -webkit-transition: 0.3s;
transition: 0.3s; transition: 0.3s;

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -20,6 +20,9 @@ Created by iconfont
/> />
<missing-glyph /> <missing-glyph />
<glyph glyph-name="plus" unicode="&#59550;" d="M513.00000031-96c-127.99999969 0-247.99999969 48-340.00000031 139.99999969-187.99999969 187.99999969-187.99999969 492 0 679.99999969C264.99999969 816 384.99999969 864 513.00000031 864s247.99999969-48 340.00000031-139.99999969c187.99999969-187.99999969 187.99999969-492 0-679.99999969C761-48 641-96 513.00000031-96zM513.00000031 784.00000031C405.00000031 784.00000031 305 744 228.99999969 667.99999969 72.99999969 511.99999969 72.99999969 256.00000031 228.99999969 100.00000031000002 305 24 405.00000031-16.00000031000002 513.00000031-16.00000031000002s208.00000031 40.00000031 283.99999969 115.99999969c156 156 156 408 0 564C720.99999969 744 621.00000031 784.00000031 513.00000031 784.00000031zM513.00000031 144c-24 0-40.00000031 16.00000031-40.00000031 40.00000031L473 583.99999969c0 24 16.00000031 40.00000031 40.00000031 40.00000031s40.00000031-16.00000031 40.00000032-40.00000031l0-400.00000031C552.99999969 160.00000031000002 537.00000031 144 513.00000031 144zM713 343.99999969L312.99999969 343.99999969c-24 0-40.00000031 16.00000031-40.00000032 40.00000031s16.00000031 40.00000031 40.00000032 40.00000031l400.00000031 0c24 0 40.00000031-16.00000031 40.00000031-40.00000031S737 343.99999969 713 343.99999969z" horiz-adv-x="1027" />
<glyph glyph-name="url" unicode="&#59215;" d="M62.74409601 182.82875259000002a229.34040061 229.34040061 0 0 0 71.40673066 155.34459259l71.40673066 70.47466311a58.51312947 58.51312947 0 0 0 81.24522193 0 56.64899436 56.64899436 0 0 0 0-80.20959051L215.39604859 258.17088a116.40488178 116.40488178 0 0 1-36.92023109-80.15780978A92.48181453 92.48181453 0 0 1 274.47877572 78.48896831000002a136.3925523 136.3925523 0 0 1 86.16446695 36.24707079l179.73369363 177.40352474a106.72173511 106.72173511 0 0 1 9.83849127 150.6324741 56.95968355 56.95968355 0 0 0 0 80.2095905 58.51312947 58.51312947 0 0 0 81.24522193 0 202.31044149 202.31044149 0 0 0 61.56823939-148.19874134 234.881024 234.881024 0 0 0-71.40673067-165.23486458l-179.73369363-177.40352474a242.85538016 242.85538016 0 0 0-167.40968887-70.4746631 213.80594134 213.80594134 0 0 0-150.16644032 60.7397357 201.58549925 201.58549925 0 0 0-61.51645867 160.52274487z m664.71951171 298.83121422l49.24423585 48.62285748 24.64800828 24.33732032a125.20774163 125.20774163 0 0 1 39.40574459 77.67229629 92.48181453 92.48181453 0 0 1-96.05473894 99.67944651 124.27567408 124.27567408 0 0 1-86.16446817-36.24707202l-179.73369364-177.55886933a106.72173511 106.72173511 0 0 1-9.83849004-150.63247288 56.64899436 56.64899436 0 0 0 0-80.15780977 58.51312947 58.51312947 0 0 0-81.24522193 0A202.31044149 202.31044149 0 0 0 326.15674312 435.78153127 234.82924206 234.82924206 0 0 0 397.45991112 600.75748861l179.73369363 177.3517428a242.80359822 242.80359822 0 0 0 167.40968887 70.4746631 213.80594134 213.80594134 0 0 0 150.16644032-60.7397357 210.64726755 210.64726755 0 0 0 61.56823939-157.93366873 229.44396325 229.44396325 0 0 0-71.40673066-155.3445926l-24.59622756-24.28553838-46.60337778-48.57107555a58.46134875 58.46134875 0 0 0-81.24522193 0 54.78485925 54.78485925 0 0 0-5.17815228 80.15780978z" horiz-adv-x="1024" /> <glyph glyph-name="url" unicode="&#59215;" d="M62.74409601 182.82875259000002a229.34040061 229.34040061 0 0 0 71.40673066 155.34459259l71.40673066 70.47466311a58.51312947 58.51312947 0 0 0 81.24522193 0 56.64899436 56.64899436 0 0 0 0-80.20959051L215.39604859 258.17088a116.40488178 116.40488178 0 0 1-36.92023109-80.15780978A92.48181453 92.48181453 0 0 1 274.47877572 78.48896831000002a136.3925523 136.3925523 0 0 1 86.16446695 36.24707079l179.73369363 177.40352474a106.72173511 106.72173511 0 0 1 9.83849127 150.6324741 56.95968355 56.95968355 0 0 0 0 80.2095905 58.51312947 58.51312947 0 0 0 81.24522193 0 202.31044149 202.31044149 0 0 0 61.56823939-148.19874134 234.881024 234.881024 0 0 0-71.40673067-165.23486458l-179.73369363-177.40352474a242.85538016 242.85538016 0 0 0-167.40968887-70.4746631 213.80594134 213.80594134 0 0 0-150.16644032 60.7397357 201.58549925 201.58549925 0 0 0-61.51645867 160.52274487z m664.71951171 298.83121422l49.24423585 48.62285748 24.64800828 24.33732032a125.20774163 125.20774163 0 0 1 39.40574459 77.67229629 92.48181453 92.48181453 0 0 1-96.05473894 99.67944651 124.27567408 124.27567408 0 0 1-86.16446817-36.24707202l-179.73369364-177.55886933a106.72173511 106.72173511 0 0 1-9.83849004-150.63247288 56.64899436 56.64899436 0 0 0 0-80.15780977 58.51312947 58.51312947 0 0 0-81.24522193 0A202.31044149 202.31044149 0 0 0 326.15674312 435.78153127 234.82924206 234.82924206 0 0 0 397.45991112 600.75748861l179.73369363 177.3517428a242.80359822 242.80359822 0 0 0 167.40968887 70.4746631 213.80594134 213.80594134 0 0 0 150.16644032-60.7397357 210.64726755 210.64726755 0 0 0 61.56823939-157.93366873 229.44396325 229.44396325 0 0 0-71.40673066-155.3445926l-24.59622756-24.28553838-46.60337778-48.57107555a58.46134875 58.46134875 0 0 0-81.24522193 0 54.78485925 54.78485925 0 0 0-5.17815228 80.15780978z" horiz-adv-x="1024" />

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -3,7 +3,7 @@
* 文章短代码 * 文章短代码
* @author Seaton Jiang <seaton@vtrois.com> * @author Seaton Jiang <seaton@vtrois.com>
* @license MIT License * @license MIT License
* @version 2020.06.21 * @version 2020.06.25
*/ */
function h2title($atts, $content = null, $code = "") function h2title($atts, $content = null, $code = "")
@ -218,7 +218,7 @@ add_shortcode('reply', 'reply');
function accordion($atts, $content=null, $code=""){ function accordion($atts, $content=null, $code=""){
extract(shortcode_atts(array("title"=>__('标题内容','kratos')),$atts)); extract(shortcode_atts(array("title"=>__('标题内容','kratos')),$atts));
$return = '<div class="accordion"><div class="acheader"><div class="icon"><i class="fa fa-plus"></i></div><span>'; $return = '<div class="accordion"><div class="acheader"><div class="icon"><i class="kicon i-plus"></i></div><span>';
$return .= $title; $return .= $title;
$return .= '</span></div><div class="contents"><div class="inner">'; $return .= '</span></div><div class="contents"><div class="inner">';
$return .= do_shortcode($content); $return .= do_shortcode($content);