mirror of
https://github.com/bendtherules/is-nifty-open.git
synced 2026-08-18 22:02:57 +00:00
Move disclaimer to company name hover
This commit is contained in:
@@ -53,7 +53,7 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.App .top-bar {
|
.App .top-bar>*, .App .top-bar svg {
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -61,17 +61,15 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 80vh;
|
height: 80vh;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.App .lower-half {
|
.App .lower-half {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 20vh;
|
height: 20vh;
|
||||||
|
|
||||||
z-index: -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.App .OpenXDayMini, .App .NextOpenCloseMini {
|
.App .OpenXDayMini,
|
||||||
|
.App .NextOpenCloseMini {
|
||||||
border-top: 5px solid rgba(255, 255, 255, 0.6);
|
border-top: 5px solid rgba(255, 255, 255, 0.6);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -107,16 +105,3 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
transform: translate(-50%, 0);
|
transform: translate(-50%, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.disclaimer {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
margin: 0 1em;
|
|
||||||
padding: 0.5em;
|
|
||||||
font-size: .6em;
|
|
||||||
background-color: rgba(255,255,255,0.75);
|
|
||||||
border-radius: .5em;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
@@ -115,11 +115,6 @@ class IsNiftyOpenApp extends React.Component {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="disclaimer">
|
|
||||||
{`This data is taken from Karanataka ETV Flipkart holidays list,
|
|
||||||
but doesn't include optional holidays.
|
|
||||||
There is no gurantee that this data is correct or will be kept updated.`}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,64 +1,81 @@
|
|||||||
@import "../../Utils/utils.css";
|
@import "../../Utils/utils.css";
|
||||||
|
|
||||||
.OpenXDay {
|
.OpenXDay {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
font-size: 4em;
|
font-size: 4em;
|
||||||
background-color: rgba(0, 0, 0, 0.75);
|
background-color: rgba(0, 0, 0, 0.75);
|
||||||
}
|
}
|
||||||
|
|
||||||
.OpenXDay.green {
|
.OpenXDay.green {
|
||||||
background-color: #2ECC40;
|
background-color: #2ecc40;
|
||||||
}
|
}
|
||||||
|
|
||||||
.OpenXDay.red {
|
.OpenXDay.red {
|
||||||
background-color: #FF4136;
|
background-color: #ff4136;
|
||||||
}
|
}
|
||||||
|
|
||||||
.OpenXDay .question, .OpenXDay .answerComposite {
|
.OpenXDay .question,
|
||||||
padding-top: 5%;
|
.OpenXDay .answerComposite {
|
||||||
padding-bottom: 5%;
|
padding-top: 5%;
|
||||||
color: rgba(255, 255, 255, 0.75);
|
padding-bottom: 5%;
|
||||||
|
color: rgba(255, 255, 255, 0.75);
|
||||||
}
|
}
|
||||||
|
|
||||||
.OpenXDay .question {
|
.OpenXDay .question {
|
||||||
float: left;
|
float: left;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
/* border-right: 5px solid rgba(255, 255, 255, 0.5); */
|
/* border-right: 5px solid rgba(255, 255, 255, 0.5); */
|
||||||
}
|
}
|
||||||
|
|
||||||
.OpenXDay .question span {
|
.OpenXDay .question .question-text {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
left: 0.5em;
|
left: 0.5em;
|
||||||
transform: translate(0%, -50%);
|
transform: translate(0%, -50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.OpenXDay .disclaimer {
|
||||||
|
visibility: hidden;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 100%;
|
||||||
|
width: 90vw;
|
||||||
|
padding: 0.5em;
|
||||||
|
font-size: 0.25em;
|
||||||
|
background-color: rgb(64, 64, 64);
|
||||||
|
border-radius: 0.2em;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.OpenXDay .company-name:hover .disclaimer {
|
||||||
|
visibility: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
.OpenXDay .answerComposite {
|
.OpenXDay .answerComposite {
|
||||||
float: right;
|
float: right;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.OpenXDay .answerComposite-inner {
|
.OpenXDay .answerComposite-inner {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.OpenXDay .answerComposite .answerBoolean {
|
.OpenXDay .answerComposite .answerBoolean {
|
||||||
color: rgba(255, 255, 255, 0.85);
|
color: rgba(255, 255, 255, 0.85);
|
||||||
}
|
}
|
||||||
|
|
||||||
.OpenXDay .answerComposite .answerReason {
|
.OpenXDay .answerComposite .answerReason {
|
||||||
opacity: 0.85;
|
opacity: 0.85;
|
||||||
|
|
||||||
font-size: 0.85em;
|
font-size: 0.85em;
|
||||||
}
|
}
|
||||||
@@ -43,8 +43,17 @@ export class OpenXDay extends React.Component<OpenXDayProps, {}> {
|
|||||||
return (
|
return (
|
||||||
<div className={classnames([bgColorClass, "OpenXDay"])} >
|
<div className={classnames([bgColorClass, "OpenXDay"])} >
|
||||||
<div className="question">
|
<div className="question">
|
||||||
<span>
|
<span className="question-text">
|
||||||
Is Flipkart {this.question} today?
|
Is
|
||||||
|
<span className="company-name">
|
||||||
|
Flipkart
|
||||||
|
<div className="disclaimer">
|
||||||
|
{`This data is taken from Karanataka ETV Flipkart holidays list,
|
||||||
|
but doesn't include optional holidays.
|
||||||
|
There is no gurantee that this data is correct or will be kept updated.`}
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
{this.question} today?
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="answerComposite">
|
<div className="answerComposite">
|
||||||
|
|||||||
Reference in New Issue
Block a user