source: reactapp/src/Components/Styled/OpinionCard.style.js

main
Last change on this file was c68150f, checked in by unknown <mlviktor23@…>, 21 months ago

left: moderation, oAuth, messaging

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[e958037]1import styled from "styled-components";
[f5d4792]2import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
[e958037]3
4export const OpinionCard = styled.div`
5 background-color: papayawhip;
[f5d4792]6 width: auto;
7 margin-top: 20px;
8 margin-bottom: 20px;
9 padding: 10px;
[8d83180]10 box-shadow: 2px 2px 10px #aaaaaa;
[f5d4792]11`;
12
13export const OpinionCardContent = styled.div`
14 padding: 5px;
15 transition: 0.5s;
16 &:hover {
17 background-color: seashell;
18 }
19 position: relative;
[c68150f]20 overflow-wrap: break-word;
[f5d4792]21`;
22
23export const OpinionCardContentTitle = styled.p`
24 font-weight: bold;
25`;
26
27export const OpinionCardContentTime = styled.p`
28 font-size: small;
29 font-style: italic;
[e958037]30`;
[5347491]31
32export const OpinionReplyCard = styled.div`
[f5d4792]33 background-color: papayawhip;
34 width: auto;
[5347491]35 margin-left: ${(props) => props.indent};
[f5d4792]36 padding: 10px;
37 border-left: thick solid tan;
38`;
39
40export const OpinionReplyCardContent = styled.div`
41 padding: 5px;
42 transition: 0.5s;
43 &:hover {
44 background-color: seashell;
45 }
46 position: relative;
47`;
48
49export const OpinionReplyCardContentTime = styled.p`
50 font-size: small;
51 font-style: italic;
52`;
53
54export const StyledFontAwesomeIcon = styled(FontAwesomeIcon)`
[62b653f]55 color: ${(props) => props.color};
[f5d4792]56 display: block;
57 position: absolute;
[c68150f]58 height: 20px;
[f5d4792]59 top: 50%;
60 transform: translateY(-50%);
[ad40ec0]61 right: ${(props) => props.right};
62 transition: 0.5s;
63 &:hover {
[c68150f]64 opacity: 0.5;
[6221ab6]65 cursor: pointer;
[ad40ec0]66 }
[5347491]67`;
[62b653f]68
69export const VoteCount = styled.p`
70 color: darkgrey;
71 display: block;
72 position: absolute;
73 top: 80%;
74 transform: translateY(-50%);
75 right: ${(props) => props.right};
76 transition: 0.5s;
77`;
Note: See TracBrowser for help on using the repository browser.