@use "@styles/var";
@use "@styles/color";

#upload {
	padding: var.$block-spacing;

	.section {
		border-radius: var.$block-radius;

		& + .section {
			margin-top: var.$block-spacing;
		}
	}

	#fileupload {
		padding: var.$block-spacing 0;
	}

	.progress {
		position: relative;
		height: 1rem;

		div {
			position: absolute;
			height: 100%;
			border-radius: var.$block-radius;
			top: 0;
		}

		.bar {
			background: color.$success;
			
		}
		.total {
			background: color.$default-bg;
			width: 100%;
		}
	}

	.comment {
		.thumb {
			width: 30%;
			max-width: 120px;
		}
		
		.form {
			display: inline-block;
			width: 70%;
			min-width: calc(100% - 120px);
			padding-left: var.$block-spacing;
			vertical-align: top;
			box-sizing: border-box;
			
			.content {
				width: 100%;
				box-sizing: border-box;
				padding: var.$elem-spacing;
				background: color.$default-bg;
			}
			
			button.save {
				margin-top: var.$block-spacing;
				padding: var.$elem-spacing;
			}
		}
	}

	.logs {
		p.log {
			margin: 0;
		}
	}
}