From 11d3b2c10cbbd053a47d9dcfa63c72075f3c8e36 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 11 May 2022 12:47:18 -0500 Subject: [PATCH] Delete unused files --- app/icons/COPYING.md | 2 - app/icons/dashboard-filled.svg | 3 - app/icons/home-square.svg | 3 - app/styles/application.scss | 4 - app/styles/components/group-card.scss | 73 --------- app/styles/components/group-detail.scss | 84 ---------- app/styles/components/group-form.scss | 59 ------- .../components/group-sidebar-panel.scss | 33 ---- app/styles/introduction.scss | 151 ------------------ 9 files changed, 412 deletions(-) delete mode 100644 app/icons/dashboard-filled.svg delete mode 100644 app/icons/home-square.svg delete mode 100644 app/styles/components/group-card.scss delete mode 100644 app/styles/components/group-detail.scss delete mode 100644 app/styles/components/group-form.scss delete mode 100644 app/styles/components/group-sidebar-panel.scss delete mode 100644 app/styles/introduction.scss diff --git a/app/icons/COPYING.md b/app/icons/COPYING.md index bec84979f..3e909df4f 100644 --- a/app/icons/COPYING.md +++ b/app/icons/COPYING.md @@ -1,8 +1,6 @@ # Custom icons -- dashboard-filled.svg - Modified from Tabler icons, MIT - fediverse.svg - Modified from Wikipedia, CC0 -- home-squared.svg - Modified from Tabler icons, MIT - pen-plus.svg - Modified from Tabler icons, MIT - verified.svg - Created by Alex Gleason. CC0 diff --git a/app/icons/dashboard-filled.svg b/app/icons/dashboard-filled.svg deleted file mode 100644 index 69de13b00..000000000 --- a/app/icons/dashboard-filled.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/app/icons/home-square.svg b/app/icons/home-square.svg deleted file mode 100644 index dd4944597..000000000 --- a/app/icons/home-square.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/app/styles/application.scss b/app/styles/application.scss index 8c5a05553..dd59d8754 100644 --- a/app/styles/application.scss +++ b/app/styles/application.scss @@ -42,10 +42,6 @@ @import 'components/account-header'; @import 'components/user-panel'; @import 'components/compose-form'; -// @import 'components/group-card'; -// @import 'components/group-detail'; -// @import 'components/group-form'; -// @import 'components/group-sidebar-panel'; @import 'components/sidebar-menu'; @import 'components/hotkeys-modal'; @import 'components/emoji-reacts'; diff --git a/app/styles/components/group-card.scss b/app/styles/components/group-card.scss deleted file mode 100644 index 1d5ce8d58..000000000 --- a/app/styles/components/group-card.scss +++ /dev/null @@ -1,73 +0,0 @@ -.group-column-header { - @include standard-panel; - overflow: hidden; - - .group-column-header__title { - padding: 15px; - font-size: 20px; - font-weight: bold; - } - - .group-column-header__cta { - float: right; - padding: 15px; - font-size: 17px; - a { color: #fff; } - } -} - -.group-card-list { - display: flex; - flex-direction: row; - flex-wrap: wrap; - justify-content: space-between; - width: 100%; - margin-top: 20px; -} - -.group-card { - @include standard-panel; - display: block; - flex: 0 0 calc(50% - 20px / 2); - margin-bottom: 20px; - text-decoration: none; - overflow: hidden; - - .group-card__header { - overflow: hidden; - - img { - pointer-events: none; - width: 100%; - background: var(--foreground-color); - } - } - - .group-card__content { - padding: 15px; - - .group-card__title { - color: var(--primary-text-color); - font-size: 16px; - font-weight: bold; - } - - .group-card__meta { - color: var(--primary-text-color--faint); - font-size: 14px; - margin-top: 5px; - margin-bottom: 10px; - } - - .group-card__description { - color: var(--primary-text-color); - font-size: 14px; - } - } - - &:hover { - .group-card__title { - text-decoration: underline; - } - } -} diff --git a/app/styles/components/group-detail.scss b/app/styles/components/group-detail.scss deleted file mode 100644 index d7c24b530..000000000 --- a/app/styles/components/group-detail.scss +++ /dev/null @@ -1,84 +0,0 @@ -.group { - .group__header-container { - width: 100%; - display: flex; - justify-content: center; - flex-direction: row; - } - - .group__header { - width: 100%; - max-width: 1150px; - background: var(--foreground-color); - border-radius: 10px; - overflow: hidden; - margin: 20px 0; - - .group__cover { - img { - width: 100%; - } - } - - .group__tabs { - .group__tabs__tab { - display: inline-block; - text-decoration: none; - padding: 16px 22px; - text-align: center; - color: var(--primary-text-color); - - &:hover, - &--active { - border-bottom: 2px solid var(--primary-text-color); - } - } - - &::after { - content: ""; - clear: both; - display: table; - } - - button { - float: right; - margin: 7px; - } - - div { - float: right; - margin: 4px; - } - } - } - - .group__panel { - padding: 10px 10px 20px; - - h1 { - font-size: 22px; - font-weight: bold; - margin-bottom: 10px; - } - - .group__panel__description { - font-size: 14px; - } - - .group__panel__label { - display: inline-block; - margin-bottom: 10px; - border-radius: 4px; - background: var(--foreground-color); - font-size: 13px; - padding: 4px 8px; - } - } - - .group__feed { - background: var(--foreground-color); - border-top-left-radius: 10px; - border-top-right-radius: 10px; - overflow: hidden; - } -} diff --git a/app/styles/components/group-form.scss b/app/styles/components/group-form.scss deleted file mode 100644 index fb8b1a57e..000000000 --- a/app/styles/components/group-form.scss +++ /dev/null @@ -1,59 +0,0 @@ -.group-form { - @include standard-panel; - padding: 20px; - - &, - div { - box-sizing: border-box; - float: left; - width: 100%; - } - - input[type=text], - textarea { - &.standard { - width: 100%; - margin: 0 0 10px; - } - } - - textarea { - float: left; - height: 88px; - } - - .group-form__file-label { - @include font-size(12); - @include font-weight(light); - cursor: pointer; - display: block; - box-sizing: border-box; - float: left; - height: 20px; - padding: 3px 0 0 33px; - color: var(--primary-text-color--faint); - background-repeat: no-repeat; - background-image: url('../images/sprite-post-functions.png'); - background-size: 100px 1200px; - - &:hover { - color: var(--brand-color); - background-position: 0 -100px; - } - - &.group-form__file-label--selected { - background-position: 0 -100px; - color: var(--brand-color); - } - } - - .group-form__file { - width: 1px; - height: 1px; - overflow: hidden; - opacity: 0; - position: absolute; - pointer-events: none; - } - button { float: right; } -} diff --git a/app/styles/components/group-sidebar-panel.scss b/app/styles/components/group-sidebar-panel.scss deleted file mode 100644 index 44f760dbd..000000000 --- a/app/styles/components/group-sidebar-panel.scss +++ /dev/null @@ -1,33 +0,0 @@ -.group-sidebar-panel { - &__items { - padding: 0 15px 15px; - - &__show-all { - color: var(--primary-text-color); - } - } - - &__item { - display: block; - color: var(--primary-text-color); - text-decoration: none; - margin-bottom: 15px; - - &:last-child { - margin-bottom: 0; - } - - &__title { - font-weight: bold; - } - - &__meta { - font-size: 0.8em; - color: var(--primary-text-color--faint); - - &__unread { - color: var(--brand-color); - } - } - } -} diff --git a/app/styles/introduction.scss b/app/styles/introduction.scss deleted file mode 100644 index f8a81aec3..000000000 --- a/app/styles/introduction.scss +++ /dev/null @@ -1,151 +0,0 @@ -.introduction { - display: flex !important; - flex-direction: column !important; - justify-content: center !important; - align-items: center !important; - - @media screen and (max-width: 920px) { - background: var(--background-color); - display: block !important; - } - - &__pager { - background: var(--background-color); - box-shadow: 0 0 15px rgba($base-shadow-color, 0.2); - overflow: hidden; - } - - &__pager, - &__frame { - border-radius: 10px; - width: 50vw; - min-width: 920px; - - @media screen and (max-width: 920px) { - min-width: 0; - width: 100%; - border-radius: 0; - box-shadow: none; - } - } - - &__frame-wrapper { - opacity: 0; - transition: opacity 500ms linear; - - &.active { - opacity: 1; - transition: opacity 50ms linear; - } - } - - &__frame { - overflow: hidden; - } - - &__illustration { - height: 50vh; - - @media screen and (max-width: 630px) { - height: auto; - } - - img { - object-fit: cover; - display: block; - margin: 0; - width: 100%; - height: 100%; - } - } - - &__text { - &--columnized { - display: flex; - - & > div { - flex: 1 1 33.33%; - text-align: center; - padding: 25px; - padding-bottom: 30px; - } - - @media screen and (max-width: 630px) { - display: block; - padding: 15px 0; - padding-bottom: 20px; - - & > div { - padding: 10px 25px; - } - } - } - - h3 { - font-size: 24px; - line-height: 1.5; - font-weight: 700; - margin-bottom: 10px; - } - - p { - font-size: 16px; - line-height: 24px; - font-weight: 400; - color: var(--primary-text-color--faint); - - code { - display: inline-block; - background: var(--background-color); - font-size: 15px; - border: 1px solid var(--brand-color--med); - border-radius: 2px; - padding: 1px 3px; - } - } - - &--centered { - padding: 25px; - padding-bottom: 30px; - text-align: center; - } - } - - &__dots { - display: flex; - align-items: center; - justify-content: center; - padding: 25px; - - @media screen and (max-width: 630px) { - display: none; - } - } - - &__dot { - width: 14px; - height: 14px; - border-radius: 14px; - border: 1px solid var(--brand-color); - background: transparent; - margin: 0 3px; - cursor: pointer; - - &:hover { - background: var(--brand-color--med); - } - - &.active { - cursor: default; - background: var(--brand-color); - } - } - - &__action { - padding: 25px; - padding-top: 0; - display: flex; - align-items: center; - justify-content: center; - } -}