/**
 * Copyright (c) Enalean, 2013-Present. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

@use "basepath";

/* stylelint-disable selector-id-pattern, selector-class-pattern, selector-no-qualifying-type */

/* http://www.p51labs.com/lightwindow/ */
#lightwindow_overlay {
    /* REQUIRED */
    display: none;
    visibility: hidden;
    position: absolute;
    z-index: 2005;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;

    /* REQUIRED */
}

#lightwindow {
    /* REQUIRED */

    /* Of Note - The height and width of this element are set to 0px */
    display: none;
    visibility: hidden;
    position: absolute;
    z-index: 2006;

    /* REQUIRED */
}

#lightwindow_container {
    /* REQUIRED */
    display: none;
    visibility: hidden;
    position: absolute;
    margin: 0;

    /* REQUIRED */
    padding: 0;
}

/* IE6 needs this or it messes with our positioning */
* html #lightwindow_container {
    overflow: hidden;
}

#lightwindow_contents {
    position: relative;
    z-index: 0;
    overflow: hidden;
    border: 10px solid #ffffff;
    background-color: #ffffff;
}

#lightwindow_loading {
    position: absolute;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;

    /* REQUIRED */
    height: 100%;
    padding: 10px;

    /* REQUIRED */
    background-color: #f0f0f0;
}

#lightwindow_loading span {
    padding: 0 10px 0 0;
    float: left;
    color: #444444;
    font-size: 12px;
    line-height: 32px;
}

#lightwindow_loading span a,
#lightwindow_loading span a:link,
#lightwindow_loading span a:visited {
    color: #0099ff;
    text-decoration: none;
    cursor: pointer;
}

#lightwindow_loading span a:hover,
#lightwindow_loading span a:active {
    text-decoration: underline;
}

#lightwindow_loading img {
    margin: 0 10px 0 0;
    float: left;
}

/* -----------------------------------------------------------------------------------------------
    I liked the Navigation so much from http://www.huddletogether.com/projects/lightbox2/
    I mean let's face it, it works really well and is very easy to figure out.
----------------------------------------------------------------------------------------------- */

#lightwindow_navigation {
    display: none;

    /* REQUIRED */
    position: absolute;
    top: 0;
    left: 0;

    /* REQUIRED */
}

#lightwindow_navigation a,
#lightwindow_navigation a:link,
#lightwindow_navigation a:visited,
#lightwindow_navigation a:hover,
#lightwindow_navigation a:active {
    /* REQUIRED */
    outline: none;

    /* REQUIRED */
}

#lightwindow_previous,
#lightwindow_next {
    display: block;
    width: 49%;
    height: 100%;
    background: transparent
        url("#{basepath.$tuleap-common-theme-basepath}images/lightwindow/blank.gif") no-repeat; /* Trick IE into showing hover */
}

#lightwindow_previous {
    left: 0;
    float: left;
}

#lightwindow_next {
    right: 0;
    float: right;
}

#lightwindow_previous:hover,
#lightwindow_previous:active {
    background: url("#{basepath.$tuleap-common-theme-basepath}images/lightwindow/prevlabel.gif")
        left 15% no-repeat;
}

#lightwindow_next:hover,
#lightwindow_next:active {
    background: url("#{basepath.$tuleap-common-theme-basepath}images/lightwindow/nextlabel.gif")
        right 15% no-repeat;
}

#lightwindow_previous_title,
#lightwindow_next_title {
    display: none;
}

#lightwindow_galleries {
    display: none;
    position: absolute;
    z-index: 50;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0 0 0 10px;
    overflow: hidden;
}

#lightwindow_galleries_tab_container {
    width: 100%;
    height: 0;
    overflow: hidden;
}

a#lightwindow_galleries_tab,
a:link#lightwindow_galleries_tab,
a:visited#lightwindow_galleries_tab {
    display: block;
    width: 77px;
    height: 20px;
    float: right;
    background: url("#{basepath.$tuleap-common-theme-basepath}images/lightwindow/black-70.png")
        repeat 0 0 transparent;
    color: #ffffbe;
    font-size: 11px;
    font-weight: bold;
    line-height: 22px;
    text-decoration: none;
    cursor: pointer;
}

* html a#lightwindow_galleries_tab,
* html a:link#lightwindow_galleries_tab,
* html a:visited#lightwindow_galleries_tab {
    opacity: 0.7;
    background: none;
    background-color: #000000;
    filter: alpha(opacity=70);
}

