/*!
 * Copyright (C) 2013-2020 Combodo SARL
 *
 * This file is part of iTop.
 *
 * iTop is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * iTop 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 Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 */

/* Note: Imports path is the /css folder */
@import 'css-variables.scss';

.workflow_graphical_view{
	.field_value,
	.form-control-static{
		display: inline-block;
	}
	/* When show button is actually an existing element, reused by the extension */
	&.wgv-show-graph{
		cursor: pointer; /* Make sure cursor is a pointer no matter the tag it is one */
	}
	/* When show button is created by the extension */
	a.wgv-show-graph{
		margin-left: 8px;
		font-size: 0.9em; /* Use EM to be relative with the value text size */
		color: inherit; /* Remove hyperlink blue for regular text color */

		&:hover,
		&:active{
			color: $highlight-color;
			text-decoration: none;
		}
	}
}

.lcsn-graph-container{
	text-align: center;

	[role="image"]{
		transition: all 0.2s linear;
	}
	.lcsn-graph-legend[role="legend"]{
		ul{
			display: flex;
			justify-content: center;
			padding: 0;
			margin-top: 3em;
			margin-bottom: 0;

			> li{
				display: flex;
				align-items: center;
				list-style: none;

				> [role="decoration"]{
					display: inline-block;
					margin-right: 0.5em;
				}
				> [role="text"]{

				}

				&:not(:first-child)
				{
					margin-left: 2em;
				}

				&[role="current-state"]{
					> [role="decoration"]{
						width: 12px;
						height: 12px;
						border-radius: 100%;
						background-color: #2c5282;
					}
				}
				&[role="user-stimuli"]{
					> [role="decoration"]{
						width: 36px;
						height: 1px;
						border-bottom: 1px solid black;
					}
				}
				&[role="internal-stimuli"]{
					> [role="decoration"]{
						width: 36px;
						height: 1px;
						border-bottom: 1px dashed black;
					}
				}
			}
		}
	}
}