Newer
Older
anicusi / scss / base.scss
@Eugene Eugene on 11 Apr 8 KB init
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

* {
	margin: 0;
	padding: 0;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #333; 
}
 
::-webkit-scrollbar-thumb {
  background: #555; 
}

::-webkit-scrollbar-thumb:hover {
  background: #666; 
}

[type="search"]::-webkit-search-cancel-button{
  display: none;    
}

body {
	background-color: $color-bg;
	color: $color-text; 
	font-family: $font-family;
}

.page {
	margin-top: 50px;
	padding-top: $std-pd-xl;
	padding-bottom: $std-pd-xl;
}

.container {
	width: 100%;
	max-width: 1200px;
	padding-right: $std-pd-lg;
	padding-left: $std-pd-lg;
	margin-right: auto;
	margin-left: auto;
	box-sizing: border-box;

	@include media("max", "md"){
		padding-right: $std-pd-md;
		padding-left: $std-pd-md;
	}
}

.form {
	display: block;
	margin-top: $std-mg-lg;
	margin-bottom: $std-mg-lg;
	padding: $std-pd-xl;
	border-radius: $border-rad-xl;
	background-color: $color-bg-card;

	@include media("max", "sm") {
		padding: $std-pd-lg;
	}
}

.form-group {
	margin: $std-mg-md 0;
	position: relative;

	.form-label {
		display: block;
		margin-bottom: 2px;
		font-size: 13px;
	}

	.std-input[type="checkbox"],
	.std-input[type="radio"] {
		float: left;
		margin-right: 6px;
		width: auto;

		& + .form-label {
			position: relative;
			top: 2px;
		}
	}

	.input-counter {
		position: absolute;
		right: 5px;
		top: 0px;
		font-size: $fsize-sm;
		text-align: right;
		width: 50px;
		display: none;

		&.show {
			display: block;
		}
	}
}

.std-input {
	width: 100%;
	padding: 8px 10px;
	border: $border-1;
	border-radius: $border-rad-md;
	font-size: 15px;
	box-sizing: border-box;
	transition-duration: $trans-du;
	transition-property: border-color;
	color: $color-text;
	background-color: $color-bg-card;

	&:focus {
		border-color: $color-primary;
		outline: none;
	}

	&.error {
		border-color: $color-danger;
	}

	&[type="checkbox"] {
		width: 18px;
		height: 18px;
		margin: 0;
		margin-right: $std-mg-xsm;
	}

	&::placeholder {
		font-family: $font-family;
		color: $color-text-lite;
	}
}

textarea.std-input {
	resize: none;
	min-height: 100px;
}

.std-btn {
	padding: 8px 10px;
	border: 2px solid #666;
	border-radius: $border-rad-md;
	font-size: 15px;
	max-height: 37px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: $std-mg-xsm;
	box-sizing: border-box;
	transition-duration: $trans-du;
	transition-property: color, background-color;

	.mdi {
		font-size: 20px;
		position: relative;
		top: 1px;
	}

	&.btn-primary {
		background-color: $color-primary;
		border-color: $color-primary;
		color: $color-text-inverted;

		&:hover {
			color: $color-primary;
		}
	}

	&.btn-success {
		background-color: $color-success;
		border-color: $color-success;
		color: $color-text;
		
		&:hover {
			color: $color-success;
		}
	}

	&.btn-warning {
		background-color: $color-warning;
		border-color: $color-warning;
		color: $color-text;
	}

	&.btn-danger {
		background-color: $color-danger;
		border-color: $color-danger;
		color: $color-text-inverted;
		
		&:hover {
			color: $color-danger;
		}
	}

	&.btn-default {
		background-color: $color-addition;
		border-color: $color-addition;
		color: $color-text;
	}

	&:hover {
		background-color: transparent;
	}

	&.btn-circle {
		border-radius: 100%;
		width: 36px;
		height: 36px;
		border: 0;
		color: $color-text;
		
		.mdi {
			font-size: 24px;
		}
	}

	&.btn-remove {
		&:hover {
			background-color: $color-danger;
			color: $color-text-inverted;
		}
	}

	&.btn-popup-close {
		display: flex;
		height: 40px;
		width: 40px;
		max-width: initial;
		max-height: initial;
		font-size: 20px;
		border-radius: 100%;
		border: 0;
		align-items: center;
		padding: 0;
		justify-content: center;
		color: $color-text;
		transition-property: transform, opacity, visibility, background-color, color; 

		&:hover {
			background-color: $color-danger;
			transform: rotate(90deg);
			color: $color-text-inverted;
			background-color: $color-danger;
		}
	}

	&.btn-buy {
		font-size: $fsize-lg;

		&:hover {
			background-color: #fff;
			color: $color-success;
		}
	}

	&.disable {
		background-color: $color-disable !important;
		border-color: $color-disable !important;
		color: $color-text !important;

		&:hover {
			background-color: $color-disable !important;
			color: $color-text !important;
		}
	}
}

