Skip to content

Instantly share code, notes, and snippets.

@pixelbart
Created November 18, 2019 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pixelbart/fdf2d4d4be95d713a7a75b3a9722a00d to your computer and use it in GitHub Desktop.
Save pixelbart/fdf2d4d4be95d713a7a75b3a9722a00d to your computer and use it in GitHub Desktop.
WordPress Plugin Helpful Example CSS
/* Helpful */
.helpful {}
/* Helpful: Users has already voted */
.helpful.helpful-exists {}
/**
* Headline
*/
/* Headline: container */
.helpful > .helpful-header {}
/* Headline */
.helpful > .helpful-header > h3 {}
/**
* Content
*/
/* Content: container */
.helpful > .helpful-content {}
/* Content: links */
.helpful > .helpful-content > a {}
.helpful > .helpful-content > a:hover {}
/**
* Buttons & Controls
*/
/* Helpful: buttons container */
.helpful .helpful-controls {}
/* Helpful: single button container */
.helpful .helpful-controls > div {}
/* Helpful: buttons */
.helpful > .helpful-controls > div > .helpful-button {}
.helpful > .helpful-controls > div > .helpful-button:hover {}
/* Helpful: pro button */
.helpful > .helpful-controls > div > .helpful-button[data-value="pro"] {}
/* Helpful: contra button */
.helpful > .helpful-controls > div > .helpful-button[data-value="contra"] {}
/* Helpful: counter */
.helpful > .helpful-controls > div > .helpful-button > .helpful-counter {}
/**
* Credits
*/
/* Credits: container */
.helpful > .helpful-footer {}
/* Credits: links */
.helpful > .helpful-footer > a {}
/**
* Feedback
*/
/* Feedback: form */
.helpful > .helpful-content > .helpful-feedback-form {}
/* Feedback: required star */
.helpful > .helpful-content > .helpful-feedback-form req {}
/* Feedback: paragraph */
.helpful > .helpful-content > .helpful-feedback-form p {}
.helpful > .helpful-content > .helpful-feedback-form > p,
.helpful > .helpful-content > .helpful-feedback-form > .feedback-note > p,
.helpful > .helpful-content > .helpful-feedback-form > .group {}
/* Feedback: inputs, textareas and buttons */
.helpful > .helpful-content > .helpful-feedback-form textarea,
.helpful > .helpful-content > .helpful-feedback-form input[type="text"],
.helpful > .helpful-content > .helpful-feedback-form input[type="email"],
.helpful > .helpful-content > .helpful-feedback-form input[type="url"],
.helpful > .helpful-content > .helpful-feedback-form input[type="number"] {}
.helpful > .helpful-content > .helpful-feedback-form textarea {}
.helpful > .helpful-content > .helpful-feedback-form input[type="checkbox"],
.helpful > .helpful-content > .helpful-feedback-form input[type="radio"] {}
.helpful > .helpful-content > .helpful-feedback-form .helpful-button {}
.helpful > .helpful-content > .helpful-feedback-form .helpful-button:hover {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment