Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* code not necessary for the effect, just to make it pretty */
- html {
- background-color: #EEE;
- overflow-y: scroll;
- }
- body {
- color: #333;
- font-family: Verdana;
- font-size: 14px;
- margin: 0 auto;
- padding: 1em;
- max-width: 480px;
- }
- h1, h2 {
- color: #005700;
- font-size: 22px;
- margin: 0 auto;
- text-align: center;
- }
- h2 {
- font-size: 18px;
- font-weight: normal;
- margin-top: 1em;
- }
- ul {
- margin: 0 auto;
- padding: 0;
- }
- li {
- border-bottom: 1px dotted #CCC;
- list-style: none;
- margin: 1em 0;
- padding: 0 0 0.5em;
- }
- p {
- margin: 0;
- padding: 0;
- text-align: justify;
- text-indent: 1em;
- }
- label {
- color: #005700;
- font-size: 12px;
- font-style: italic;
- }
- label:hover, label:active {
- text-decoration: underline;
- }
- footer {
- font-size: 0.9em;
- font-variant: small-caps;
- margin: 3em 0 0;
- }
- /* code necessary for the effect */
- p {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- input {
- display: none;
- }
- input ~ label {
- cursor: pointer;
- }
- input ~ label:after {
- content: "show more";
- }
- input:checked ~ p {
- white-space: normal;
- }
- input:checked ~ label:after {
- content: "show less";
- }
- input[type="radio"]:checked ~ label:after {
- content: "";
- }
Add Comment
Please, Sign In to add comment