@@ -26,6 +26,9 @@ var control = (function(){
2626type : "color" ,
2727func : function ( ) {
2828accent . render ( ) ;
29+ link . clear ( ) ;
30+ link . render . item . all ( ) ;
31+ sortable ( ".link-area" ) ;
2932}
3033} , {
3134element : helper . e ( ".control-layout-width" ) ,
@@ -1820,26 +1823,12 @@ var control = (function(){
18201823}
18211824} , {
18221825element : helper . e ( ".control-link-item-url-show" ) ,
1823- path : "link.item.url.show " ,
1826+ path : "link.item.url" ,
18241827type : "checkbox" ,
18251828func : function ( ) {
18261829render ( ) ;
18271830dependents ( ) ;
18281831}
1829- } , {
1830- element : helper . e ( ".control-link-item-url-style-dark" ) ,
1831- path : "link.item.url.style" ,
1832- type : "radio" ,
1833- func : function ( ) {
1834- render ( ) ;
1835- }
1836- } , {
1837- element : helper . e ( ".control-link-item-url-style-light" ) ,
1838- path : "link.item.url.style" ,
1839- type : "radio" ,
1840- func : function ( ) {
1841- render ( ) ;
1842- }
18431832} , {
18441833element : helper . e ( ".control-link-item-line" ) ,
18451834path : "link.item.line" ,
@@ -2027,6 +2016,9 @@ var control = (function(){
20272016func : function ( ) {
20282017accent . random ( ) ;
20292018accent . render ( ) ;
2019+ link . clear ( ) ;
2020+ link . render . item . all ( ) ;
2021+ sortable ( ".link-area" ) ;
20302022}
20312023} , {
20322024element : helper . e ( ".control-background-image-show" ) ,
@@ -2339,8 +2331,6 @@ var control = (function(){
23392331helper . removeClass ( html , "is-link-display-alignment-vertical-center" ) ;
23402332helper . removeClass ( html , "is-link-display-alignment-vertical-bottom" ) ;
23412333helper . removeClass ( html , "is-link-url-show" ) ;
2342- helper . removeClass ( html , "is-link-url-style-light" ) ;
2343- helper . removeClass ( html , "is-link-url-style-dark" ) ;
23442334helper . removeClass ( html , "is-link-item-line" ) ;
23452335helper . removeClass ( html , "is-link-item-hover-scale" ) ;
23462336helper . removeClass ( html , "is-link-item-alignment-horizontal-left" ) ;
@@ -2356,14 +2346,13 @@ var control = (function(){
23562346helper . addClass ( html , "is-link-display-alignment-horizontal-" + state . get ( ) . link . item . display . alignment . horizontal ) ;
23572347helper . addClass ( html , "is-link-display-alignment-vertical-" + state . get ( ) . link . item . display . alignment . vertical ) ;
23582348helper . addClass ( html , "is-link-style-" + state . get ( ) . link . style ) ;
2359- helper . addClass ( html , "is-link-url-style-" + state . get ( ) . link . item . url . style ) ;
23602349if ( state . get ( ) . link . item . name . show ) {
23612350helper . addClass ( html , "is-link-name-show" ) ;
23622351} ;
23632352if ( state . get ( ) . link . item . display . show ) {
23642353helper . addClass ( html , "is-link-display-show" ) ;
23652354} ;
2366- if ( state . get ( ) . link . item . url . show ) {
2355+ if ( state . get ( ) . link . item . url ) {
23672356helper . addClass ( html , "is-link-url-show" ) ;
23682357} ;
23692358if ( state . get ( ) . link . item . line ) {
@@ -2719,8 +2708,6 @@ var control = (function(){
27192708helper . e ( ".control-link-item-name-size" ) . disabled = true ;
27202709helper . e ( ".control-link-item-name-size-default" ) . disabled = true ;
27212710helper . e ( ".control-link-item-url-show" ) . disabled = true ;
2722- helper . e ( ".control-link-item-url-style-dark" ) . disabled = true ;
2723- helper . e ( ".control-link-item-url-style-light" ) . disabled = true ;
27242711helper . e ( ".control-link-item-line" ) . disabled = true ;
27252712helper . e ( ".control-link-item-hover-scale" ) . disabled = true ;
27262713helper . e ( ".control-link-item-display-alignment-horizontal-label" ) . setAttribute ( "disabled" , "" ) ;
@@ -2772,7 +2759,7 @@ var control = (function(){
27722759helper . e ( ".control-link-item-name-size" ) . disabled = false ;
27732760helper . e ( ".control-link-item-name-size-default" ) . disabled = false ;
27742761} ;
2775- if ( state . get ( ) . link . item . display . show || state . get ( ) . link . item . name . show || state . get ( ) . link . item . url . show ) {
2762+ if ( state . get ( ) . link . item . display . show || state . get ( ) . link . item . name . show || state . get ( ) . link . item . url ) {
27762763helper . e ( ".control-link-item-display-alignment-horizontal-label" ) . removeAttribute ( "disabled" ) ;
27772764helper . e ( ".control-link-item-display-alignment-horizontal-left" ) . disabled = false ;
27782765helper . e ( ".control-link-item-display-alignment-horizontal-center" ) . disabled = false ;
@@ -2782,10 +2769,6 @@ var control = (function(){
27822769helper . e ( ".control-link-item-display-alignment-vertical-center" ) . disabled = false ;
27832770helper . e ( ".control-link-item-display-alignment-vertical-bottom" ) . disabled = false ;
27842771} ;
2785- if ( state . get ( ) . link . item . url . show ) {
2786- helper . e ( ".control-link-item-url-style-dark" ) . disabled = false ;
2787- helper . e ( ".control-link-item-url-style-light" ) . disabled = false ;
2788- } ;
27892772} ;
27902773} ;
27912774var _theme = function ( ) {
0 commit comments