source: reactapp/src/Components/Styled/Modal.style.js@ 3b6962d

main
Last change on this file since 3b6962d was 3b6962d, checked in by unknown <mlviktor23@…>, 2 years ago

moderation/reporting api in spring boot

  • Property mode set to 100644
File size: 2.2 KB
Line 
1import styled, { keyframes } from "styled-components";
2
3export 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 box-shadow: 2px 1px 10px #aaaaaa;
21`;
22
23export const Modal = styled.div`
24 display: ${(props) => props.display};
25 position: fixed;
26 z-index: 1;
27 left: 0;
28 top: 0;
29 width: 100%;
30 height: 100%;
31 overflow: auto;
32 background-color: rgb(0, 0, 0);
33 background-color: rgba(0, 0, 0, 0.4);
34`;
35
36const animatetop = keyframes`
37 from {
38 top: -300px;
39 opacity: 0;
40 }
41 to {
42 top: 0;
43 opacity: 1;
44 }
45`;
46
47export const ModalContent = styled.div`
48 background-color: #fefefe;
49 margin: 2% auto;
50 padding: 20px;
51 border: 1px solid #888;
52 width: 80%;
53 animation: ${animatetop} 0.4s;
54`;
55
56export const ModalClose = styled.span`
57 color: white;
58 float: right;
59 font-size: 28px;
60 font-weight: bold;
61 transition: 0.4s;
62 &:hover,
63 :focus {
64 background-color: black;
65 text-decoration: none;
66 cursor: pointer;
67 }
68`;
69
70export const ModalHeader = styled.div`
71 padding: 2px 16px;
72 background-color: rgba(0, 102, 204, 0.6);
73 color: white;
74 height: 40px;
75 margin-bottom: 30px;
76`;
77
78export const ModalFooter = styled.button`
79 padding: 2px 16px;
80 background-color: rgba(0, 102, 204, 1);
81 opacity: 0.6;
82 color: white;
83 height: 40px;
84 margin-top: 30px;
85 transition: 0.4s;
86 &:hover {
87 opacity: 1;
88 cursor: pointer;
89 }
90 font-family: "Roboto Mono", monospace;
91 width: 100%;
92 border: 0;
93 font-size: 18px;
94 font-weight: bold;
95`;
96
97export const ModalBody = styled.div`
98 padding: 2px 16px;
99`;
100
101export const ModalInput = styled.input`
102 margin-top: 5px;
103 margin-bottom: 5px;
104 display: block;
105 height: 30px;
106 width: 372px;
107 padding: 12px 16px;
108 border: 1px solid #ccc;
109 font-family: inherit;
110`;
111
112export const ModalTextarea = styled.textarea`
113 margin-top: 5px;
114 margin-bottom: 5px;
115 display: block;
116 padding: 12px 16px;
117 border: 1px solid #ccc;
118 resize: none;
119 font-family: inherit;
120`;
Note: See TracBrowser for help on using the repository browser.