/*
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2020 Meeds Association
contact@meeds.io
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This program 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
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/
/*
- Hover-reveal actions on links
- Hover-reveal actions on icons
- Hover-reveal actions on buttons
- Hover-reveal actions on mixed buttons and icons
*/
.hover-action-reveal {
	&.has-border {
		border-bottom: 1px solid @primaryBackground;
		&.selected {
			border-bottom-color: @baseBackground;
		}
	}
	&.has-background {
		&:hover {
			background-color: @revealBackgroundHover;
			& > div {
				background-color: @revealBackgroundHover
			}
		}

		&.selected {
			background-color: @revealBackgroundSelected;
			& > div {
				background-color: @revealBackgroundSelected
			}
		}
	}
	.block-show {
		display: block;
	}
    .visibility-show,
    .visibility-visible {
        visibility: visible;
    }
    .inline-show {
        display: inline;
    }
    .inline-block-show {
        display: inline-block;
    }

	.inline-hide,
	.inline-block-hide,
	.block-show,
	.hide {
		display: none;
	}
    .visibility-hidden {
        visibility: hidden;
    }
	&:hover, &.selected {
		.block-show,
		.inline-show,
		.inline-block-show {
			display: none;
		}
        .visibility-show,
        .visibility-visible {
            visibility: hidden;
        }
		.block-hide {
			display: block;
		}
		.inline-hide {
			display: inline;
		}
		.inline-block-hide {
			display: inline-block;
		}
        .visibility-hidden {
            visibility: visible;
        }
	}
}
.hoverStatus {
	padding: 5px 10px;
    border-radius: 3px;
	box-shadow: inset 0 0 0 1px transparent;
	border: 1px solid  transparent;

    &.editableField:hover {
        box-shadow: inset 0 0 0 1px  @borderColor;
    }
    &.unEditableField:hover {
    	box-shadow: none;
    }
    &.small {
    	padding: 5px;
    }
}



.row-item.has-border {
	border-bottom: 1px solid @primaryBackground;
}
.table-project{
    display: table;
    width: 100%;
    table-layout: fixed;
    .dropdown-group {
        position: relative;
    }
    .row-item {
        display: table-row;
        cursor: pointer;
        .dropdown-group {
            display: inline-block;
        }
        &.heading {
            font-weight: bold;
            .column-item {
                > * {
                    vertical-align: middle;
                }
            }
        }
        &.group {
            border-bottom: none;
            > .column-item {
                padding: 0;
            }
            .table-project {
                margin-bottom: 30px;
            }
        }
        .text-time {
            height: 26px;
            line-height: 26px;
            vertical-align: top;
            &:empty {
                display: none;
            }
        }
        &:hover,&.selected {
            &.group {
                background: none;
            }
        }
        &.selected {
            .column-title {
                font-weight: bold;
            }
        }
        .column-title {
            .text-overflow();
        }
    }
    .row-group {
        display: table-row-group;
        margin-bottom: 30px;
    }
    .column-item {
        display: table-cell;
        padding: 4px;
        vertical-align: middle;
        position: relative;        
         .labels {
            margin: 0 0px 0 0;
            .label {
                margin: 0;
            }
        }   
        &:first-child{
            padding-left: 13px;
        }
        &:last-child{
            padding-right: 8px;
        }
    }
    .column-checkbox {
        width: 24px;
        .status-task {
            margin-left: 4px;
        }
    }
    .column-time {
        text-align: right;
    }
    .column-action {
        width: 26px;
    }
}

.table-project-collapse {
    margin-bottom: 30px;
    .heading {
        padding: 5px 8px 6px;
        .group-name, .amount-item {
            font-weight: bold;
        }
    }
    .caption-heading {
        border-top:  1px solid @primaryBackground;
        .col { 
            padding: 10px 8px 10px 18px;
        }
    }

    .col {
        box-sizing: border-box;
        display: table-cell;
        padding: 10px 18px 10px 18px;
        input[type="text"] {
            width: 100%;
            margin-bottom: 0;
        }
        & + .col {
            border-left:  1px solid @primaryBackground;
        }
        &.active {
        	.create-task {
				visibility: visible;
        	}
        }
    }
}

.taskList {
  .row-item {
    display: flex;
  }
  .column-title {
    flex: 1;
    line-height: 28px;
  }
}

.project-color {
	position: absolute;
	left: 1px;
	top: 0;
	bottom: 1px;
	width: 5px;
}

.box-small {
	position: relative;
	.box-small-inner  {
		padding: 8px 10px 8px 18px ~'; /** orientation=lt */ ';
		padding: 8px 18px 8px 10px ~'; /** orientation=rt */ ';
		line-height: 16px;
		border: 1px solid @primaryBackground;
	}
	&.selected .box-small-inner{
	    border: 1px solid transparent;
	}

	.media {
		margin:0;
		& > .pull-left {
    		margin-right: 5px ~'; /** orientation=lt */ ';
    		margin-left: 5px ~'; /** orientation=rt */ ';
		}
		& > .pull-right {
    		margin-left: 5px ~'; /** orientation=lt */ ';
    		margin-right: 5px ~'; /** orientation=rt */ ';
		}
	}
	&.selected  {
		.media-body  {
			font-weight: bold;
		}
		.uiIconValidate   {
      &:before {color: @colorIconDefault;}
		}
	}
	& + .box-small {
		margin-top: 10px;
	}
	& + .create-task {
		margin-top: 10px;
		visibility: hidden;
	}
	.project-color {
		left: -1px;
		height: 100%;
		top: 0px;
		bottom: auto;
	}
}
