A fake auction house I made for a school project.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

348 lines
6.1 KiB

@import "fonts"
$font_stack: "Space Mono", monospace
$border_radius: .4rem
$border_size: 1px
$bg_clr: #ffffff
$bg_alt_clr: #f7f7f8
$bg_dark_clr: #f0f0f1
$fg_clr: #191927
$fg_alt_clr: #fff
$fg_error: #f77
$shadow_clr: $bg_dark_clr
$border_clr: $bg_alt_clr
$green_clr: #5cb85c
$red_clr: #de2a1d
$gray_clr: #888
$special_clr: #4776C1
\:root
display: border-box
margin: 0
padding: 0
font-family: $font_stack
font-size: 16px
color: $fg_clr
word-wrap: break-word
*
margin: 0
html
background-color: $bg_clr
.content-container
display: flex
flex-direction: column
justify-content: center
width: auto
height: 100%
// Layout
body
margin: 0
height: 100%
header
height: 48px
background-color: $bg_alt_clr
border-bottom: $border_size solid $shadow_clr
padding: .1rem .8rem
white-space: nowrap
img.avatar
transition: border .2s
img.avatar:hover
border: 2px solid $special_clr
div
display: flex
max-width: 70rem
margin: 0 auto
align-items: center
justify-content: center
#logo_container
display: flex
flex-direction: column
margin: 0
text-decoration: none
color: $fg_clr
h1
margin: 0
opacity: .8
font-size: 1.2rem
font-weight: bold
h2
margin: 0
opacity: .2
font-size: .8rem
font-style: italic
font-weight: normal
nav
display: flex
align-items: center
margin: auto 0 auto auto
ul
margin: 0
display: flex
flex-direction: row
list-style-type: none
justify-content: flex-end
li
display: flex
flex-direction: column
justify-content: center
margin: 0 8px
.inlbutton
transition: opacity .2s
.inlbutton:hover
opacity: .6
a.button
display: inline-block
font-size: .8rem
font-weight: bold
text-decoration: none
padding: .4rem 1rem
color: $fg_clr
border-radius: 3em
transition: opacity .2s
a.button:hover
cursor: pointer
opacity: .8
.button#register
color: $fg_alt_clr
background-color: $special_clr
label.error_msg
color: $fg_error
font-size: 1rem
font-weight: bold
img.avatar, img.avatar_big
background: $bg_clr
width: 2.25rem
height: 2.25rem
object-fit: cover
border-radius: 50%
border: 2px solid $border_clr
img.avatar_big
width: 8.15rem
height: 8.15rem
img.icon
width: 1.2rem
height: auto
-webkit-filter: invert(100%)
filter: invert(100%)
.tcenter
text-align: center
.hcenter
width: 90%
margin: 0 auto
ul.button-container
display: flex
flex-direction: row
justify-content: center
padding: 0
margin: 0
list-style-type: none
height: auto
flex-wrap: wrap
li
display: flex
margin: .5rem
padding: .025rem .4rem
flex-direction: column
color: $fg_clr
background: $bg_dark_clr
.form-container
display: flex
justify-content: center
form
display: flex
flex-direction: column
justify-content: center
padding: 2rem
margin: 0
width: 50rem
max-width: 400px
border-radius: .2rem
textarea
background-color: $bg_dark_clr
font-size: 1rem
resize: none
border: $border_size solid $border_clr
border-radius: $border_radius
margin-bottom: 1rem
label
opacity: .8
a
color: $special_clr
padding: .2rem 0
h2
margin: 0
margin-bottom: 2.5rem
text-align: center
font-weight: bold
font-size: 2.2rem
input
border-radius: $border_radius
background: $bg_dark_clr
border: $border_size solid $shadow_clr
color: $fg_clr
font-family: $font_stack
font-size: 1.2rem
padding: .2rem 1rem
input[type=file]
padding: 0
font-size: .9rem
input[type=submit]
background: $bg_clr
transition: color .2s
input[type=submit]:hover
opacity: .8
color: $special_clr
cursor: pointer
input:not(:last-child)
margin-bottom: 1rem
.green
color: $green_clr
.red
color: $red_clr
.gray
color: $gray_clr
// Profiles
#profile-container
display: flex
flex-direction: row
width: 100%
height: 100%
max-width: 70rem
padding-top: 2rem
margin: 0 auto
.card-container
padding: 0 1rem
.card
background-color: $bg_alt_clr
border: $border_size solid $shadow_clr
border-radius: $border_radius
h2
text-align: left
padding-left: .8rem
margin: 0
border-bottom: $border_size solid $shadow_clr
font-size: 1rem
color: $fg_clr
aside
margin-right: 2rem
#userinfo
margin-bottom: 1.75rem
text-align: center
width: 250px
word-wrap: wrap
h2
margin: 1rem 0 0 0
padding: 0
text-align: center
font-size: 100%
font-weight: bold
border-bottom: none
h3
text-align: center
font-size: .8rem
margin: 0 0 1rem 0
font-weight: normal
color: $fg_clr
opacity: .5
h4
font-weight: normal
font-size: .8rem
max-width: 250px
ul
margin: 1rem 0
flex-wrap: nowrap
p
text-align: center
color: $fg_clr
max-width: 20rem
.avatar-container
display: flex
justify-content: center
margin-bottom: 1rem
img.avatar
width: 70%
max-width: 12rem
height: auto
aspect-ratio: 1/1
border: 2px solid $gray_clr
#roles
margin-bottom: 1.75rem
#reputation
text-align: center
h3
margin: 0
font-size: 1.6rem
h4
margin: 0
font-weight: normal
color: $fg_clr
opacity: .8
#posts
min-height: 14rem
max-height: 50rem
width: 100%
.card-container
margin-bottom: 4rem
padding-bottom: 2rem
#settings
.form-container
.error_msg
margin-bottom: .8rem
color: $red_clr
form
background-color: $bg_alt_clr
//border: $border_size solid $border_clr
input[type=text]
padding: 0 .2rem
border: $border_size solid $border_clr