-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from AbigailDawson/seannamercedes
refactored DemoStudyText and DemoTranslateText from css to scss files
- Loading branch information
Showing
22 changed files
with
785 additions
and
319 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
29 changes: 0 additions & 29 deletions
29
client/src/DemoPage/DemoMainContent/DemoStudyText/DemoStudyText.css
This file was deleted.
Oops, something went wrong.
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
31 changes: 31 additions & 0 deletions
31
client/src/DemoPage/DemoMainContent/DemoStudyText/DemoStudyText.scss
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,31 @@ | ||
.StudyText { | ||
display: flex; | ||
flex-direction: column; | ||
position: relative; | ||
gap: 2rem; | ||
margin: 0 3vmin 0 3vmin; | ||
padding: 4vmin 2vmin; | ||
color: var(--drk-txt); | ||
max-width: 900px; | ||
|
||
&__block { | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: wrap; | ||
align-items: flex-start; | ||
padding-top: 4vmin; | ||
} | ||
|
||
} | ||
|
||
/* small screens and smaller */ | ||
@media (max-width: 550px) { | ||
.TranslateText { | ||
padding: 4vmin 0 0 5.5vmin; | ||
} | ||
|
||
.study-text-block { | ||
margin-left: 20px; | ||
} | ||
} | ||
|
111 changes: 0 additions & 111 deletions
111
client/src/DemoPage/DemoMainContent/DemoStudyText/components/DemoPopup/DemoPopup.css
This file was deleted.
Oops, something went wrong.
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
107 changes: 107 additions & 0 deletions
107
client/src/DemoPage/DemoMainContent/DemoStudyText/components/DemoPopup/DemoPopup.scss
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,107 @@ | ||
.save-word-popup { | ||
position: absolute; | ||
background-color: #effffc; | ||
border: 1px solid #bed3d1; | ||
border-radius: 1vmin; | ||
padding: 1.75vmin 1.5vmin 0 1.5vmin; | ||
left: 50%; | ||
top: 50%; | ||
margin-left: -100px; | ||
margin-top: -30px; | ||
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); | ||
min-width: 200px; | ||
overflow: visible; | ||
z-index: 1; | ||
|
||
&__content { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
justify-content: center; | ||
bottom: 0; | ||
} | ||
|
||
&__arrow { | ||
position: absolute; | ||
bottom: 0; | ||
left: 20%; | ||
margin-bottom: -5px; | ||
margin-left: -10px; | ||
background-color: #effffc; | ||
transform: rotate(45deg); | ||
height: 15px; | ||
width: 15px; | ||
z-index: -1; | ||
box-shadow: 2px 2px 2px 0 rgba(178, 178, 178, 0.4); | ||
} | ||
|
||
&__glyphs { | ||
font-size: 2rem; | ||
color: black; | ||
font-weight: bold; | ||
} | ||
|
||
&__pinyin, | ||
.popup-meaning { | ||
font-size: 0.9rem; | ||
color: var(--drk-txt); | ||
margin: 0.5vmin 0; | ||
} | ||
|
||
&__close-btn { | ||
font-size: 24px; | ||
background: none; | ||
border: none; | ||
cursor: pointer; | ||
position: absolute; | ||
top: -8px; | ||
right: 2px; | ||
color: hsl(174, 19%, 69%); | ||
} | ||
|
||
&__save-button { | ||
background-color: #58bdaa; | ||
cursor: pointer; | ||
position: absolute; | ||
width: 24px; | ||
height: 24px; | ||
font-size: 20px; | ||
border-radius: 50%; | ||
bottom: 10px; | ||
right: 10px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
color: white; | ||
|
||
&--saved { | ||
background-color: inherit !important; | ||
color: #62bfaf; | ||
position: absolute; | ||
right: 10px; | ||
} | ||
} | ||
|
||
&:disabled { | ||
/* opacity: 50%; */ | ||
cursor: auto; | ||
} | ||
|
||
@media (max-width: 768px) { | ||
&__glyphs { | ||
font-size: 1.7rem; | ||
} | ||
} | ||
|
||
@media (max-width: 550px) { | ||
&__glyphs { | ||
font-size: 1.5rem; | ||
} | ||
|
||
&__pinyin, | ||
&__meaning { | ||
font-size: 0.8rem; | ||
} | ||
} | ||
} | ||
|
Oops, something went wrong.