//variables $file-uploader__primaryColor: rgb(114, 191, 167); $file-uploader__primaryColor--hover: lighten($file-uploader__primaryColor, 15%); $file-uploader__black: #242424; $file-uploader__error: rgb(214, 93, 56); //style .file-uploader { background-color: lightgray; border-radius: 3px; color: black; } .file-uploader__message-area { font-size: 16px; padding: 1em; text-align: center; color: darken($file-uploader__primaryColor, 25%); } .file-list { font-size: 16px; } .file-list__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .file-list li { height: 50px; line-height: 50px; margin-top : 5px; border-radius:10px; overflow: hidden; border: 2px solid black; padding-left : 5px; padding-bottom : 5px; } .removal-button { width: 10%; border: none; color: #C00000; font-weight: bold; background-color: white; &::before { content: "X"; } &:focus { outline: 0; } } //layout .file-uploader { max-width: 400px; height: auto; margin: 2em auto; & * { display: block; } & input[type="submit"] { margin-top: 2em; float: right; } } .file-list { margin: 0 auto; max-width: 90%; } .file-list__name { max-width: 70%; float: left; } .file-list li { @extend %clearfix; } .removal-button { display: inline-block; height: 100%; float: right; } .file-chooser { width: 90%; } .file-chooser__input { } .file-uploader__submit-button { border: 1px solid; font-size: 1.5em; background-color: #1AA24A; color: white; width: 50%; border-radius: 10%; padding: 1px 5px 1px 2px; } //layout .file-uploader { @extend %clearfix; } //utility %clearfix { &:after { content: ""; display: table; clear: both; } } .hidden { display: none; & input { display: none; } } .error { background-color: lightgrey; color: red; } //reset *, *::before, *::after { box-sizing: border-box; } ul, li { margin: 0; padding: 0; }