Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
bari committed Aug 19, 2021
1 parent 3a0cac0 commit a5b0194
Show file tree
Hide file tree
Showing 49 changed files with 1,674 additions and 397 deletions.
11 changes: 11 additions & 0 deletions src/assets/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ body{
height: 100%;
}

.mobile{
@media screen and (min-width: 970px) {
display: none;
}
}
.pc{
@media screen and (max-width: 970px) {
display: none;
}
}

.container {
@media screen and (max-width: 970px) {
width: 100%;
Expand Down
24 changes: 18 additions & 6 deletions src/components/AdaptiveImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,14 @@ export default {
border-radius: 4px;
position: relative;
> img {
position: absolute;
left: 50%;
top: 50%;
transform: translateY(-50%) translateX(-50%);
transition: opacity 0.3s ease;
opacity: 1;
@media screen and (min-width: 970px) {
position: absolute;
left: 50%;
top: 50%;
transform: translateY(-50%) translateX(-50%);
transition: opacity 0.3s ease;
opacity: 1;
}
}
> img.img-horizontal {
Expand All @@ -115,9 +117,19 @@ export default {
> img.img-vertical {
height: 100%;
width: auto;
@media screen and (max-width: 970px) {
width: 100%;
height: auto;
}
}
> img.img-origin {
@media screen and (max-width: 970px) {
width: 100%;
max-height: unset;
max-width: unset;
height: 100%;
}
max-height: 100%;
max-width: 100%;
}
Expand Down
8 changes: 7 additions & 1 deletion src/components/ArtistGroupList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,15 @@ export default {
justify-content: space-between;
}
.card {
@media screen and (max-width: 970px) {
width: 40%;
margin: 0 5%;
border: 2px solid black;
border-radius: 8px;
}
width: 30%;
height: 364px;
box-shadow: 0px 0px 30px 0px #ddd;
box-shadow: 0 0 30px 0 #ddd;
display: flex;
flex-direction: column;
align-items: center;
Expand Down
3 changes: 3 additions & 0 deletions src/components/Dialog/Dialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ export default {
background: #ffffff;
box-shadow: 0px 5px 31px 0px rgba(135, 135, 135, 0.73);
padding: 10px 100px 66px;
@media screen and (max-width: 970px) {
padding: 10px;
}
}
::v-deep .el-dialog .el-dialog__header {
padding: 0;
Expand Down
3 changes: 3 additions & 0 deletions src/components/Input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ export default {
</script>
<style lang="scss" scoped>
input {
@media screen and (max-width: 970px) {
min-height: unset;
}
min-height: 45px;
height: 100%;
border: 2px solid #020202;
Expand Down
3 changes: 3 additions & 0 deletions src/components/Thumbnail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ export default {
}
.thumbnail.group {
.item {
@media screen and (max-width: 970px) {
margin-bottom: 40px;
}
margin-bottom: 115px;
}
}
Expand Down
40 changes: 38 additions & 2 deletions src/components/ThumbnailImgView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@
<span class="address">{{ item.item_hash }}</span>
</div>
<div class="price" v-if="!isAuction">
{{ item.price }} {{ item.currency_code.toUpperCase() }}
<span>{{ item.price }}</span> {{ item.currency_code.toUpperCase() }}
</div>
<div class="price" v-else>
Starting at {{ item.price }} {{ item.currency_code.toUpperCase() }}
Starting at <span>{{ item.price }}</span>
{{ item.currency_code.toUpperCase() }}
</div>
</div>
</template>
Expand Down Expand Up @@ -105,6 +106,9 @@ export default {
}
.thumbnail.group {
.item {
@media screen and (max-width: 970px) {
margin-bottom: 40px;
}
margin-bottom: 115px;
}
}
Expand All @@ -118,6 +122,10 @@ export default {
}
.img-container {
@media screen and (max-width: 970px) {
margin-bottom: 10px;
height: unset;
}
display: block;
width: 100%;
height: 270px;
Expand All @@ -135,6 +143,12 @@ export default {
background-color: rgba(134, 29, 57, 0.8);
}
.aution-label {
@media screen and (max-width: 970px) {
top: 10px !important;
left: 0 !important;
padding: 3px;
line-height: unset;
}
line-height: 35px;
position: absolute;
top: 15px;
Expand Down Expand Up @@ -183,6 +197,10 @@ export default {
}
.title {
@media screen and (max-width: 970px) {
font-size: 20px;
line-height: 20px;
}
text-transform: uppercase;
font-size: 22px;
font-weight: 600;
Expand All @@ -191,6 +209,12 @@ export default {
}
.desc,
.address-label {
@media screen and (max-width: 970px) {
margin-top: 10px;
font-size: 16px;
line-height: 16px;
min-height: unset;
}
font-size: 18px;
font-weight: 400;
text-align: left;
Expand All @@ -200,13 +224,25 @@ export default {
}
.address-label {
@media screen and (max-width: 970px) {
font-size: 16px;
line-height: 16px;
min-height: unset;
}
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
min-height: 35px;
}
.price {
span {
color: red;
}
@media screen and (max-width: 970px) {
font-size: 20px;
line-height: 20px;
}
font-size: 22px;
font-weight: 600;
text-align: left;
Expand Down
5 changes: 3 additions & 2 deletions src/components/Upload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ export default {
width: 360px;
.box-boder {
@media screen and (max-width: 970px) {
padding-bottom: 50%;
margin-bottom: -40%;
height: 200px;
width: 200px;
margin-right: unset;
}
width: 360px;
max-width: 100%;
Expand Down
2 changes: 2 additions & 0 deletions src/plugins/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
Tabs,
TabPane,
Radio,
Drawer,
} from "element-ui";
import lang from "element-ui/lib/locale/lang/en";
import locale from "element-ui/lib/locale";
Expand All @@ -22,5 +23,6 @@ export default {
vue.use(Radio);
vue.use(Tabs);
vue.use(TabPane);
vue.use(Drawer);
},
};
22 changes: 12 additions & 10 deletions src/views/Account/Collection.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
/** * Created by Lay Hunt on 2021-01-29 17:13:31. */
<template>
<div class="collection container">
<el-breadcrumb separator-class="el-icon-arrow-right">
<el-breadcrumb-item :to="{ path: '/account' }"
>Profile</el-breadcrumb-item
>
<el-breadcrumb-item>Collection</el-breadcrumb-item>
</el-breadcrumb>
<div class="pc">
<el-breadcrumb separator-class="el-icon-arrow-right">
<el-breadcrumb-item :to="{ path: '/account' }"
>Profile</el-breadcrumb-item
>
<el-breadcrumb-item>Collection</el-breadcrumb-item>
</el-breadcrumb>
</div>
<div class="title">Collection</div>
<Thumbnail v-loading="isLoading" :list="list" />
<div class="pagenation" v-if="hasPrev || hasNext">
Expand Down Expand Up @@ -97,14 +99,14 @@ export default {
text-align: left;
> .title {
@media screen and (max-width: 970px) {
font-size: 20px;
margin-bottom: 30px;
margin-top: 20px;
font-size: 24px;
margin-bottom: 10px;
margin-top: 10px;
}
font-family: "Broadway";
font-size: 38px;
font-weight: 400;
text-align: left;
text-align: center;
color: #020202;
letter-spacing: 2px;
text-transform: uppercase;
Expand Down
18 changes: 10 additions & 8 deletions src/views/Account/Followers.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
/** * Created by Lay Hunt on 2021-01-29 17:13:31. */
<template>
<div class="followers container">
<el-breadcrumb separator-class="el-icon-arrow-right">
<el-breadcrumb-item :to="{ path: '/account' }"
>Profile</el-breadcrumb-item
>
<el-breadcrumb-item>Followers</el-breadcrumb-item>
</el-breadcrumb>
<div class="pc">
<el-breadcrumb separator-class="el-icon-arrow-right">
<el-breadcrumb-item :to="{ path: '/account' }"
>Profile</el-breadcrumb-item
>
<el-breadcrumb-item>Followers</el-breadcrumb-item>
</el-breadcrumb>
</div>
<div class="title">Followers</div>
<div class="list" v-loading="isLoading">
<div class="no-data" v-if="list.length == 0">No Artwork</div>
Expand Down Expand Up @@ -162,14 +164,14 @@ export default {
text-align: left;
> .title {
@media screen and (max-width: 970px) {
font-size: 20px;
font-size: 24px;
margin-bottom: 30px;
margin-top: 20px;
}
font-family: "Broadway";
font-size: 38px;
font-weight: 400;
text-align: left;
text-align: center;
color: #020202;
letter-spacing: 2px;
text-transform: uppercase;
Expand Down
22 changes: 12 additions & 10 deletions src/views/Account/Following.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
/** * Created by Lay Hunt on 2021-01-29 17:13:31. */
<template>
<div class="following container">
<el-breadcrumb separator-class="el-icon-arrow-right">
<el-breadcrumb-item :to="{ path: '/account' }"
>Profile</el-breadcrumb-item
>
<el-breadcrumb-item>Following</el-breadcrumb-item>
</el-breadcrumb>
<div class="pc">
<el-breadcrumb separator-class="el-icon-arrow-right">
<el-breadcrumb-item :to="{ path: '/account' }"
>Profile</el-breadcrumb-item
>
<el-breadcrumb-item>Following</el-breadcrumb-item>
</el-breadcrumb>
</div>
<div class="title">Following</div>
<div class="list" v-loading="isLoading">
<div class="no-data" v-if="list.length == 0">No Artwork</div>
Expand Down Expand Up @@ -162,14 +164,14 @@ export default {
text-align: left;
> .title {
@media screen and (max-width: 970px) {
font-size: 20px;
margin-bottom: 30px;
margin-top: 20px;
font-size: 24px;
margin-bottom: 10px;
margin-top: 10px;
}
font-family: "Broadway";
font-size: 38px;
font-weight: 400;
text-align: left;
text-align: center;
color: #020202;
letter-spacing: 2px;
text-transform: uppercase;
Expand Down
Loading

0 comments on commit a5b0194

Please sign in to comment.