input { width: 100%; box-sizing: border-box; padding: 0.75em; } body { max-width: 40em; } footer { margin: 1em auto; text-align: center; } footer > a { display: inline-block; } .action { padding: 20px; } .action[result]::after { content: attr(result); display: block; padding-top: 1em; text-align: center; font-size: 0.75em; } .action-wrap { margin: 0.5em auto; border-radius: 6px; overflow: hidden; transition: max-height 0.2s linear; box-shadow: 0px 0px 0.1em #777; } .form-elem { padding: 5px 0px; } .form-elem[error] > input { border-color: #e44; border-bottom: none; color: #e44; border-radius: 4px 4px 0px 0px; } .form-elem[error]::after { font-size: 0.7em; content: attr(error); display: block; color: #e44; border-radius: 0px 0px 4px 4px; border: 1px solid #e44; padding: 10px; background-color: #333; } .scroll { margin: auto; max-height: 800px; overflow: auto; } .cajetin { width: 100%; display: block; padding: 0.5em; } #dellist > .data-elem { margin: 5px; padding: 10px; width: 270px; display: inline-block; border: 1px solid #555; border-radius: 5px; box-sizing: border-box; } #dellist > .data-elem > button { display: block; text-align: center; margin: 5px auto; width: 100%; } #dellist > .data-elem > .date { text-align: center; font-weight: bold; font-size: 1.05em; margin-bottom: 0.1em; } #dellist > .data-elem > .desc { height: 7em; overflow: auto; } @media screen and (max-width: 1000px) { body { max-width: 620px; } } @media screen and (max-width: 700px) { #dellist > .data-elem { width: 100%; display: block; } form { padding: 10px; } }