Skip to content

Commit c70b4c3

Browse files
committed
Fixed permission link style.
1 parent 302b967 commit c70b4c3

File tree

3 files changed

+42
-4
lines changed

3 files changed

+42
-4
lines changed

classes/Visualizer/Render/Page/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ private function getPermissionsLink( $id ) {
277277
}
278278
?>
279279
<li class="group group-category bottom-fixed sidebar-footer-link" id="vz-chart-permissions">
280-
<a target="_blank"><span class="dashicons dashicons-admin-users"></span><?php _e( 'Permissions (PRO)', 'visualizer' ); ?></a>
280+
<h2><span class="dashicons dashicons-admin-users"></span><?php _e( 'Permissions', 'visualizer' ); ?></h2>
281281
<div class="group-header">
282282
<button class="customize-section-back" tabindex="0"></button>
283283
<h3 class="group-title main-group"><?php _e( 'Chart Settings', 'visualizer' ); ?></h3>

css/frame.css

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,7 @@ button#editor-chart-button {
809809
}
810810

811811
#vz-chart-settings h2:hover,
812+
#vz-chart-permissions h2:hover,
812813
.sidebar-footer-link h2:hover,
813814
#vz-chart-review a:hover {
814815
text-decoration: underline;
@@ -820,6 +821,7 @@ button#editor-chart-button {
820821
}
821822

822823
#vz-chart-settings h2,
824+
#vz-chart-permissions h2,
823825
.sidebar-footer-link h2,
824826
#vz-chart-review h2 {
825827
padding: 0;
@@ -838,10 +840,12 @@ button#editor-chart-button {
838840
text-align: right;
839841
}
840842

843+
841844
#vz-chart-settings.bottom-fixed h2 {
842845
padding-left: 6px;
843846
}
844847

848+
845849
#vz-chart-settings {
846850
bottom: 40px;
847851
left: 0;
@@ -851,6 +855,23 @@ button#editor-chart-button {
851855
text-align: left;
852856
}
853857

858+
#vz-chart-permissions:not(.open) h2{
859+
width: 100%;
860+
display: inline-block;
861+
margin: 0px;
862+
text-align: right;
863+
}
864+
#vz-chart-permissions{
865+
866+
bottom: 40px;
867+
right: 0;
868+
-webkit-box-sizing: border-box;
869+
box-sizing: border-box;
870+
width: 33%;
871+
text-align: left;
872+
}
873+
874+
#vz-chart-permissions h2,
854875
#vz-chart-settings h2,
855876
.sidebar-footer-link h2 {
856877
display: inline;
@@ -871,6 +892,7 @@ button#editor-chart-button {
871892

872893
.sidebar-footer-link > ul,
873894
#vz-chart-source > ul,
895+
#vz-chart-permissions > ul,
874896
#vz-chart-settings > ul {
875897
position: relative;
876898
z-index: 10;
@@ -887,16 +909,26 @@ button#editor-chart-button {
887909
background: #f3f3f3;
888910
}
889911

912+
913+
#vz-chart-permissions.open h2{
914+
915+
position: absolute;
916+
bottom: 28px;
917+
right: 6px;
918+
text-align: right;
919+
}
890920
#vz-chart-settings.open h2 {
891921
position: absolute;
892922
bottom: 28px;
893923
left: 20px;
894924
}
895925

896-
#vz-chart-settings.open .group-header {
926+
#vz-chart-permissions .group-header,
927+
#vz-chart-settings.open .group-header{
897928
display: block;
898929
}
899930

931+
#vz-chart-permissions .group-header,
900932
#vz-chart-settings .group-header {
901933
display: none;
902934
}
@@ -1031,7 +1063,11 @@ span.section-error {
10311063
color: #ce484c;
10321064
}
10331065
#vz-chart-permissions{
1034-
width: 30%;
1066+
width: 35%;
10351067
bottom: 40px;
10361068
right: 6px;
1069+
}
1070+
#permissions-form .only-pro-feature > ul{
1071+
position:relative;
1072+
text-align: center;
10371073
}

js/frame.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@
7575
});
7676

7777
function init_permissions(){
78-
$('#vz-chart-permissions a').click(function () {
78+
$('#vz-chart-permissions h2').click(function () {
7979
$("#vz-chart-source").hide();
80+
$("#vz-chart-permissions .group-header").show();
8081
$("#vz-chart-settings").removeClass('open').addClass('bottom-fixed');
8182

8283
$('#settings-button').click(function(e) {
@@ -91,6 +92,7 @@
9192
$('#vz-chart-permissions .customize-section-back').click(function () {
9293
$("#vz-chart-source").show();
9394

95+
$("#vz-chart-permissions .group-header").hide();
9496
$('#settings-button').click(function(e) {
9597
e.preventDefault();
9698
$('#settings-form').submit();

0 commit comments

Comments
 (0)