mirror of
https://github.com/bendtherules/is-nifty-open.git
synced 2026-08-19 00:32:31 +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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,14 +8,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.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,
|
||||||
|
.OpenXDay .answerComposite {
|
||||||
padding-top: 5%;
|
padding-top: 5%;
|
||||||
padding-bottom: 5%;
|
padding-bottom: 5%;
|
||||||
color: rgba(255, 255, 255, 0.75);
|
color: rgba(255, 255, 255, 0.75);
|
||||||
@@ -29,7 +30,7 @@
|
|||||||
/* 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;
|
||||||
@@ -38,6 +39,22 @@
|
|||||||
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%;
|
||||||
|
|||||||
@@ -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