Modify CSS placement.

This commit is contained in:
purple 2023-07-21 16:24:26 +02:00
parent f45879b8b8
commit 7f0d342af2
2 changed files with 5 additions and 7 deletions

View file

@ -111,9 +111,8 @@ if [[ $1 != "-bash" ]]; then
# Inject custom Blueprint css into Pterodactyl's admin panel.
log_bright "[INFO] updating admin css";
sed -i "s!@import url(/assets/extensions/blueprint/blueprint.style.css);!!g" /var/www/$FOLDER/public/themes/pterodactyl/css/pterodactyl.css;
echo "@import url(/assets/extensions/blueprint/blueprint.style.css);" >> /var/www/$FOLDER/public/themes/pterodactyl/css/pterodactyl.css
sed -i "s!@import url(/assets/extensions/blueprint/blueprint.style.css);\n/* admin.css */!!g" /var/www/$FOLDER/public/themes/pterodactyl/css/pterodactyl.css;
sed -i '1s/^/@import url(/assets/extensions/blueprint/blueprint.style.css);\n/* admin.css */\n/' /var/www/$FOLDER/public/themes/pterodactyl/css/pterodactyl.css;
# Clear view cache.
log_bright "[INFO] php artisan view:clear";
@ -348,7 +347,7 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then
if [[ $admin_css != "" ]]; then
sed -i "s~@import url(/assets/extensions/$identifier/$identifier.style.css);~~g" public/themes/pterodactyl/css/pterodactyl.css;
echo "@import url(/assets/extensions/$identifier/$identifier.style.css);" >> public/themes/pterodactyl/css/pterodactyl.css;
sed -i "s~/* admin.css */~/* admin.css */\n@import url(/assets/extensions/$identifier/$identifier.style.css);~g" public/themes/pterodactyl/css/pterodactyl.css;
cp .blueprint/tmp/$n/$css public/assets/extensions/$identifier/$identifier.style.css 2> /dev/null;
fi;

View file

@ -1,3 +1,5 @@
+@import url(/assets/extensions/blueprint/blueprint.style.css);
+/* admin.css */
/**
* Pterodactyl - Panel
* Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com>
@ -20,7 +22,4 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
@import 'checkbox.css';
+@import url(/assets/extensions/blueprint/blueprint.style.css);
+/* blueprint reserved line */
...