~canonical-sysadmins/wordpress/5.1

« back to all changes in this revision

Viewing changes to wp-admin/css/customize-nav-menus.css

  • Committer: Nick Moffitt
  • Date: 2016-04-14 10:43:32 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: nick.moffitt@canonical.com-20160414104332-61kvsia27qpmjquk
new upstream release 4.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 
13
13
#customize-controls .theme-location-set,
14
14
#customize-controls .control-section .accordion-section-title:focus .menu-in-location,
15
 
#customize-controls .control-section .accordion-section-title:hover .menu-in-location,
16
 
#customize-controls .control-section .accordion-section-title:focus .menu-in-locations,
17
 
#customize-controls .control-section .accordion-section-title:hover .menu-in-locations {
 
15
#customize-controls .control-section .accordion-section-title:hover .menu-in-location {
18
16
        color: #555;
19
17
}
20
18
 
78
76
}
79
77
 
80
78
.wp-customizer .menu-item .submitbox .submitdelete {
81
 
        display: block;
82
79
        float: left;
83
80
        margin: 6px 0 0;
84
81
        padding: 0;
85
82
        cursor: pointer;
86
83
}
87
84
 
88
 
.wp-customizer .menu-item .submitbox .submitdelete:focus {
89
 
        -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
90
 
        box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
91
 
}
92
85
 
93
86
/**
94
87
 * Menu items reordering styles
102
95
        right: 0;
103
96
}
104
97
 
105
 
.menu-item-reorder-nav button {
106
 
        position: relative;
107
 
        overflow: hidden;
108
 
        float: left;
109
 
        display: block;
110
 
        width: 30px;
111
 
        height: 40px;
112
 
        color: #82878c;
113
 
        text-indent: -9999px;
114
 
        cursor: pointer;
115
 
        background: transparent;
116
 
        border: none;
117
 
        -webkit-box-shadow: none;
118
 
        box-shadow: none;
119
 
        outline: none;
120
 
}
121
 
 
122
 
.menu-item-reorder-nav button:before {
123
 
        display: inline-block;
124
 
        position: absolute;
125
 
        top: 0;
126
 
        right: 0;
127
 
        width: 100%;
128
 
        height: 100%;
129
 
        font: normal 20px/40px dashicons;
130
 
        text-align: center;
131
 
        text-indent: 0;
132
 
        -webkit-font-smoothing: antialiased;
133
 
        -moz-osx-font-smoothing: grayscale;
134
 
}
135
 
 
136
 
.menu-item-reorder-nav button:hover,
137
 
.menu-item-reorder-nav button:focus {
138
 
        color: #191e23;
139
 
        background: #eee;
140
 
}
141
 
 
142
 
.menus-move-down:before {
143
 
        content: "\f347";
144
 
}
145
 
 
146
 
.menus-move-up:before {
147
 
        content: "\f343";
148
 
}
149
 
 
150
98
.menus-move-left:before {
151
99
        content: "\f341";
152
100
}
155
103
        content: "\f345";
156
104
}
157
105
 
158
 
.move-up-disabled .menus-move-up,
159
 
.move-down-disabled .menus-move-down,
160
 
.move-right-disabled .menus-move-right,
161
 
.move-left-disabled .menus-move-left {
162
 
        color: #d5d5d5 !important;
163
 
        background-color: #fff !important;
164
 
        cursor: default;
165
 
        pointer-events: none;
166
 
}
167
 
 
168
 
.menu-item-reorder-nav:before {
169
 
        content: "";
170
 
        display: block;
171
 
        position: absolute;
172
 
        left: -10px;
173
 
        width: 10px;
174
 
        height: 40px;
175
 
        background: -webkit-gradient(linear, left top, right top, from(rgba(250,250,250,0)), to(rgba(250,250,250,1)));
176
 
        background: -webkit-linear-gradient(left, rgba(250,250,250,0) 0%, rgba(250,250,250,1) 100%);
177
 
        background: linear-gradient(to right, rgba(250,250,250,0) 0%, rgba(250,250,250,1) 100%);
178
 
}
179
 
 
180
106
.reordering .menu-item .item-controls,
181
107
.reordering .menu-item .item-type {
182
108
        display: none;
302
228
 
303
229
.customize-screen-options-toggle:focus:before,
304
230
#customize-controls .customize-info .customize-help-toggle:focus:before {
305
 
        -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
306
 
        box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
307
231
        -webkit-border-radius: 100%;
308
232
        border-radius: 100%;
309
233
}
339
263
        vertical-align: top;
340
264
        -webkit-border-radius: 50%;
341
265
        border-radius: 50%;
342
 
        color: #a0a5aa;
 
266
        color: #72777c;
343
267
        font: normal 20px/1 dashicons;
344
268
        -webkit-font-smoothing: antialiased;
345
269
        -moz-osx-font-smoothing: grayscale;
346
270
        text-decoration: none !important;
347
271
}
348
272
 
349
 
.wp-customizer button:focus .toggle-indicator:after {
350
 
        -webkit-box-shadow:
351
 
                0 0 0 1px #5b9dd9,
352
 
                0 0 2px 1px rgba(30, 140, 190, .8);
353
 
        box-shadow:
354
 
                0 0 0 1px #5b9dd9,
355
 
                0 0 2px 1px rgba(30, 140, 190, .8);
356
 
}
357
 
 
358
273
#accordion-panel-nav_menus .field-link-target,
359
 
#accordion-panel-nav_menus .field-attr-title,
 
274
#accordion-panel-nav_menus .field-title-attribute,
360
275
#accordion-panel-nav_menus .field-css-classes,
361
276
#accordion-panel-nav_menus .field-xfn,
362
277
#accordion-panel-nav_menus .field-description {
364
279
}
365
280
 
366
281
#accordion-panel-nav_menus.field-link-target-active .field-link-target,
367
 
#accordion-panel-nav_menus.field-attr-title-active .field-attr-title,
 
282
#accordion-panel-nav_menus.field-title-attribute-active .field-title-attribute,
368
283
#accordion-panel-nav_menus.field-css-classes-active .field-css-classes,
369
284
#accordion-panel-nav_menus.field-xfn-active .field-xfn,
370
285
#accordion-panel-nav_menus.field-description-active .field-description {
470
385
 * Add-menu-items mode
471
386
 */
