@import url('https://fonts.googleapis.com/css?family=Sarabun:300,500,600&display=swap'); :root { --primary-background: #F9FAFB; --secondary-background: #E5E6ED; --text-high-emphasis: #171D33; --text-low-emphasis: #757F8C; } body { margin: 0; font-family: "Sarabun", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; min-height: 100vh; color: var(--text-medium-emphasis); } code { font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace; } img { max-width: 100%; object-fit: cover; } /* Text */ h1 { text-align: left; font-size: 2rem; margin-left: 1rem; } h2 { color: var(--text-low-emphasis); text-align: left; font-weight: 300; font-size: 1rem; } /* Main Layout */ [id="root"] { background: var(--secondary-background); min-height: 100vh; display: flex; align-items: center; justify-content: center; } .App { background: var(--primary-background); border-radius: 20px; margin: auto; box-shadow: 0.4em 0.4em 1rem rgba(0,0,0,0.05); height: 90vh; overflow: scroll; display: flex; flex-direction: column; width: 25rem; } /* Buttons */ button { background: transparent; border: none; cursor: pointer; padding: .5rem; border-radius: 15px; transition: background .2s ease; } button:hover { background: rgba(0,0,0,0.05); } button:active, button:focus { outline: none; } /* Icons */ .icon { height: 2rem; } .logo { height: 4rem; } /* Header */ header { display: flex; padding: .5rem; justify-content: space-between; align-items: center; } header button { margin: 0 .5rem; } /* Main */ main { padding: 0 2rem; flex-grow: 1; overflow: scroll; } /* Footer */ footer { display: flex; padding: .5rem; justify-content: space-evenly; box-shadow: 0px -4px 14px rgba(0, 0, 0, 0.06); background: #fff; } /* Upload field */ .upload-btn-wrapper { position: relative; overflow: hidden; display: inline-block; border-radius: 15px; transition: background .2s ease; } .upload-btn-wrapper:hover { background: rgba(0,0,0,0.05); } .upload-btn-wrapper input[type=file] { font-size: 100px; position: absolute; left: 0; top: 0; opacity: 0; cursor: pointer; } /* Textarea */ textarea { outline: none; width: 100%; margin: 1rem 0; border: none; border-bottom: 0.5px solid #A6AAB4; border-radius: 0; padding: .5rem; font-family: Sarabun; font-size: .8rem; line-height: 22px; letter-spacing: 0.2px; box-sizing: border-box; background: transparent; } /* Selected image */ .selected-image img { width: 100%; border-radius: 6px; } /* Filters */ .filter-container { padding: 1rem 0; display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: .5rem; } .filter-container > div { box-shadow: 0px 4px 26px rgba(0, 0, 0, 0.06); border-radius: 6px; position: relative; border-radius: 6px; overflow: hidden; cursor: pointer; min-height: 5rem; } .filter-container > div p { position: absolute; top: 0; width: 100%; background: rgba(0,0,0,0.5); color: #fff; margin: 0; padding: .25rem 0; font-size: .9rem; text-transform: capitalize; z-index: 9; } /* Post */ .post { margin-bottom: 4rem; } .post-user { display: flex; align-items: center; margin-bottom: .5rem; } .post-user img { height: 3rem; width: 3rem; border-radius: 50%; display: block; border: 2px solid #318431; } .post-user p { margin: 0; margin-left: 1rem; height: fit-content; font-size: 1.1rem; letter-spacing: 0.025rem; margin-bottom: .5em; } img:not([src]) { background: white; overflow: hidden; position: relative; } img:not([src]):after { content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 100%; background-image: url(/img/nodegirls.svg), linear-gradient(white, white); background-size: contain; } .post-content > div:first-child { margin-left: -2rem; margin-right: -2rem; } .post-info { text-align: left; } .post-info p { margin: 0; font-weight: 100; } .post-likes { display: flex; padding: 1rem 0; font-weight: 100; color: var(--text-low-emphasis); } .post-likes button, .post-likes p { margin: 0; padding: 0; } .post-likes button { margin-right: .75rem; display: block; } .post-likes img { height: 1.5rem; width: 1.5rem; } .post-likes img.not-liked { filter: grayscale(1); } /* Posts */ .posts { display: flex; flex-direction: column-reverse; }