Fix imports, deprecated SCSS code

This commit is contained in:
Ramon Wenger 2022-11-10 12:03:22 +01:00
parent b96c26ce4d
commit b0a7bd3497
39 changed files with 75 additions and 74 deletions

View File

@ -147,10 +147,10 @@
margin-top: $large-spacing; margin-top: $large-spacing;
} }
/deep/ ul { :deep(ul) {
@include list-parent; @include list-parent;
} }
/deep/ li { :deep(li) {
@include list-child; @include list-child;
} }

View File

@ -397,7 +397,7 @@
@include content-box-base; @include content-box-base;
} }
/deep/ p { :deep(p) {
line-height: 1.5; line-height: 1.5;
margin-bottom: 1em; margin-bottom: 1em;
@ -406,7 +406,7 @@
} }
} }
/deep/ .text-block { :deep(.text-block) {
ul { ul {
@include list-parent; @include list-parent;
} }

View File

@ -65,8 +65,8 @@
const AddContentElement = () => import(/* webpackChunkName: "content-forms" */'@/components/AddContentElement'); const AddContentElement = () => import(/* webpackChunkName: "content-forms" */'@/components/AddContentElement');
const ContentElement = () => import(/* webpackChunkName: "content-forms" */'@/components/content-block-form/ContentElement'); const ContentElement = () => import(/* webpackChunkName: "content-forms" */'@/components/content-block-form/ContentElement');
const Modal = () => import('@/components/Modal'); const Modal = () => import('@/components/Modal.vue');
const Checkbox = () => import('@/components/ui/Checkbox'); const Checkbox = () => import('@/components/ui/Checkbox.vue');
export default { export default {
props: { props: {

View File

@ -12,8 +12,7 @@
</template> </template>
<script> <script>
import ContentList from '@/components/content-blocks/ContentList.vue';
import ContentList from '@/components/content-blocks/ContentList';
export default { export default {
name: 'ContentBlockList', name: 'ContentBlockList',
props: ['contents', 'parent'], props: ['contents', 'parent'],
@ -21,7 +20,7 @@
components: { components: {
ContentList, ContentList,
// https://vuejs.org/v2/guide/components-edge-cases.html#Circular-References-Between-Components // https://vuejs.org/v2/guide/components-edge-cases.html#Circular-References-Between-Components
ContentBlock: () => import('@/components/ContentBlock') ContentBlock: () => import('@/components/ContentBlock.vue')
}, },
computed: { computed: {

View File

@ -86,12 +86,12 @@
font-size: toRem(18px); font-size: toRem(18px);
color: $color-silver-dark; color: $color-silver-dark;
/deep/ p { :deep(p) {
font-size: toRem(18px); font-size: toRem(18px);
color: $color-silver-dark; color: $color-silver-dark;
} }
/deep/ ul { :deep(ul) {
padding-left: $medium-spacing; padding-left: $medium-spacing;
> li { > li {

View File

@ -28,11 +28,11 @@
margin-bottom: calc(#{$large-spacing} - 0.25rem); // to offset the 1.5 line height, which leaves a padding margin-bottom: calc(#{$large-spacing} - 0.25rem); // to offset the 1.5 line height, which leaves a padding
@include regular-paragraph; @include regular-paragraph;
/deep/ ul { :deep(ul) {
@include list-parent; @include list-parent;
} }
/deep/ li { :deep(li) {
@include list-child; @include list-child;
} }
} }

View File

@ -277,11 +277,11 @@
} }
&__main-text { &__main-text {
/deep/ ul{ :deep(ul){
@include list-parent @include list-parent
} }
/deep/ li { :deep(li) {
@include list-child; @include list-child;
} }
} }

View File

@ -48,9 +48,9 @@
</template> </template>
<script> <script>
const SubmissionInput = () => import('@/components/content-blocks/assignment/SubmissionInput'); const SubmissionInput = () => import('@/components/content-blocks/assignment/SubmissionInput.vue');
const FinalSubmission = () => import('@/components/content-blocks/assignment/FinalSubmission'); const FinalSubmission = () => import('@/components/content-blocks/assignment/FinalSubmission.vue');
const FileUpload = () => import('@/components/ui/file-upload/FileUpload'); const FileUpload = () => import('@/components/ui/file-upload/FileUpload.vue');
export default { export default {

View File

@ -120,26 +120,26 @@
margin-bottom: $medium-spacing; margin-bottom: $medium-spacing;
} }
/deep/ &__editor { :deep(.tip-tap__editor) {
@include inputstyle; @include inputstyle;
flex-direction: column; flex-direction: column;
min-height: 150px; min-height: 150px;
} }
/deep/ ul { :deep(ul) {
padding-left: $medium-spacing; padding-left: $medium-spacing;
list-style: initial; list-style: initial;
} }
/deep/ li { :deep(li) {
@include inputfont; @include inputfont;
} }
/deep/ div { :deep(div) {
@include inputfont; @include inputfont;
} }
/deep/ p { :deep(p) {
@include inputfont; @include inputfont;
} }
} }

View File

@ -141,7 +141,7 @@
} }
&__intro { &__intro {
> /deep/ p { > :deep(p) {
margin-bottom: $large-spacing; margin-bottom: $large-spacing;
@include lead-paragraph; @include lead-paragraph;
@ -150,7 +150,7 @@
} }
} }
> /deep/ ul { > :deep(ul) {
@include list-parent; @include list-parent;
> li { > li {

View File

@ -7,7 +7,7 @@
</template> </template>
<script> <script>
import ProjectEntryForm from './ProjectEntryForm'; import ProjectEntryForm from './ProjectEntryForm.vue';
import {mapGetters} from 'vuex'; import {mapGetters} from 'vuex';

View File

@ -7,7 +7,7 @@
</template> </template>
<script> <script>
import ProjectEntryForm from './ProjectEntryForm'; import ProjectEntryForm from './ProjectEntryForm.vue';
import NEW_PROJECT_ENTRY_MUTATION from '@/graphql/gql/mutations/addProjectEntry.gql'; import NEW_PROJECT_ENTRY_MUTATION from '@/graphql/gql/mutations/addProjectEntry.gql';
import PROJECT_QUERY from '@/graphql/gql/queries/projectQuery.gql'; import PROJECT_QUERY from '@/graphql/gql/queries/projectQuery.gql';

View File

@ -28,8 +28,8 @@
</template> </template>
<script> <script>
const PortfolioIllustration = () => import(/* webpackChunkName: "illustrations" */'@/components/illustrations/PortfolioIllustration'); const PortfolioIllustration = () => import('@/components/illustrations/PortfolioIllustration.vue');
const CreateProjectButton = () => import('@/components/portfolio/CreateProjectButton'); const CreateProjectButton = () => import('@/components/portfolio/CreateProjectButton.vue');
export default { export default {
components: {CreateProjectButton, PortfolioIllustration}, components: {CreateProjectButton, PortfolioIllustration},
}; };

View File

@ -54,7 +54,7 @@
import ButtonWithIconAndText from '@/components/ui/ButtonWithIconAndText'; import ButtonWithIconAndText from '@/components/ui/ButtonWithIconAndText';
import {PROJECT_ENTRY_TEMPLATE} from '@/consts/strings.consts'; import {PROJECT_ENTRY_TEMPLATE} from '@/consts/strings.consts';
const FileUpload = () => import('@/components/ui/file-upload/FileUpload'); const FileUpload = () => import('@/components/ui/file-upload/FileUpload.vue');
export default { export default {
props: { props: {

View File

@ -62,7 +62,7 @@
width: 30px; width: 30px;
} }
/deep/ p { :deep(p) {
@include regular-text; @include regular-text;
} }
} }

View File

@ -19,10 +19,10 @@
</template> </template>
<script> <script>
import PopoverLink from '@/components/ui/PopoverLink'; import PopoverLink from '@/components/ui/PopoverLink.vue';
import MoreActions from '@/components/rooms/MoreActions'; import MoreActions from '@/components/rooms/MoreActions.vue';
import DELETE_ROOM_ENTRY_MUTATION from 'gql/mutations/rooms/deleteRoomEntry'; import DELETE_ROOM_ENTRY_MUTATION from 'gql/mutations/rooms/deleteRoomEntry.gql';
import ROOM_ENTRIES_QUERY from 'gql/queries/roomEntriesQuery'; import ROOM_ENTRIES_QUERY from 'gql/queries/roomEntriesQuery.gql';
import {UPDATE_ROOM_ENTRY_PAGE} from '@/router/room.names'; import {UPDATE_ROOM_ENTRY_PAGE} from '@/router/room.names';
import {removeAtIndex} from '@/graphql/immutable-operations'; import {removeAtIndex} from '@/graphql/immutable-operations';

View File

@ -27,7 +27,7 @@
display: flex; display: flex;
border-bottom: 1px solid $color-silver; border-bottom: 1px solid $color-silver;
padding: $small-spacing $medium-spacing; padding: $small-spacing $medium-spacing;
margin: -$medium-spacing; margin: (-$medium-spacing);
margin-bottom: $medium-spacing; margin-bottom: $medium-spacing;
&__emoji { &__emoji {

View File

@ -18,8 +18,8 @@
</template> </template>
<script> <script>
const SimpleFileUpload = () => import('@/components/ui/file-upload/SimpleFileUpload'); const SimpleFileUpload = () => import('@/components/ui/file-upload/SimpleFileUpload.vue');
const DocumentBlock = () => import(/* webpackChunkName: "content-components" */'@/components/content-blocks/DocumentBlock'); const DocumentBlock = () => import('@/components/content-blocks/DocumentBlock.vue');
export default { export default {
props: { props: {

View File

@ -9,11 +9,10 @@
</template> </template>
<script> <script>
const SimpleFileUploadHiddenInput = () => import('@/components/ui/file-upload/SimpleFileUploadHiddenInput.vue');
const SimpleFileUploadHiddenInput = () => import('@/components/ui/file-upload/SimpleFileUploadHiddenInput'); const SimpleFileUploadIcon = () => import('@/components/ui/file-upload/SimpleFileUploadIcon.vue');
const SimpleFileUploadIcon = () => import('@/components/ui/file-upload/SimpleFileUploadIcon'); const SimpleFileUploadIconAndText = () => import('@/components/ui/file-upload/SimpleFileUploadIconAndText.vue');
const SimpleFileUploadIconAndText = () => import('@/components/ui/file-upload/SimpleFileUploadIconAndText'); const DocumentIcon = () => import('@/components/icons/DocumentIcon.vue');
const DocumentIcon = () => import(/* webpackChunkName: "icons" */'@/components/icons/DocumentIcon');
export default { export default {
props: { props: {
@ -66,7 +65,7 @@
} }
} }
/deep/ .uploadcare--widget { :deep(.uploadcare--widget) {
display: none; display: none;
} }
</style> </style>

View File

@ -12,8 +12,8 @@
</template> </template>
<script> <script>
const SimpleFileUploadHiddenInput = () => import('@/components/ui/file-upload/SimpleFileUploadHiddenInput'); const SimpleFileUploadHiddenInput = () => import('@/components/ui/file-upload/SimpleFileUploadHiddenInput.vue');
const ButtonWithIconAndText = () => import('@/components/ui/ButtonWithIconAndText'); const ButtonWithIconAndText = () => import('@/components/ui/ButtonWithIconAndText.vue');
export default { export default {
props: ['value'], props: ['value'],
@ -54,7 +54,7 @@
} }
} }
/deep/ .uploadcare--widget { :deep(.uploadcare--widget) {
display: none; display: none;
} }
</style> </style>

View File

@ -1,4 +1,4 @@
import ME_QUERY from 'gql/queries/meQuery'; import ME_QUERY from 'gql/queries/meQuery.gql';
const addTeam = (store, team) => { const addTeam = (store, team) => {
const query = ME_QUERY; const query = ME_QUERY;

View File

@ -1,5 +1,5 @@
import ME_QUERY from '@/graphql/gql/queries/meQuery';
import log from 'loglevel'; import log from 'loglevel';
import ME_QUERY from '@/graphql/gql/queries/meQuery.gql';
export default { export default {
methods: { methods: {

View File

@ -1,4 +1,4 @@
import LOGOUT_MUTATION from '@/graphql/gql/mutations/logoutUser'; import LOGOUT_MUTATION from '@/graphql/gql/mutations/logoutUser.gql';
export default { export default {
methods: { methods: {

View File

@ -1,4 +1,4 @@
import MY_SCHOOL_CLASS_QUERY from '@/graphql/gql/queries/mySchoolClass'; import MY_SCHOOL_CLASS_QUERY from '@/graphql/gql/queries/mySchoolClass.gql';
export default { export default {
apollo: { apollo: {

View File

@ -65,7 +65,7 @@
line-height: $default-heading-line-height; line-height: $default-heading-line-height;
} }
& /deep/ { & :deep() {
& p { & p {
margin-bottom: $large-spacing; margin-bottom: $large-spacing;
} }

View File

@ -13,8 +13,8 @@
<script> <script>
import JOIN_CLASS_MUTATION from '@/graphql/gql/mutations/joinClass.gql'; import JOIN_CLASS_MUTATION from '@/graphql/gql/mutations/joinClass.gql';
import MY_SCHOOL_CLASS_QUERY from '@/graphql/gql/queries/mySchoolClass';
import log from 'loglevel'; import log from 'loglevel';
import MY_SCHOOL_CLASS_QUERY from '@/graphql/gql/queries/mySchoolClass.gql';
import addSchoolClass from '@/mixins/add-school-class'; import addSchoolClass from '@/mixins/add-school-class';
import logout from '@/mixins/logout'; import logout from '@/mixins/logout';

View File

@ -73,7 +73,7 @@
import me from '@/mixins/me'; import me from '@/mixins/me';
import logout from '@/mixins/logout'; import logout from '@/mixins/logout';
const ValidatedInput = () => import('@/components/validation/ValidatedInput'); const ValidatedInput = () => import('@/components/validation/ValidatedInput.vue');
export default { export default {
mixins: [me, logout], mixins: [me, logout],

View File

@ -48,7 +48,7 @@
import me from '@/mixins/me'; import me from '@/mixins/me';
import SYNC_VISIBILITY_MUTATION from '@/graphql/gql/mutations/syncModuleVisibility.gql'; import SYNC_VISIBILITY_MUTATION from '@/graphql/gql/mutations/syncModuleVisibility.gql';
import MODULE_DETAILS_QUERY from '@/graphql/gql/queries/modules/moduleDetailsQuery'; import MODULE_DETAILS_QUERY from '@/graphql/gql/queries/modules/moduleDetailsQuery.gql';
import {MODULE_PAGE} from '@/router/module.names'; import {MODULE_PAGE} from '@/router/module.names';
const EyeIcon = () => import(/* webpackChunkName: "icons" */'@/components/icons/EyeIcon'); const EyeIcon = () => import(/* webpackChunkName: "icons" */'@/components/icons/EyeIcon');

View File

@ -21,7 +21,7 @@
<script> <script>
import UPDATE_ONBOARDING_PROGRESS from '@/graphql/gql/mutations/updateOnboardingProgress.gql'; import UPDATE_ONBOARDING_PROGRESS from '@/graphql/gql/mutations/updateOnboardingProgress.gql';
import ME_QUERY from '@/graphql/gql/queries/meQuery'; import ME_QUERY from '@/graphql/gql/queries/meQuery.gql';
export default { export default {
computed: { computed: {

View File

@ -91,7 +91,7 @@
flex-direction: column; flex-direction: column;
@supports (display: grid) { @supports (display: grid) {
display: grid; display: grid;
align-content: start; align-content: flex-start;
justify-content: center; justify-content: center;
} }
align-items: center; align-items: center;

View File

@ -54,7 +54,7 @@
import STUDENT_SUBMISSIONS_QUERY from '@/graphql/gql/queries/studentSubmissionQuery.gql'; import STUDENT_SUBMISSIONS_QUERY from '@/graphql/gql/queries/studentSubmissionQuery.gql';
import UPDATE_FEEDBACK_MUTATION from '@/graphql/gql/mutations/updateFeedback.gql'; import UPDATE_FEEDBACK_MUTATION from '@/graphql/gql/mutations/updateFeedback.gql';
import UPDATE_FEEDBACK_WITH_TEXT_MUTATION from '@/graphql/gql/mutations/updateFeedbackWithText.gql'; import UPDATE_FEEDBACK_WITH_TEXT_MUTATION from '@/graphql/gql/mutations/updateFeedbackWithText.gql';
import SubmissionForm from '@/components/content-blocks/assignment/SubmissionForm'; import SubmissionForm from '@/components/content-blocks/assignment/SubmissionForm.vue';
import me from '@/mixins/me'; import me from '@/mixins/me';
import EmojiBar from '@/components/ui/EmojiBar'; import EmojiBar from '@/components/ui/EmojiBar';

View File

@ -23,13 +23,13 @@ const news = () => import(/* webpackChunkName: "news" */'@/pages/news');
const surveyPage = () => import(/* webpackChunkName: "survey" */'@/pages/survey'); const surveyPage = () => import(/* webpackChunkName: "survey" */'@/pages/survey');
const styleGuidePage = () => import('@/pages/styleguide'); const styleGuidePage = () => import('@/pages/styleguide.vue');
const joinClass = () => import('@/pages/joinClass'); const joinClass = () => import('@/pages/joinClass.vue');
const topic = () => import('@/pages/topic-page'); const topic = () => import('@/pages/topic-page.vue');
const p404 = () => import('@/pages/p404'); const p404 = () => import('@/pages/p404.vue');
const submission = () => import('@/pages/studentSubmission'); const submission = () => import('@/pages/studentSubmission.vue');
const postLoginRedirectUrlKey = 'postLoginRedirectionUrl'; const postLoginRedirectUrlKey = 'postLoginRedirectionUrl';

View File

@ -1,10 +1,10 @@
import {ONBOARDING_STEP_1, ONBOARDING_STEP_2, ONBOARDING_STEP_3} from '@/router/onboarding.names'; import {ONBOARDING_STEP_1, ONBOARDING_STEP_2, ONBOARDING_STEP_3} from '@/router/onboarding.names';
const onboarding = () => import(/* webpackChunkName: "onboarding" */'@/pages/onboarding'); const onboarding = () => import('@/pages/onboarding.vue');
const onboardingStart = () => import(/* webpackChunkName: "onboarding" */'@/pages/onboarding/start'); const onboardingStart = () => import('@/pages/onboarding/start.vue');
const onboardingStep1 = () => import(/* webpackChunkName: "onboarding" */'@/pages/onboarding/step1'); const onboardingStep1 = () => import(/* webpackChunkName: "onboarding" */'@/pages/onboarding/step1.vue');
const onboardingStep2 = () => import(/* webpackChunkName: "onboarding" */'@/pages/onboarding/step2'); const onboardingStep2 = () => import(/* webpackChunkName: "onboarding" */'@/pages/onboarding/step2.vue');
const onboardingStep3 = () => import(/* webpackChunkName: "onboarding" */'@/pages/onboarding/step3'); const onboardingStep3 = () => import(/* webpackChunkName: "onboarding" */'@/pages/onboarding/step3.vue');
export default [ export default [
{ {

View File

@ -42,7 +42,7 @@
grid-row-gap: 40px; grid-row-gap: 40px;
padding-bottom: 40px; padding-bottom: 40px;
/deep/ p { :deep(p) {
font-size: toRem(18px); font-size: toRem(18px);
line-height: 1.5; line-height: 1.5;
} }

View File

@ -1,5 +1,6 @@
@import "variables"; @import "variables";
@function toRem($px) { @function toRem($px) {
@return $px / $base-font-size-pixels * 1rem; //@return $px / $base-font-size-pixels * 1rem;
@return calc($px / $base-font-size-pixels * 1rem);
} }

View File

@ -66,7 +66,7 @@
align-items: start; align-items: start;
border-radius: $default-border-radius; border-radius: $default-border-radius;
/deep/ .button { :deep(.button) {
background-color: $color-white; background-color: $color-white;
} }
} }
@ -75,7 +75,7 @@
@include content-box-base; @include content-box-base;
background-color: nth($color-list, 2); background-color: nth($color-list, 2);
/deep/ .button { :deep(.button) {
border-color: nth($color-list, 1); border-color: nth($color-list, 1);
} }
} }

View File

@ -54,7 +54,7 @@
} }
&__content { &__content {
margin: 0 -$medium-spacing; margin: 0 (-$medium-spacing);
grid-area: c; grid-area: c;
padding: 50px 15px; padding: 50px 15px;
background-color: rgba($color-charcoal-dark, 0.18); background-color: rgba($color-charcoal-dark, 0.18);

View File

@ -136,12 +136,14 @@
} }
} }
$half-spacing: calc($small-spacing / 2);
thead { thead {
th { th {
text-align: left; text-align: left;
@include small-text; @include small-text;
vertical-align: bottom; vertical-align: bottom;
padding: $small-spacing/2 $small-spacing/2 $small-spacing/2 0; padding: $half-spacing $half-spacing $half-spacing 0;
> span { > span {
margin-right: $small-spacing; margin-right: $small-spacing;