Skip to content
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

Fix size bug #51

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 21 additions & 8 deletions sentiment_rating_widget/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,22 @@ button:hover {
margin: auto;
}

/* Submit message */
.message {
/* Design the message */
text-align: center;
font-size: 24px;
margin-top: 20px;
font-family: Poppins, sans-serif;
color: #333333;
padding: 10px;
border-radius: 5px;
display: inline-block;
}

/* Rotate message */
#rotate-message {
/* Desgin rotate error message */
/* Design rotate message box */
position: fixed;
top: 50%;
left: 50%;
Expand All @@ -78,29 +91,29 @@ button:hover {
display: none;
}

/* Changes when using small phone screen */
/* Change when using small phone screen */
@media screen and (max-width: 550px) {
/* Shrink title */
/* Shrink header */
h1 {
font-size: 25px;
}
/* Emoji image size */
/* Keep buttons same relative size */
#buttons img {
width: 100%;
}
/* Shrink button size */
/* Shrink buttons */
#buttons button{
width: 40%;
}
}

/* User message when user turns phone landscape */
/* Change when using small phone screen in landscape postion */
@media screen and (orientation: landscape) and (max-height: 550px) {
/* Rotate message appear */
/* Show rotate message */
#rotate-message {
display: block;
}
/* Headers and buttons disappear */
/* Hide buttons */
#buttons,h1,h3 {
display:none;
}
Expand Down