a:hover#lightwindow_galleries_tab,
a:active#lightwindow_galleries_tab {
    color: #ffffbe;
}

#lightwindow_galleries_tab_span {
    display: block;
    width: 63px;
    height: 20px;
    padding: 0 7px;
}

#lightwindow_galleries_tab .up {
    background: url("#{basepath.$tuleap-common-theme-basepath}images/lightwindow/arrow-up.gif")
        no-repeat 60px 5px transparent;
}

#lightwindow_galleries_tab .down {
    background: url("#{basepath.$tuleap-common-theme-basepath}images/lightwindow/arrow-down.gif")
        no-repeat 60px 6px transparent;
}

#lightwindow_galleries_list {
    height: 0;
    overflow: hidden;
    background: url("#{basepath.$tuleap-common-theme-basepath}images/lightwindow/black-70.png")
        repeat 0 0 transparent;
}

* html #lightwindow_galleries_list {
    opacity: 0.7;
    background: none;
    background-color: #000000;
    filter: alpha(opacity=70);
}

.lightwindow_galleries_list {
    width: 200px;
    margin: 0 0 10px;
    padding: 10px;
    float: left;
}

.lightwindow_galleries_list h1 {
    padding: 10px 0 5px;
    color: #0099ff;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.lightwindow_galleries_list li {
    margin: 5px 0;
    list-style-type: none;
}

.lightwindow_galleries_list a,
.lightwindow_galleries_list a:link,
.lightwindow_galleries_list a:visited {
    display: block;
    padding: 0 0 0 10px;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    line-height: 22px;
    text-decoration: none;
    cursor: pointer;
}

.lightwindow_galleries_list a:hover,
.lightwindow_galleries_list a:active {
    padding: 0 0 0 7px;
    border-left: 3px solid #ffffbe;
    background: #000000;
    color: #ffffbe;
}

#lightwindow_data {
    /* REQUIRED */
    position: absolute;

    /* REQUIRED */
}

#lightwindow_data_slide {
    /* REQUIRED */
    position: relative;

    /* REQUIRED */
}

#lightwindow_data_slide_inner {
    padding: 0 10px 10px;
    background-color: #ffffff;
}

#lightwindow_data_caption {
    padding: 10px 0 0;
    clear: both;
    background-color: #ffffff;
    color: #666666;
    line-height: 25px;
}

#lightwindow_data_details {
    height: 20px;
    padding: 0 10px;
    background-color: #f0f0f0;
}

#lightwindow_data_author_container {
    width: 40%;
    float: right;
    overflow: hidden;
    color: #666666;
    font-size: 10px;
    font-style: italic;
    line-height: 20px;
    text-align: right;
}

#lightwindow_data_gallery_container {
    width: 40%;
    float: left;
    overflow: hidden;
    color: #666666;
    font-size: 10px;
    line-height: 20px;
    text-align: left;
}

#lightwindow_title_bar {
    height: 25px;
    overflow: hidden;
}

#lightwindow_title_bar_title {
    float: left;
    color: #ffffbe;
    font-size: 14px;
    line-height: 25px;
    text-align: left;
}

a#lightwindow_title_bar_close_link,
a:link#lightwindow_title_bar_close_link,
a:visited#lightwindow_title_bar_close_link {
    margin: 0;
    padding: 0;
    float: right;
    color: #ffffbe;
    line-height: 25px;
    text-align: right;
    cursor: pointer;
}

a:hover#lightwindow_title_bar_close_link,
a:active#lightwindow_title_bar_close_link {
    color: #ffffff;
}

/* -----------------------------------------------------------------------------------------------
    Theme styling stuff
----------------------------------------------------------------------------------------------- */

#lightwindow p {
    padding-right: 10px;
    color: #000000;
}

/* End */

/* Start customize lightwidow for tuleap */
/* stylelint-disable-next-line no-duplicate-selectors */
#lightwindow_title_bar {
    position: relative;
}

a#lightwindow_title_bar_close_link,
a#lightwindow_title_bar_close_link:link,
a#lightwindow_title_bar_close_link:visited,
a#lightwindow_title_bar_close_link:hover {
    position: absolute;
    right: 0;
    bottom: 0;
    float: none;
}

/* End */
/* stylelint-enable */
