| 1 |
/* Ukrywanie pola tekstowego domyślnie */ |
| 2 |
#admin_login_field { |
| 3 |
display: none; |
| 4 |
/* Usunięto margin-left */ |
| 5 |
} |
| 6 |
|
| 7 |
/* Suwak stylowania */ |
| 8 |
.switch { |
| 9 |
position: relative; |
| 10 |
display: inline-block; |
| 11 |
width: 60px; |
| 12 |
height: 34px; |
| 13 |
} |
| 14 |
|
| 15 |
.switch input { |
| 16 |
opacity: 0; |
| 17 |
width: 0; |
| 18 |
height: 0; |
| 19 |
} |
| 20 |
|
| 21 |
.slider { |
| 22 |
position: absolute; |
| 23 |
cursor: pointer; |
| 24 |
top: 0; |
| 25 |
left: 0; |
| 26 |
right: 0; |
| 27 |
bottom: 0; |
| 28 |
background-color: gray; |
| 29 |
transition: background-color 0.4s, transform 0.4s; |
| 30 |
border-radius: 15px; |
| 31 |
} |
| 32 |
|
| 33 |
.slider:before { |
| 34 |
position: absolute; |
| 35 |
content: ""; |
| 36 |
height: 26px; |
| 37 |
width: 26px; |
| 38 |
left: 4px; |
| 39 |
bottom: 4px; |
| 40 |
background-color: white; |
| 41 |
transition: transform 0.4s; |
| 42 |
border-radius: 50%; |
| 43 |
} |
| 44 |
|
| 45 |
input:checked + .slider { |
| 46 |
background-color: #E6DB00; |
| 47 |
} |
| 48 |
|
| 49 |
input:checked + .slider:before { |
| 50 |
transform: translateX(26px); |
| 51 |
} |
| 52 |
|
| 53 |
/* Tooltip stylizacja */ |
| 54 |
.tooltip { |
| 55 |
display: none; |
| 56 |
background-color: #E6DB00; |
| 57 |
color: black; |
| 58 |
padding: 5px; |
| 59 |
border-radius: 5px; |
| 60 |
position: absolute; |
| 61 |
z-index: 10; |
| 62 |
font-size: 12px; |
| 63 |
width: 250px; |
| 64 |
left: 70px; |
| 65 |
top: 5px; |
| 66 |
font-weight: bold; |
| 67 |
} |
| 68 |
|
| 69 |
/* Tooltip pojawia się przy najechaniu na suwak */ |
| 70 |
.switch:hover + .tooltip { |
| 71 |
display: block; |
| 72 |
} |
| 73 |
|
| 74 |
/* Kontenery dla suwaka i pól tekstowych */ |
| 75 |
.change-url-container, |
| 76 |
.disable-admin-container { |
| 77 |
display: flex; |
| 78 |
align-items: center; |
| 79 |
gap: 10px; /* Odstęp między przeł� |
| 80 |
cznikiem a polem tekstowym */ |
| 81 |
position: relative; /* Kluczowe dla pozycjonowania tooltipa */ |
| 82 |
} |
| 83 |
|
| 84 |
/* Ustawienie stałej szerokości dla pól tekstowych w kontenerach */ |
| 85 |
.change-url-container input[type="text"], |
| 86 |
.disable-admin-container input[type="text"] { |
| 87 |
width: 250px; |
| 88 |
} |
| 89 |
|
| 90 |
/* Pozycjonowanie tooltipów w tabelach */ |
| 91 |
td label.switch { |
| 92 |
position: relative; |
| 93 |
} |
| 94 |
|
| 95 |
td label.switch + .tooltip { |
| 96 |
left: 70px; |
| 97 |
top: 5px; |
| 98 |
} |
| 99 |
|
| 100 |
/* Sekcja ustawień wtyczki – kontener */ |
| 101 |
#netsensai-shield-plugin { |
| 102 |
background-color: #333333; |
| 103 |
padding: 20px; |
| 104 |
border-radius: 8px; |
| 105 |
} |
| 106 |
|
| 107 |
/* Nagłówek sekcji ustawień */ |
| 108 |
#netsensai-shield-plugin h2 { |
| 109 |
color: #E6DB00; |
| 110 |
font-size: 26px; |
| 111 |
margin-bottom: 40px; |
| 112 |
} |
| 113 |
|
| 114 |
/* Nagłówki poziomów bezpieczeństwa */ |
| 115 |
#netsensai-shield-plugin .level-header { |
| 116 |
font-size: 18px; |
| 117 |
font-weight: bold; |
| 118 |
color: #000; |
| 119 |
background-color: #E6DB00; |
| 120 |
padding: 10px; |
| 121 |
border-radius: 5px; |
| 122 |
margin-bottom: 15px; |
| 123 |
} |
| 124 |
|
| 125 |
/* Stylizacja tabeli – nagłówki i komórki */ |
| 126 |
#netsensai-shield-plugin .form-table th { |
| 127 |
color: #ffffff; |
| 128 |
font-size: 16px; |
| 129 |
} |
| 130 |
|
| 131 |
#netsensai-shield-plugin .form-table td { |
| 132 |
color: #ffffff; |
| 133 |
font-size: 14px; |
| 134 |
} |
| 135 |
|
| 136 |
/* Stała odległość między suwakiem a polem tekstowym */ |
| 137 |
.change-url-container label.switch, |
| 138 |
.disable-admin-container label.switch { |
| 139 |
margin-right: 20px; |
| 140 |
} |
| 141 |
|
| 142 |
/* Stylizacja przycisku "Zapisz zmiany" */ |
| 143 |
#netsensai-shield-plugin #submit.button.button-primary { |
| 144 |
background-color: #E6DB00; |
| 145 |
border-color: #E6DB00; |
| 146 |
color: black; |
| 147 |
font-size: 14px; |
| 148 |
font-weight: bold; |
| 149 |
padding: 10px 16px; |
| 150 |
border-radius: 5px; |
| 151 |
transition: background-color 0.3s ease; |
| 152 |
} |
| 153 |
|
| 154 |
#netsensai-shield-plugin #submit.button.button-primary:hover { |
| 155 |
background-color: #c4b200; |
| 156 |
border-color: #c4b200; |
| 157 |
color: black; |
| 158 |
} |
| 159 |
|
| 160 |
/* Keep the settings actions together inside the plugin panel. */ |
| 161 |
#netsensai-shield-plugin .ns-shield-settings-actions { |
| 162 |
display: flex; |
| 163 |
align-items: center; |
| 164 |
justify-content: space-between; |
| 165 |
gap: 16px; |
| 166 |
width: 100%; |
| 167 |
margin-top: 16px; |
| 168 |
} |
| 169 |
|
| 170 |
#netsensai-shield-plugin .ns-shield-settings-actions #submit, |
| 171 |
#netsensai-shield-plugin .ns-shield-settings-actions #ns-shield-current-access-guide .button { |
| 172 |
box-sizing: border-box; |
| 173 |
min-height: 40px; |
| 174 |
padding: 10px 16px; |
| 175 |
border: 1px solid #e6db00; |
| 176 |
border-radius: 5px; |
| 177 |
background: #e6db00; |
| 178 |
color: #081a33; |
| 179 |
font-weight: 700; |
| 180 |
line-height: 18px; |
| 181 |
} |
| 182 |
|
| 183 |
#netsensai-shield-plugin .ns-shield-settings-actions #ns-shield-current-access-guide .button:hover, |
| 184 |
#netsensai-shield-plugin .ns-shield-settings-actions #ns-shield-current-access-guide .button:focus { |
| 185 |
border-color: #fff36a; |
| 186 |
background: #fff36a; |
| 187 |
color: #081a33; |
| 188 |
} |
| 189 |
|
| 190 |
#netsensai-shield-plugin .ns-shield-settings-actions #submit:focus, |
| 191 |
#netsensai-shield-plugin .ns-shield-settings-actions #ns-shield-current-access-guide .button:focus { |
| 192 |
outline: 2px solid #081a33; |
| 193 |
outline-offset: 2px; |
| 194 |
} |
| 195 |
|
| 196 |
@media screen and (max-width: 782px) { |
| 197 |
#netsensai-shield-plugin .ns-shield-settings-actions { |
| 198 |
flex-wrap: wrap; |
| 199 |
} |
| 200 |
} |
| 201 |
/* Klasy dla popupu */ |
| 202 |
.ns-popup-logo-container { |
| 203 |
text-align: center; |
| 204 |
margin-bottom: 5px; /* Zmniejszony odstęp między logo a tekstem */ |
| 205 |
} |
| 206 |
|
| 207 |
.ns-popup-logo { |
| 208 |
max-width: 150px; |
| 209 |
display: block; |
| 210 |
margin: 0 auto 5px; /* Zmniejszony margines dolny */ |
| 211 |
} |
| 212 |
|
| 213 |
.ns-popup-text { |
| 214 |
color: #000; |
| 215 |
font-size: 1.5em; /* Powiększony rozmiar czcionki */ |
| 216 |
line-height: 1.5; |
| 217 |
text-align: center; |
| 218 |
} |
| 219 |
|
| 220 |
.ns-popup-text p { |
| 221 |
margin-bottom: 5px; |
| 222 |
} |
| 223 |
|
| 224 |
.ns-popup-button-container { |
| 225 |
text-align: center; |
| 226 |
margin-top: 10px; |
| 227 |
} |
| 228 |
|
| 229 |
.ns-modal-ok-button { |
| 230 |
background-color: #E6DB00; |
| 231 |
border: none; |
| 232 |
color: #000; |
| 233 |
font-size: 1.2em; |
| 234 |
padding: 10px 20px; |
| 235 |
border-radius: 5px; |
| 236 |
cursor: pointer; |
| 237 |
transition: background-color 0.3s; |
| 238 |
} |
| 239 |
|
| 240 |
.ns-modal-ok-button:hover { |
| 241 |
background-color: #c4b200; |
| 242 |
} |
| 243 |
|