summaryrefslogtreecommitdiff
path: root/front/src/styles/styles.css
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-09-11 01:48:14 +0700
committerpolwex <polwex@sortug.com>2025-09-11 01:48:14 +0700
commitb1d68ac307ed87d63e83820cbdf843fff0fd9f7f (patch)
treed6a684a70a80509e68ff667b842aa4e4c091906f /front/src/styles/styles.css
init
Diffstat (limited to 'front/src/styles/styles.css')
-rw-r--r--front/src/styles/styles.css438
1 files changed, 438 insertions, 0 deletions
diff --git a/front/src/styles/styles.css b/front/src/styles/styles.css
new file mode 100644
index 0000000..c2b05d6
--- /dev/null
+++ b/front/src/styles/styles.css
@@ -0,0 +1,438 @@
+/* assets */
+/* fonts */
+@font-face {
+ font-family: "Inter";
+ src: url(/fonts/Inter/Inter-VariableFont_opsz,wght.ttf);
+ font-weight: 100 900;
+ font-style: normal;
+ font-display: swap;
+}
+
+@font-face {
+ font-family: "Inter";
+ src: url(/fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf);
+ font-weight: 100 900;
+ font-style: italic;
+ font-display: swap;
+}
+
+@font-face {
+ font-family: "Source Code Pro";
+ src: url(/fonts/Source_Code_Pro/SourceCodePro-VariableFont_wght.ttf);
+ font-weight: 100 900;
+ font-style: normal;
+ font-display: swap;
+}
+
+@font-face {
+ font-family: "Source Code Pro";
+ src: url(/fonts/Source_Code_Pro/SourceCodePro-Italic-VariableFont_wght.ttf);
+ font-weight: 100 900;
+ font-style: italic;
+ font-display: swap;
+}
+
+/* tailwindy */
+
+.grow {
+ flex-grow: 1;
+}
+
+button {
+ cursor: pointer;
+}
+
+code {
+ font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
+ monospace;
+}
+
+t .red {
+ background-color: rgb(200, 0, 0, 0.9);
+}
+
+.tc,
+.ct {
+ text-align: center;
+}
+
+.cb {
+ margin: auto;
+}
+
+.xc {
+ position: absolute;
+ left: 50%;
+ transform: translateX(-50%);
+}
+
+.hidden {
+ display: none;
+}
+
+.x-center {
+ margin: auto;
+ text-align: center;
+ display: block;
+}
+
+.flex {
+ display: flex;
+}
+
+.f1 {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.flex-align {
+ display: flex;
+ gap: 1rem;
+ align-items: center;
+}
+
+.noscroll {
+ overflow: hidden;
+}
+
+.scroll-y {
+ overflow-y: scroll;
+}
+
+.cp {
+ cursor: pointer;
+}
+
+.m0 {
+ margin: 0;
+}
+
+.mb {
+ margin: 0 0 1rem 0;
+}
+
+.mt {
+ margin-top: 1rem;
+}
+
+.mr {
+ margin-right: 0.5rem;
+}
+
+.s-50 {
+ width: 50px;
+}
+
+.s-100 {
+ width: 100px;
+}
+
+.border {
+ border: 1px solid var(--text-color);
+}
+
+/* styles */
+
+/* common */
+html {
+ box-sizing: border-box;
+ color: var(--text-color);
+ background-color: var(--background-color);
+}
+
+html,
+body,
+#root,
+#mobile-ui {
+ height: 100%;
+ width: 100vw;
+ overflow: hidden;
+ /* no scrolling!!!*/
+}
+
+*,
+*:before,
+*:after {
+ box-sizing: inherit;
+}
+
+body {
+ margin: 0;
+ font-family: 'Inter', -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;
+ background-color: var(--color-background);
+ color: var(--color-text);
+ line-height: 1.6;
+ transition: background-color var(--transition-normal), color var(--transition-normal);
+}
+
+/* Typography */
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ margin-bottom: var(--spacing-md);
+ font-weight: var(--font-semibold);
+ line-height: 1.2;
+ color: var(--color-text);
+}
+
+#root {
+ margin: 1rem 2rem;
+ height: 100%;
+ overflow-y: auto;
+ font-family: "Inter";
+
+
+ display: flex;
+
+ & #left-menu {
+ margin-right: 1rem;
+
+ #logo {
+ display: flex;
+ gap: 0.3rem;
+
+ & img {
+ width: 48px;
+ height: 48px;
+ }
+ }
+
+ & .opt {
+ cursor: pointer;
+ display: flex;
+ gap: 1rem;
+ margin: 1rem 0;
+
+ & img {
+ width: 24px;
+ height: 24px;
+ }
+ }
+ }
+
+ & main {
+ width: 726px;
+ margin: auto;
+ height: 100vh;
+
+ & #top-tabs {
+ display: flex;
+ gap: 2rem;
+ justify-content: center;
+
+ & div {
+ cursor: pointer;
+ }
+
+ & .active {
+ font-weight: 700;
+ border-bottom: 3px solid var(--color-text);
+ }
+ }
+
+ & #feed-proper {
+ margin-top: 1rem;
+ border: 1px solid grey;
+ border-radius: 0.75rem;
+
+ & #composer {
+ padding: 10px;
+ display: flex;
+ gap: 0.5rem;
+
+ & .sigil {
+ width: 48px;
+ height: 48px;
+
+ & img {
+ width: inherit;
+ }
+ }
+
+ & input {
+ background-color: transparent;
+ color: var(--color-text);
+ flex-grow: 1;
+ border: none;
+ outline: none;
+ }
+ }
+ }
+
+ & .trill-post,
+ & .twatter-post {
+ border-top: 1px solid grey;
+
+ & .left {
+ margin-right: 10px;
+ width: unset;
+
+ & .sigil {
+ width: 48px;
+ height: 48px;
+ }
+ }
+
+ & header {
+ align-items: center;
+ justify-content: left;
+
+ & .author {
+ flex: unset;
+ gap: 0;
+
+ & .name {
+ display: flex;
+ align-items: center;
+
+ & .p {
+ font-family: "Source Code Pro";
+ }
+ }
+ }
+
+ & .date {
+ color: grey;
+ }
+
+ }
+
+ & footer {
+ justify-content: left;
+ margin: unset;
+
+ & .icon {
+ margin: 0;
+ align-items: center;
+ gap: 0.2rem;
+ width: 64px;
+
+ & img {
+ height: 18px;
+ }
+
+ & .react-img {
+ height: 24px;
+ }
+
+ & .react-icon {
+ font-size: 20px;
+ }
+
+ & span {
+ margin-right: unset;
+ text-align: left;
+ font-size: 14px;
+ line-height: 1rem;
+ color: grey;
+ width: unset;
+ }
+ }
+
+ & .menu-icon {
+ margin-left: auto;
+ }
+ }
+ }
+
+
+ & .user-contact {
+ & .contact-cover {
+ margin-bottom: -40px;
+
+ & img {
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+ }
+ }
+
+ & .contact-name {
+ display: flex;
+ align-items: center;
+ gap: 0.5rem;
+ }
+
+ & .contact-username {
+ margin-top: 1rem;
+ font-family: "Source Code Pro";
+ font-weight: 400;
+ }
+
+ & button {
+ width: unset;
+ margin: unset;
+ height: unset;
+ }
+ }
+ }
+
+ & button {
+ font-size: 0.9rem;
+ font-weight: 700;
+ line-height: 1rem;
+ border: none;
+ border-radius: 2rem;
+ padding: 0.5rem 2rem;
+ }
+
+ & .sigil,
+ & .sigil svg {
+ border-radius: 0.5rem;
+ }
+}
+
+#big-button {
+ position: absolute;
+ right: 2rem;
+ bottom: 2rem;
+ font-size: 1.5rem;
+ font-weight: bold;
+ cursor: pointer;
+ text-align: center;
+ line-height: 3rem;
+ width: 3rem;
+ height: 3rem;
+ border-radius: 50%;
+ z-index: 100;
+}
+
+/* modal */
+#modal-background {
+ height: 100vh;
+ width: 100vw;
+ background-color: rgb(0, 0, 0, 0.9);
+ position: fixed;
+ top: 0;
+ left: 0;
+ z-index: 100;
+}
+
+#modal {
+ position: fixed;
+ top: 50%;
+ left: 50%;
+ width: 80%;
+ z-index: 101;
+ transform: translate(-50%, -50%);
+ background-color: var(--background-color);
+ padding: 1rem;
+ max-height: 80%;
+}
+
+.modal-buttons {
+ display: flex;
+ justify-content: space-around;
+}
+
+::-webkit-scrollbar {
+ display: none;
+} \ No newline at end of file