472
387
 
473
 
.wp-full-overlay-main {
474
 
        right: auto; /* This overrides a right: 0; which causes the preview to resize rather than slide off screen at the normal size. */
475
 
        width: 100%;
476
 
}
477
 
 
478
388
.adding-menu-items .control-section {
479
389
        opacity: .4;
480
390
}
484
394
        opacity: 1;
485
395
}
486
396
 
487
 
.adding-menu-items .add-new-menu-item,
488
 
.adding-menu-items .add-new-menu-item:hover,
489
 
.add-menu-toggle.open,
490
 
.add-menu-toggle.open:hover {
491
 
        background: #eee;
492
 
        border-color: #929793;
493
 
        color: #32373c;
494
 
        -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5);
495
 
        box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5);
496
 
}
497
 
 
498
 
.adding-menu-items .add-new-menu-item:before,
499
 
#accordion-section-add_menu .add-new-menu-item.open:before {
500
 
        -webkit-transform: rotate(45deg);
501
 
        -ms-transform: rotate(45deg);
502
 
        transform: rotate(45deg);
503
 
}
504
 
 
505
397
.menu-item-bar .item-delete {
506
398
        color: #a00;
507
399
        position: absolute;
537
429
        color: #f00;
538
430
}
539
431
 
540
 
.menu-item-bar .item-delete:focus:before {
541
 
        -webkit-box-shadow:
542
 
                0 0 0 1px #5b9dd9,
543
 
                0 0 2px 1px rgba(30, 140, 190, .8);
544
 
        box-shadow:
545
 
                0 0 0 1px #5b9dd9,
546
 
                0 0 2px 1px rgba(30, 140, 190, .8);
547
 
}
548
 
 
549
432
.adding-menu-items .menu-item-bar .item-edit {
550
433
        display: none;
551
434
}
554
437
        display: block;
555
438
}
556
439
 
557
 
#available-menu-items .item {
558
 
        position: static;
559
 
}
560
 
 
561
 
#available-menu-items {
562
 
        position: absolute;
563
 
        top: 0;
564
 
        bottom: 0;
565
 
        left: -301px;
566
 
        visibility: hidden;
567
 
        overflow-x: hidden;
568
 
        overflow-y: auto;
