added css and functions to make some acf fields read-only

This commit is contained in:
asus
2024-04-17 16:47:14 +02:00
parent 62dcaa7672
commit 3a1f0b07ee
7 changed files with 138 additions and 7 deletions

View File

@@ -0,0 +1,17 @@
.read_only_cipf {
.acf-input {
position: relative;
* {
cursor: default;
pointer-events: none;
}
> * {
color: #666;
background-color: #f0f0f1;
filter: grayscale(100%);
}
textarea {
pointer-events: auto;
}
}
}

View File

@@ -7,13 +7,14 @@
/*
* hide all acf fields with the class 'hide-for-fipf'
* hide all acf fields with the class 'hide_for_fipfrole_cipf'
* also hide the title if class 'hide_group_for_fipfrole_cipf'
*
*/
form#your-profile h2:has(+ .form-table .hide-group-for-fipf) {
form#your-profile h2:has(+ .form-table .hide_group_for_fipfrole_cipf) {
display: none;
}
form#your-profile .hide-for-fipf {
form#your-profile .hide_for_fipfrole_cipf {
display: none;
}