From 9e35fdfa188b6deb1d620aadc2b3f507f15ba711 Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Fri, 10 Jun 2022 18:47:44 -0500 Subject: [PATCH] UI: Add styles for tool list in course home --- assets/css/scss/index.scss | 2 + assets/css/scss/molecules/_course_tool.scss | 27 ++++ .../vue/components/course/CourseToolList.vue | 128 +++++++++--------- assets/vue/views/course/Home.vue | 2 +- tailwind.config.js | 3 + 5 files changed, 98 insertions(+), 64 deletions(-) create mode 100644 assets/css/scss/molecules/_course_tool.scss diff --git a/assets/css/scss/index.scss b/assets/css/scss/index.scss index f8d012bdc0..238bfc4f85 100755 --- a/assets/css/scss/index.scss +++ b/assets/css/scss/index.scss @@ -10,6 +10,8 @@ @import "atoms/buttons"; @import "atoms/messages"; +@import "molecules/course_tool"; + @import "components/badges"; @import "components/forms"; //@import 'announcement'; diff --git a/assets/css/scss/molecules/_course_tool.scss b/assets/css/scss/molecules/_course_tool.scss new file mode 100644 index 0000000000..fef11defa1 --- /dev/null +++ b/assets/css/scss/molecules/_course_tool.scss @@ -0,0 +1,27 @@ +.course-tool { + @apply flex flex-col gap-4 relative; + + &__link { + @apply border border-solid border-gray-30 rounded-lg flex place-items-center justify-center shadow-lg w-[7.5rem] h-[7.5rem]; + } + + &__icon { + @apply text-transparent bg-clip-text bg-gradient-to-br from-primary to-primary-gradient text-header; + + &::before { + } + } + + &__title { + @apply text-caption-bold text-center text-primary; + } + + &__options { + @apply absolute flex gap-2 p-2 right-0; + + & > a, + & > button { + @apply inline-block h-6 text-center w-6; + } + } +} diff --git a/assets/vue/components/course/CourseToolList.vue b/assets/vue/components/course/CourseToolList.vue index 2438ad04ff..03980929e8 100644 --- a/assets/vue/components/course/CourseToolList.vue +++ b/assets/vue/components/course/CourseToolList.vue @@ -1,81 +1,83 @@ - diff --git a/assets/vue/views/course/Home.vue b/assets/vue/views/course/Home.vue index ede52a6ce3..6f96dbc60c 100644 --- a/assets/vue/views/course/Home.vue +++ b/assets/vue/views/course/Home.vue @@ -128,7 +128,7 @@