main
Last change
on this file since 702ca77 was 702ca77, checked in by unknown <mlviktor23@…>, 2 years ago |
added current user/logout in header, display karma on user dashboard, started add post functionality in react
|
-
Property mode
set to
100644
|
File size:
2.0 KB
|
Rev | Line | |
---|
[702ca77] | 1 | import styled, { keyframes } from "styled-components";
|
---|
| 2 |
|
---|
| 3 | export const AddOpinionButton = styled.button`
|
---|
| 4 | font-family: "Roboto Mono", monospace;
|
---|
| 5 | background-color: #0066cc;
|
---|
| 6 | border: none;
|
---|
| 7 | color: white;
|
---|
| 8 | padding: 8px 16px;
|
---|
| 9 | text-align: center;
|
---|
| 10 | font-size: 16px;
|
---|
| 11 | opacity: 0.6;
|
---|
| 12 | transition: 0.3s;
|
---|
| 13 | text-decoration: none;
|
---|
| 14 | cursor: pointer;
|
---|
| 15 | &:hover {
|
---|
| 16 | opacity: 1;
|
---|
| 17 | }
|
---|
| 18 | float: right;
|
---|
| 19 | font-weight: bold;
|
---|
| 20 | `;
|
---|
| 21 |
|
---|
| 22 | export const Modal = styled.div`
|
---|
| 23 | display: ${(props) => props.display};
|
---|
| 24 | position: fixed;
|
---|
| 25 | z-index: 1;
|
---|
| 26 | left: 0;
|
---|
| 27 | top: 0;
|
---|
| 28 | width: 100%;
|
---|
| 29 | height: 100%;
|
---|
| 30 | overflow: auto;
|
---|
| 31 | background-color: rgb(0, 0, 0);
|
---|
| 32 | background-color: rgba(0, 0, 0, 0.4);
|
---|
| 33 | `;
|
---|
| 34 |
|
---|
| 35 | const animatetop = keyframes`
|
---|
| 36 | from {
|
---|
| 37 | top: -300px;
|
---|
| 38 | opacity: 0;
|
---|
| 39 | }
|
---|
| 40 | to {
|
---|
| 41 | top: 0;
|
---|
| 42 | opacity: 1;
|
---|
| 43 | }
|
---|
| 44 | `;
|
---|
| 45 |
|
---|
| 46 | export const ModalContent = styled.div`
|
---|
| 47 | background-color: #fefefe;
|
---|
| 48 | margin: 15% auto;
|
---|
| 49 | padding: 0;
|
---|
| 50 | border: 1px solid #888;
|
---|
| 51 | width: 80%;
|
---|
| 52 | animation: ${animatetop} 0.4s;
|
---|
| 53 | `;
|
---|
| 54 |
|
---|
| 55 | export const ModalClose = styled.span`
|
---|
| 56 | color: white;
|
---|
| 57 | float: right;
|
---|
| 58 | font-size: 28px;
|
---|
| 59 | font-weight: bold;
|
---|
| 60 | transition: 0.4s;
|
---|
| 61 | &:hover,
|
---|
| 62 | :focus {
|
---|
| 63 | background-color: black;
|
---|
| 64 | text-decoration: none;
|
---|
| 65 | cursor: pointer;
|
---|
| 66 | }
|
---|
| 67 | `;
|
---|
| 68 |
|
---|
| 69 | export const ModalHeader = styled.div`
|
---|
| 70 | padding: 2px 16px;
|
---|
| 71 | background-color: rgba(0, 102, 204, 0.6);
|
---|
| 72 | color: white;
|
---|
| 73 | height: 40px;
|
---|
| 74 | margin-bottom: 10px;
|
---|
| 75 | `;
|
---|
| 76 |
|
---|
| 77 | export const ModalFooter = styled.div`
|
---|
| 78 | padding: 2px 16px;
|
---|
| 79 | background-color: rgba(0, 102, 204, 1);
|
---|
| 80 | opacity: 0.6;
|
---|
| 81 | color: white;
|
---|
| 82 | height: 40px;
|
---|
| 83 | margin-top: 10px;
|
---|
| 84 | transition: 0.4s;
|
---|
| 85 | &:hover {
|
---|
| 86 | opacity: 1;
|
---|
| 87 | cursor: pointer;
|
---|
| 88 | }
|
---|
| 89 | `;
|
---|
| 90 |
|
---|
| 91 | export const ModalBody = styled.div`
|
---|
| 92 | padding: 2px 16px;
|
---|
| 93 | `;
|
---|
| 94 |
|
---|
| 95 | export const ModalInput = styled.input`
|
---|
| 96 | margin-top: 5px;
|
---|
| 97 | margin-bottom: 5px;
|
---|
| 98 | display: block;
|
---|
| 99 | height: 30px;
|
---|
| 100 | width: 372px;
|
---|
| 101 | padding: 12px 16px;
|
---|
| 102 | border: 1px solid #ccc;
|
---|
| 103 | `;
|
---|
| 104 |
|
---|
| 105 | export const ModalTextarea = styled.textarea`
|
---|
| 106 | margin-top: 5px;
|
---|
| 107 | margin-bottom: 5px;
|
---|
| 108 | display: block;
|
---|
| 109 | padding: 12px 16px;
|
---|
| 110 | border: 1px solid #ccc;
|
---|
| 111 | `;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.