.no-matter-text {
	font-size: $fsize-xsm;
	color: $color-text-lite;
}

a {
	color: $color-primary;
	text-decoration: none;
	display: inline-block;
	border-bottom: 1px solid $color-primary;
	transition-duration: $trans-du;
	transition-property: color, border-color;

	&:hover {
		color: $color-success;
		border-color: $color-success
	}
}

ul {
	list-style-type: none;
}

p {
	margin: $std-pd-md 0;
}

hr {
	height: 1px;
	border: 0;
	background: $color-disable;
	margin: $std-mg-xl 0;
}

.label {
	display: inline-block;
	font-size: $fsize-md;
	padding: $std-pd-xsm $std-pd-sm $std-pd-xsm - 1 $std-pd-sm;
	background-color: $color-addition;
	color: $color-text;
	border-radius: $border-rad-sm;

	&.label-primary {
		background-color: $color-primary;
		color: $color-text-inverted;
	}

	&.label-success {
		background-color: $color-success;
	}

	&.label-warning {
		background-color: $color-warning;
	}

	&.label-danger {
		background-color: $color-danger;
		color: $color-text-inverted;
	}
}

.popup-back-blur {
	position: fixed;
	z-index: 150;
	background-color: rgba(0, 0, 0, .8);
	left: 0;
	top: 0;
	bottom: 0;
	right: 0;
	opacity: 0;
	visibility: hidden;
	transition-duration: $trans-du;
	transition-property: opacity, visibility;
}

.show > .popup-back-blur{
	opacity: 1;
	visibility: visible;
}

.card {
	background-color: $color-bg-card;
	border-radius: $border-rad-lg;
	padding: $std-pd-lg;

	&.card-transparent {
		background-color: transparent;
	}

	@include media("max", "md") {
		padding: $std-pd-md;
	}
}

.global-alerts-container {
	position: fixed;
	height: auto;
	width: 100%;
	max-width: 400px;
	bottom: 0;
	left: 50%;
	margin-left: -200px;
	height: auto;
	z-index: 999999;

	@include media("max", "sm") {
		margin-left: 0;
		width: auto;
		max-width: initial;
		left: $std-mg-md;
		right: $std-mg-md;
	} 
}

.page-container {
	position: relative;

	.page {
		visibility: hidden;
		opacity: 0;
		position: absolute;
		top: 100px;
		max-height: 100vh;
		overflow: hidden;
		transition-duration: $trans-du;
		transition-property: opacity, top, visibility, overflow, max-height;
		width: calc(100% - 36px);

	  .page-head {
	  	display: flex;
	  	flex-direction: row;
	  	flex-wrap: nowrap;
	  	gap: $std-mg-lg;
	  	margin-bottom: $std-pd-lg;

	  	.preload-spinner {
	  		margin: 0;
				width: auto;
	  	}

  		@include media("max", "md") {
  			justify-content: center;
  			margin-bottom: $std-pd-md;
  		}
	  	
	  	@include media("max", "lg") {
	  		gap: $std-mg-md;
	  	}
	  }

	  @include media("max", "lg") {
	  	width: calc(100% - 36px);
	  }

	  @include media("max", "md") {
	  	width: calc(100% - 22px);
	  }
	}

	.page.show {
		top: 0;
		overflow: initial;
		max-height: initial;
		opacity: 1;
		visibility: visible;
	}
}

.preload-spinner {
	width: 100%;
	margin: $std-mg-xxl 0;
	display: flex;
	justify-content: center;
	align-items: center;

	.spinner {
		width: 50px;
		height: 50px;
	}
}

.render-container.grid {
	width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
	gap: $std-mg-md;
	margin-top: $std-mg-lg;

	@include media("max", "xl") {
  	grid-template-columns: 1fr 1fr 1fr;
		justify-content: space-evenly;	
	}

	@include media("max", "md") {
  	grid-template-columns: 1fr 1fr;
	} 

	@include media("max", "sm") {
		gap: $std-mg-sm;
	}

	@include media("max", "xs") {
  	grid-template-columns: 1fr;
	}
}

.genre-btn {
	margin-right: $std-mg-xsm;
	margin-top: $std-mg-xsm;
	padding: 3px 5px;

	&.active {
		background-color: $color-primary;
		color: $color-text-inverted;
	}
}

.more-btn-wrap {
	width: 100%;
	display: flex;
	justify-content: center;
	margin: $std-mg-xl 0;

	.preload-spinner {
		margin: $std-mg-lg 0;
	}
}

.item-link {
	display: flex;
}

.go-to-top {
	position: fixed;
	z-index: 999999;
	bottom: 60px;
	right: $std-mg-lg;
	opacity: 0;
	visibility: hidden;
	transition-duration: $trans-du;
	transition-property: visibility, opacity;
	
	@include media("max", "md") {
		right: $std-mg-md;
	}

	&.show {
		opacity: 1;
		visibility: visible;
	}
}