diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2021-04-06 10:01:08 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2021-04-06 10:01:08 +0200 |
commit | 5737dbe8e58d81ba15cdd228463d70f47fddf1fd (patch) | |
tree | 78de6066e8845658d5bbb89b169e3ee16cbb8d25 | |
parent | 870b37653ccc4f03edb4821f246a2b32333ae99e (diff) | |
download | gigologadmin-5737dbe8e58d81ba15cdd228463d70f47fddf1fd.tar.gz gigologadmin-5737dbe8e58d81ba15cdd228463d70f47fddf1fd.tar.bz2 gigologadmin-5737dbe8e58d81ba15cdd228463d70f47fddf1fd.zip |
Move image assets locally.
One problem here is that the path to the assets are hard coded into the
CSS file. This is not ideal. Not sure if the wp_enque_style supports
loading styles with embedded php. Will explore further.
-rw-r--r-- | assets/images/checkedbox.png | bin | 0 -> 6656 bytes | |||
-rw-r--r-- | assets/images/redicon.png | bin | 0 -> 28599 bytes | |||
-rw-r--r-- | includes/css/main.css | 23 |
3 files changed, 12 insertions, 11 deletions
diff --git a/assets/images/checkedbox.png b/assets/images/checkedbox.png Binary files differnew file mode 100644 index 0000000..7de92a0 --- /dev/null +++ b/assets/images/checkedbox.png diff --git a/assets/images/redicon.png b/assets/images/redicon.png Binary files differnew file mode 100644 index 0000000..6366d17 --- /dev/null +++ b/assets/images/redicon.png diff --git a/includes/css/main.css b/includes/css/main.css index 5df024a..c88de60 100644 --- a/includes/css/main.css +++ b/includes/css/main.css @@ -3,7 +3,7 @@ div.takenby { padding: 20px; display: none; } - + span.takenby:hover + div.takenby { display: block; } @@ -14,15 +14,16 @@ span.takenby } .assignit input -{ - background:red; +{ + background:red; font-size: small; padding: none; - background: url('http://andreutza.biz/wordpress/wp-content/uploads/2021/01/checkedbox.png') no-repeat; - background-size: 20px 20px; + background: url('/wp-content/plugins/giglogadmin/assets/images/checkedbox.png') no-repeat; + background-size: 20px 20px; vertical-align: center; } -.assignit + +.assignit { padding: none !important; font-size: small; @@ -30,12 +31,12 @@ span.takenby } .unassignit input -{ - background:red; +{ + background:red; font-size: small; padding: none; - background: url('http://andreutza.biz/wordpress/wp-content/uploads/2021/01/redicon.png') no-repeat; - background-size: 20px 20px; + background: url('/wp-content/plugins/giglogadmin/assets/images/redicon.png') no-repeat; + background-size: 20px 20px; vertical-align: center; } .adminbuttons form @@ -52,4 +53,4 @@ span.takenby { padding: unset; width: 80px; -}
\ No newline at end of file +} |