Welcome to Codidact Meta!
Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.
Post History
Update: This has been completed and looks like this: I'd suggest the following solution: If a question has answers (answered), we apply the classes h-bg-green-700 h-p-h-1 h-c-white to .answe...
Answer
#2: Post edited
- I'd suggest the following solution:
- * If a question has answers (answered), we apply the classes `h-bg-green-700 h-p-h-1 h-c-white` to `.answer-count` (causes a green box):
- * If it is unanswered, we apply the classes `h-c-red-800` (causes a red font color).
- It looks like this:
- 
- We can also reverse this:
- * If a question has answers (answered), we apply the classes `h-c-green-700` to `.answer-count` (causes a green font color):
- * If it is unanswered, we apply the classes `h-bg-red-800 h-p-h-1 h-c-white` (causes a red box).
- 
- **Update:** This has been completed and looks like this:
- 
- ---
- I'd suggest the following solution:
- * If a question has answers (answered), we apply the classes `h-bg-green-700 h-p-h-1 h-c-white` to `.answer-count` (causes a green box):
- * If it is unanswered, we apply the classes `h-c-red-800` (causes a red font color).
- It looks like this:
- 
- We can also reverse this:
- * If a question has answers (answered), we apply the classes `h-c-green-700` to `.answer-count` (causes a green font color):
- * If it is unanswered, we apply the classes `h-bg-red-800 h-p-h-1 h-c-white` (causes a red box).
- 
#1: Initial revision
I'd suggest the following solution: * If a question has answers (answered), we apply the classes `h-bg-green-700 h-p-h-1 h-c-white` to `.answer-count` (causes a green box): * If it is unanswered, we apply the classes `h-c-red-800` (causes a red font color). It looks like this:  We can also reverse this: * If a question has answers (answered), we apply the classes `h-c-green-700` to `.answer-count` (causes a green font color): * If it is unanswered, we apply the classes `h-bg-red-800 h-p-h-1 h-c-white` (causes a red box). 