Created
November 15, 2023 21:07
-
-
Save Terieyenike/232782ae5e31a9abb37ef82a66f3aaa0 to your computer and use it in GitHub Desktop.
Style scss for the Note app
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
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@100;300;400;500;600'); | |
$primary-color: #551B76; | |
$text-primary-color: #23315A; | |
$text-secondary-color: #727A92; | |
$text-contrast-color: #FFF; | |
$success-color: #3A8D11; | |
$warn-color: #FF9800; | |
$button-border-radius: 4px; | |
body { | |
margin: 0; | |
font-family: Kanit; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
} | |
.app { | |
display: flex; | |
flex-direction: column; | |
max-width: 1200px; | |
height: 100vh; | |
min-height: 100vh; | |
margin: 0 auto; | |
.header { | |
display: flex; | |
padding: 12px; | |
align-items: center; | |
justify-content: space-between; | |
.nav { | |
display: flex; | |
gap: 8px; | |
} | |
} | |
.content { | |
flex: 1; | |
padding: 24px 12px; | |
border-top: 1px solid $text-secondary-color; | |
border-bottom: 1px solid $text-secondary-color; | |
color: $text-secondary-color; | |
h1 { | |
margin: 0; | |
font-size: 24px; | |
font-weight: 600; | |
color: $text-primary-color; | |
} | |
h5 { | |
margin: 0; | |
font-size: 16px; | |
font-weight: 400; | |
color: $text-primary-color; | |
} | |
.success { | |
color: $success-color; | |
} | |
.warn { | |
color: $warn-color; | |
text-align: center; | |
h1 { | |
font-size: 3rem; | |
margin-bottom: 1rem; | |
color: #333; | |
} | |
p { | |
font-size: 1.2rem; | |
margin-bottom: 2rem; | |
} | |
span { | |
color: #000 | |
} | |
img { | |
max-width: 100%; | |
height: auto; | |
object-fit: contain; | |
margin-top: 2rem; | |
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); | |
} | |
} | |
.profile { | |
div { | |
word-break: break-all; | |
padding-bottom: 4px; | |
} | |
} | |
} | |
.footer { | |
display: flex; | |
flex-direction: column; | |
// padding: 24px; | |
align-items: center; | |
justify-content: center; | |
color: $text-secondary-color; | |
} | |
} | |
button { | |
height: 38px; | |
padding: 0 20px; | |
color: $text-contrast-color; | |
border: none; | |
background-color: $primary-color; | |
border-radius: $button-border-radius; | |
font-family: Kanit; | |
font-size: 14px; | |
font-weight: 400; | |
line-height: 38px; | |
cursor: pointer; | |
} | |
/* | |
Status styles | |
*/ | |
.status { | |
position: absolute; | |
display: flex; | |
width: 100%; | |
height: 100%; | |
align-items: center; | |
justify-content: center; | |
.content { | |
font-size: 16px; | |
font-weight: 600; | |
color: $text-primary-color; | |
} | |
} | |
.notes-list { | |
display: grid; | |
grid-gap: 1rem; | |
grid-template-columns: repeat( | |
auto-fill, | |
minmax(250px, 1fr) | |
); | |
} | |
.note { | |
background-color: #fef68a; | |
border-radius: 10px; | |
padding: 1rem; | |
min-height: 170px; | |
display: flex; | |
flex-direction: column; | |
justify-content: space-between; | |
white-space: pre-wrap; | |
} | |
.note.new { | |
background-color: #67d7cc; | |
} | |
textarea { | |
border: none; | |
resize: none; | |
background-color: #67d7cc; | |
} | |
textarea:focus { | |
outline: none; | |
} | |
.note-footer { | |
display: flex; | |
align-items: center; | |
justify-content: space-between; | |
} | |
.save { | |
background-color: #e1e1e1; | |
border: none; | |
color: #000; | |
font-weight: 700; | |
border-radius: 15px; | |
} | |
.save:hover { | |
background-color: #ededed; | |
cursor: pointer; | |
} | |
.delete-icon { | |
cursor: pointer; | |
color: #FF3D5A; | |
} | |
.search { | |
display: flex; | |
align-items: center; | |
background-color: rgb(233, 233, 233); | |
border-radius: 10px; | |
padding: 5px; | |
margin-bottom: 1.5em; | |
} | |
.search input { | |
border: none; | |
background-color: rgb(233, 233, 233); | |
width: 100%; | |
} | |
.search input:focus { | |
outline: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment