-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Styling box #56
Merged
Merged
Styling box #56
Changes from 5 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
74027e9
Fixed boxes styling in admin dashboard DA
zeinshhadi 7ba67f5
Fixed formatting in new file added
zeinshhadi 2d8264d
Removed unnecessary css line
zeinshhadi 67e2544
Requiring review from 'zeinshhadi' ci bypass
otto-bot-git 599ef1a
Requiring review from 'Majed-Habli' ci bypass
otto-bot-git 3b09d88
Added the changes to admin.css
zeinshhadi 77fb870
Merge branch 'styling-box' of https://github.com/nsquared-team/draw-a…
zeinshhadi 1a28831
Removed css file created
zeinshhadi 9b0cd78
Ignore codekit config file
NatalieMac 03e0d8c
Re-compile Sass
NatalieMac File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#moreinfo_metabox .cmb-field-list .cmb-row { | ||
width: 50%; | ||
} | ||
|
||
#moreinfo_metabox .cmb-field-list .cmb-row:last-child { | ||
width: 100%; | ||
} | ||
|
||
@media screen and (max-width: 992px) { | ||
#moreinfo_metabox .cmb-field-list { | ||
flex-direction: column; | ||
} | ||
|
||
#moreinfo_metabox .cmb-field-list .cmb-row { | ||
width: 100%; | ||
} | ||
} |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the public-facing code for the front end of the website. The admin code is in admin/class-drawattention-admin.php. You'll see the other 'admin_enqueue_scripts' hooks in that file. We would also want to include the plugin slug prepended to the name of the style. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than being a standalone CSS file, this should be in admin/assets/css/admin.css with the other CSS that applies to the admin UI. But, as I was the only frontend dev on this plugin for nearly 10 years, I have a weird sass compiler in use that you don't have access to. If you want to add your code to admin/assets/sass/admin.scss, I can compile it before this PR merges in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@NatalieMac I will add my code to admin/assets/sass/admin.scss.
Just to make sure, should I remove the add_action hook and the function used to enqueue a stylesheet I added before ?