569
 
        width: 300px;
570
 
        margin: 0;
571
 
        z-index: 4;
572
 
        background: #eee;
573
 
        -webkit-transition: left .18s;
574
 
        transition: left .18s;
575
 
        border-right: 1px solid #ddd;
576
 
}
 
440
/**
 
441
 * Styles for menu-item addition panel
 
442
 */
577
443
 
578
444
#available-menu-items.opening {
579
445
        overflow-y: hidden; /* avoid scrollbar jitter with animating heights */
602
468
        content: none !important;
603
469
}
604
470
 
605
 
#available-menu-items .accordion-section-title:hover .toggle-indicator:after {
606
 
        color: #777;
 
471
#available-menu-items .accordion-section-title:hover .toggle-indicator:after,
 
472
#available-menu-items .button-link:hover .toggle-indicator:after,
 
473
#available-menu-items .button-link:focus .toggle-indicator:after {
 
474
        color: #23282d;
607
475
}
608
476
 
609
477
#available-menu-items .open .accordion-section-title .toggle-indicator:after {
610
478
        content: "\f142";
 
479
        color: #23282d;
611
480
}
612
481
 
613
482
#available-menu-items .accordion-section-content {
640
509
}
641
510
 
642
511
#available-menu-items .cannot-expand .accordion-section-title .no-items {
643
 
        display: block;
644
 
        color: #777;
 
512
        float: right;
 
513
        color: #555d66;
645
514
        font-weight: normal;
646
 
        float: right;
647
515
        margin-left: 5px;
648
516
}
649
517
 
653
521
        max-height: 290px;
654
522
}
655
523
 
656
 
#available-menu-items #available-menu-items-search .accordion-section-content {
657
 
        position: absolute;
658
 
        left: 1px;
659
 
        top: 60px; /* below title div / search input */
660
 
        bottom: 0px; /* 100% height that still triggers lazy load */
661
 
        max-height: none;
662
 
        width: 100%;
663
 
        padding: 1px 15px 15px;
664
 
        -webkit-box-sizing: border-box;
665
 
        -moz-box-sizing: border-box;
666
 
        box-sizing: border-box;
667
 
}
668
 
 
669
524
#available-menu-items .menu-item-tpl {
670
525
        margin: 0;
671
526
}
677
532
        border: 1px solid #f00;
678
533
}
679
534
 
680
 
#available-menu-items .item-tpl {
681
 
        position: relative;
682
 
        padding: 20px 15px 20px 60px;
683
 
        border-bottom: 1px solid #e4e4e4;
684
 
        cursor: pointer;
685
 
        display: none;
686
 
}
687
 
 
688
 
#available-menu-items .item-tpl:hover,
689
 
#available-menu-items .item-tpl.selected {
690
 
        background: #eee;
691
 
}
692
 
 
693
535
#available-menu-items .menu-item-handle .item-type {
694
536
        padding-right: 0;
695
537
}
702
544
        cursor: pointer;
703
545
}
704
546
 
705
 
#available-menu-items .item-top,
706
 
#available-menu-items .item-top:hover {
707
 
        border: none;
708
 
        background: transparent;
709
 
        -webkit-box-shadow: none;
710
 
        box-shadow: none;
711
 
}
712
 
 
713
547
#available-menu-items .menu-item-handle {
714
548
        -webkit-box-shadow: none;
715
549
        box-shadow: none;
754
588
        font: normal 20px/1.05 dashicons; /* line height is to account for the dashicon's vertical alignment */
755
589
}
756
590
 
757
 
#available-menu-items .item-add:focus:before {
758
 
        -webkit-box-shadow:
759
 
                0 0 0 1px #5b9dd9,
760
 
                0 0 2px 1px rgba(30, 140, 190, .8);
761
 
        box-shadow:
762
 
                0 0 0 1px #5b9dd9,
763
 
                0 0 2px 1px rgba(30, 140, 190, .8);
764
 
}
765
 
 
766
591
#available-menu-items .menu-item-handle.item-added .item-type,
767
592
#available-menu-items .menu-item-handle.item-added .item-title,
768
593
#available-menu-items .menu-item-handle.item-added:hover .item-add,
812
637
        color: #f00;
813
638
}
814
639
 
815
 
#available-menu-items-search .clear-results:focus {
816
 
        -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
