Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit 2871fd2

Browse files
Merge pull request #224 from abuansarpatowary/cc-footer-display-license
added css and media query for footer display license's alignment
2 parents 5acd5b5 + f70c111 commit 2871fd2

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

css/cc-footer-license.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.license-wrap {
2+
margin: 25px auto;
3+
max-width: calc(70vw - 4 * 25px);
4+
}
5+
6+
@media (max-width: 767px) {
7+
.license-wrap {
8+
max-width: 90vw;
9+
}
10+
}
11+
12+
@media (min-width: 992px) {
13+
.license-wrap {
14+
max-width: 75vw;
15+
}
16+
}
17+
18+
@media (min-width: 1300px) {
19+
.license-wrap {
20+
max-width: 65vw;
21+
}
22+
}

src/init.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,9 @@ function cc_block_cgb_block_assets() { // phpcs:ignore
8686

8787
// Hook: Block assets.
8888
add_action( 'init', 'cc_block_cgb_block_assets' );
89+
90+
// Register Footer License CSS
91+
function cc_footer_license() {
92+
wp_enqueue_style('cc-footer-license', plugins_url('./css/cc-footer-license.css', dirname(__FILE__)));
93+
}
94+
add_action('wp_enqueue_scripts', 'cc_footer_license');

0 commit comments

Comments
 (0)