817
 
        box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
818
 
}
819
 
 
820
640
#available-menu-items-search .spinner {
821
641
        position: absolute;
822
642
        top: 20px;
824
644
        right: 20px;
825
645
}
826
646
 
827
 
#available-menu-items-search input {
828
 
        padding: 6px 10px;
 
647
/* search results list */
 
648
#available-menu-items #available-menu-items-search .accordion-section-content {
 
649
        position: absolute;
 
650
        left: 1px;
 
651
        top: 60px; /* below title div / search input */
 
652
        bottom: 0px; /* 100% height that still triggers lazy load */
 
653
        max-height: none;
829
654
        width: 100%;
830
 
}
831
 
 
832
 
#available-menu-items-search .accordion-section-title {
833
 
        padding: 12px 15px;
 
655
        padding: 1px 15px 15px;
834
656
        -webkit-box-sizing: border-box;
835
657
        -moz-box-sizing: border-box;
836
658
        box-sizing: border-box;
936
758
}
937
759
 
938
760
.menu-delete-item {
939
 
        display: block;
940
761
        float: left;
941
762
        padding: 1em 0;
942
763
        width: 100%;
962
783
        text-decoration: none;
963
784
}
964
785
 
965
 
.menu-delete:focus {
966
 
        -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
967
 
        box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
968
 
}
969
 
 
970
786
.menu-item-handle {
971
787
        margin-top: -1px;
972
788
}
999
815
        margin-top: 12px;
1000
816
}
1001
817
 
1002
 
#available-menu-items .customize-section-title {
1003
 
        display: none;
 
818
/**
 
819
 * box-shadows
 
820
 */
 
821
 
 
822
.wp-customizer .menu-item .submitbox .submitdelete:focus,
 
823
.customize-screen-options-toggle:focus:before,
 
824
#customize-controls .customize-info .customize-help-toggle:focus:before,
 
825
.wp-customizer button:focus .toggle-indicator:after,
 
826
#available-menu-items-search .clear-results:focus,
 
827
.menu-delete:focus,
 
828
.menu-item-bar .item-delete:focus:before,
 
829
#available-menu-items .item-add:focus:before {
 
830
        -webkit-box-shadow:
 
831
                0 0 0 1px #5b9dd9,
 
832
                0 0 2px 1px rgba(30, 140, 190, .8);
 
833
        box-shadow:
 
834
                0 0 0 1px #5b9dd9,
 
835
                0 0 2px 1px rgba(30, 140, 190, .8);
1004
836
}
1005
837
 
 
838
 
1006
839
@media screen and ( max-width: 782px ) {
1007
840
        #available-menu-items #available-menu-items-search .accordion-section-content {
1008
841
                top: 63px;
1010
843
}
1011
844
 
1012
845
@media screen and ( max-width: 640px ) {
1013
 
        body.adding-menu-items div#available-menu-items {
1014
 
                top: 46px;
1015
 
                left: 0;
1016
 
                z-index: 10;
1017
 
                width: 100%;
1018
 
        }
1019
 
 
1020
846
        #available-menu-items #available-menu-items-search .accordion-section-content {
1021
847
                top: 133px;
1022
848
        }
1023
 
 
1024
 
        #available-menu-items .customize-section-title {
1025
 
                display: block;
1026
 
                margin: 0;
1027
 
        }
1028
 
 
1029
 
        #available-menu-items .customize-section-back {
1030
 
                height: 69px;
1031
 
        }
1032
 
 
1033
 
        #available-menu-items .customize-section-title h3 {
1034
 
                font-size: 20px;
1035
 
                font-weight: 200;
1036
 
                padding: 9px 10px 12px 14px;
1037
 
                margin: 0;
1038
 
                line-height: 24px;
1039
 
                color: #555;
1040
 
                display: block;
1041
 
                overflow: hidden;
1042
 
                white-space: nowrap;
1043
 
                text-overflow: ellipsis;
1044
 
        }
1045
 
 
1046
 
        #available-menu-items .customize-section-title .customize-action {
1047
 
                font-size: 13px;
1048
 
                display: block;
1049
 
                font-weight: 400;
1050
 
                overflow: hidden;
1051
 
                white-space: nowrap;
1052
 
                text-overflow: ellipsis;
1053
 
        }
1054
849
}