123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695 |
- @using System.Globalization
- @using System.Drawing
- <style>
- /**********
- MAIN
- ***********/
- .fr-@WebReport.ID-container {
- width: @Width;
- height: @Height;
- background-color: white;
- display: @WebReport.InlineStyle;
- flex-direction: @WebReport.Toolbar.Vertical;
- position: relative;
- align-items: @WebReport.Toolbar.ContentPosition;
- }
- .fr-@WebReport.ID-container * {
- box-sizing: content-box;
- -moz-box-sizing: content-box;
- }
- .fr-form-header {
- padding: 5px;
- padding-left: 12px;
- font: 14px Verdana,Arial sans-serif Regular;
- min-height: 18px;
- text-overflow: ellipsis;
- overflow: hidden;
- border-bottom: solid 1px lightgray;
- vertical-align: middle;
- text-align: -webkit-match-parent;
- height: 30px;
- align-items: center;
- display: flex;
- font-weight: bold;
- }
- /*************
- TOOLBAR
- **************/
- .fr-@WebReport.ID-toolbar {
- background-color: @ColorTranslator.ToHtml(WebReport.Toolbar.Color);
- display: flex;
- -moz-animation: flex;
- font: @WebReport.Toolbar.UserFontSettings;
- flex-direction: @WebReport.Toolbar.RowOrColumn;
- width: fit-content;
- height: @(WebReport.Toolbar.VerticalToolbarHeight);
- order: @WebReport.Toolbar.TopOrBottom;
- position: relative;
- align-items: center;
- justify-content: @WebReport.Toolbar.Content;
- z-index: 2;
- border-radius: @(WebReport.Toolbar.ToolbarRoundness)px;
- @*@(WebReport.Tabs.Count > 1 ? "" : "box-shadow: 0px 3px 4px -2px rgba(0, 0, 0, 0.2)")*@
- -webkit-user-select: none; /* Safari */
- -ms-user-select: none; /* IE 10 and IE 11 */
- user-select: none; /* Standard syntax */
- @WebReport.Toolbar.StickyToolbarTags
- }
- .fr-@WebReport.ID-toolbar-item {
- height: @ToolbarHeight;
- border-radius:@(WebReport.Toolbar.ToolbarRoundness)px;
- position: relative;
- margin-left: 10px;
- margin-right: 10px;
- display: flex;
- align-items: center;
- }
- .fr-@WebReport.ID-toolbar-item:hover {
- @*background-color: @ColorTranslator.ToHtml(WebReport.Toolbar.Color);*@
- }
- .fr-@WebReport.ID-toolbar-item > img {
- height: calc(@ToolbarHeight * 0.5);
- padding-left: calc(@ToolbarHeight * 0.25);
- padding-right: calc(@ToolbarHeight * 0.25);
- opacity: @WebReport.Toolbar.TransparencyIcon;
- filter:invert(@WebReport.Toolbar.ColorIcon);
- display: block;
- }
- .fr-@WebReport.ID-toolbar-item:hover > img {
- opacity: 0.5;
- }
- /**********************
- TOOLBAR DROPDOWN
- ***********************/
- .fr-@WebReport.ID-toolbar-dropdown-content {
- display: none;
- box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
- background-color: @ColorTranslator.ToHtml(WebReport.Toolbar.DropDownMenuColor);
- color:@ColorTranslator.ToHtml(WebReport.Toolbar.DropDownMenuTextColor);
- min-width: 50px;
- z-index: 2;
- position: absolute;
- @*@WebReport.Toolbar.DropDownMenuPosition;*@
- white-space: nowrap;
- border-radius: @WebReport.Toolbar.DropDownListBorder;
- top: 40px;
- }
- .fr-@WebReport.ID-toolbar-item:hover > .fr-@WebReport.ID-toolbar-dropdown-content {
- display: block;
- @WebReport.Toolbar.DropDownListPosition
- }
- .fr-@WebReport.ID-toolbar-dropdown-content > a {
- float: none;
- color: @ColorTranslator.ToHtml(WebReport.Toolbar.DropDownMenuTextColor);
- padding: 6px 12px 6px 8px;
- text-decoration: none;
- display: block;
- z-index:3;
- text-align: left;
- height: auto;
- font-size: 14px;
- user-select: none;
- border-radius: @WebReport.Toolbar.DropDownListBorder;
- }
- .fr-@WebReport.ID-toolbar-dropdown-content > a:hover {
- color: @ColorTranslator.ToHtml(WebReport.Toolbar.DropDownMenuTextColor);
- background-color: @ColorTranslator.ToHtml(WebReport.Toolbar.DropDownMenuColor);
- opacity: 0.4;
- z-index: 3;
- cursor: pointer;
- }
- .fr-webreport-toolbar-narrow > img {
- transform: rotate(@(WebReport.Toolbar.ToolbarNarrow)deg);
- height: calc(@ToolbarHeight * 0.35);
- padding-left: 0;
- padding-right: 0;
- }
- .fr-webreport-toolbar-notbutton:hover {
- background-color: transparent;
- }
- .fr-webreport-toolbar-notbutton:hover > img {
- opacity: 1;
- }
- .fr-webreport-zoom-selected {
- font-weight: bold;
- }
- .fr-webreport-settings-btn {
- background-color: transparent;
- color: transparent;
- padding-left: 1rem;
- margin-left: 230px;
- display: flex;
- float: right;
- margin-top: -1.6rem;
- outline: none;
- padding-right: 1rem;
- border: none;
- position: relative;
- z-index: 4;
- flex-direction: row;
- align-content: space-around;
- justify-content: space-between;
- opacity:1;
- cursor: pointer;
- }
- .fr-webreport-settings-btn:hover {
- background-color: transparent;
- color: transparent;
- padding-left: 1rem;
- margin-left: 230px;
- display: flex;
- float: right;
- margin-top: -1.6rem;
- outline: none;
- padding-right: 1rem;
- border: none;
- position: relative;
- z-index: 4;
- flex-direction: row;
- align-content: space-around;
- justify-content: space-between;
- opacity:0.5;
- }
- .fr-webreport-settings-btn::-moz-focus-inner {
- background-color: transparent;
- color: transparent;
- padding-left: 1rem;
- margin-left: 230px;
- display: flex;
- float: right;
- margin-top: -1.6rem;
- outline: none;
- padding-right: 1rem;
- border: none;
- position: relative;
- z-index: 4;
- flex-direction: row;
- align-content: space-around;
- justify-content: space-between;
- }
- /************************
- POPUP
- *************************/
- .fr-webreport-popup {
- min-width: 100%;
- position: absolute;
- min-height: 100%;
- z-index: 3;
- padding-bottom: 1rem;
- background-color: #0000005c;
- display: flex;
- align-content: flex-start;
- flex-direction: row;
- flex-wrap: nowrap;
- justify-content: flex-start;
- align-items: flex-start;
- @WebReport.Toolbar.Exports.FixedContainerPosition
- }
- .fr-webreport-popup-content {
- display: flex;
- width: auto;
- min-width: 348px;
- height: fit-content;
- margin-top: 2.5rem;
- margin-left: 2.6rem;
- padding: 0px 9px 50px 9px;
- z-index: 4;
- border-radius: 30px 30px 12px 12px;
- background-color: #EFEFEF;
- flex-wrap: nowrap;
- align-content: center;
- justify-content: center;
- align-items: center;
- flex-direction: column;
- @WebReport.Toolbar.ModalContainerPosition;
- @WebReport.Toolbar.Exports.FixedContainerTags
- }
- .fr-webreport-popup-content-title {
- display: flex;
- width: 100%;
- background-color: #35363A;
- color: @ColorTranslator.ToHtml(WebReport.Toolbar.Exports.FontColor);
- margin-bottom: 10px;
- margin-top: 10px;
- box-shadow: 0rem -0.1rem 0rem 0.6rem #35363A;
- align-items: center;
- border-radius: 12px 12px 0px 0px;
- flex-direction: column;
- font-weight: bold;
- flex-wrap: nowrap;
- justify-content: flex-start;
- align-content: center;
- font: @WebReport.Toolbar.Exports.UserFontSettingsStyle 16px @WebReport.Toolbar.Exports.UserFontSettingsFamily;
- }
- .fr-webreport-popup-content-title input {
- background-color: white;
- border: 3px solid @ColorTranslator.ToHtml(WebReport.Toolbar.Exports.Color);
- color: black;
- max-height: 9.8px;
- border-radius: 3px;
- }
- .fr-webreport-popup-content-export-parameters {
- display: flex;
- width: 100%;
- -ms-flex-wrap: wrap;
- flex-direction: column;
- border-radius: 3px;
- padding-bottom: 1rem;
- /*padding-top: 1rem;*/
- align-content: flex-start;
- flex-wrap: wrap;
- align-items: flex-start;
- justify-content: flex-start;
- font: @WebReport.Toolbar.Exports.UserFontSettingsStyle 14px @WebReport.Toolbar.Exports.UserFontSettingsFamily;
- }
- .fr-webreport-popup-content-export-parameters-col {
- display: flex;
- align-content: center;
- flex-wrap: nowrap;
- flex-direction: column;
- font: @WebReport.Toolbar.Exports.UserFontSettingsStyle 11px @WebReport.Toolbar.Exports.UserFontSettingsFamily;
- }
- .input-error
- {
- animation: shake 0.2s ease-in-out 0s 2;
- box-shadow: 0 0 0.5em red;
- }
- @@keyframes shake {
- 0% { margin-left: 0rem; }
- 25% { margin-left: 0.5rem; }
- 75% { margin-left: -0.5rem; }
- 100% { margin-left: 0rem; }
- }
- .custom-select{
- width:auto;
- outline: none;
- min-width: 20px;
- border: none;
- padding: 0px 5px;
- margin: 5px;
- -webkit-appearance: none;
- -moz-appearance: none;
- border-radius: 3px;
- height: 25px;
- overflow: hidden;
- background: #ffffff url(/_fr/resources.getResource?resourceName=select-arrow.svg&contentType=image%2Fsvg%2Bxml) no-repeat;
- background-position: calc(100% - 10px) center;
- -moz-appearance:none; /* Firefox */
- -webkit-appearance:none; /* Safari and Chrome */
- appearance: none;
- padding:0 30px 0 10px !important;
- -webkit-padding-end: 30px !important;
- -webkit-padding-start: 10px !important;
- font: @WebReport.Toolbar.Exports.UserFontSettingsStyle 12px @WebReport.Toolbar.Exports.UserFontSettingsFamily;
- }
- .fr-webreport-popup-content-export-parameters-input {
- margin-left: 0.3rem;
- margin-bottom: 0.3rem;
- padding: 6px;
- outline: none;
- border: none;
- margin-left: 5px;
- margin-right: 5px;
- min-width: inherit;
- height: 8px;
- max-width: 70px;
- border-radius: 4px;
- font: @WebReport.Toolbar.Exports.UserFontSettingsStyle 10px @WebReport.Toolbar.Exports.UserFontSettingsFamily;
- }
- .fr-webreport-pagerange-title{
- margin-top: 25px;
- }
- .fr-webreport-popup-settings-title{
- padding-bottom: 10px;
- font-weight: bold;
- }
- .fr-webreport-popup-content-export-parameters-row {
- display: flex;
- padding-top: 5px;
- flex-direction: row;
- align-items: flex-start;
- justify-content: flex-start;
- }
- .fr-webreport-popup-content-export-parameters-slider {
- display: flex;
- margin-bottom: 10px;
- margin-top: 10px;
- margin-left: 5px;
- background-color: transparent;
- border-radius: 10px;
- border-radius: 3px;
- justify-content: center;
- align-items: center;
- align-content: center;
- flex-direction: row;
- justify-content: flex-start;
- }
- .fr-webreport-popup-content-export-parameters-slider span {
- color: black;
- background-color: transparent;
- min-width: 128px;
- padding: 5px;
- white-space: nowrap;
- font:@(WebReport.Toolbar.Exports.UserFontSettingsStyle) 11px @(WebReport.Toolbar.Exports.UserFontSettingsFamily);
- }
- input[type=range] {
- height: 1.7rem;
- overflow: hidden;
- -webkit-appearance: none;
- margin-left: 0;
- outline: none;
- background-color: #424242;
- }
- input[type=range]::-webkit-slider-runnable-track {
- width: 100%;
- height: 100%;
- cursor: pointer;
- animate: 0.2s;
- background: #424242;
- border-radius: 0px;
- }
- input[type=range]::-webkit-slider-thumb {
- height: 100%;
- width: 5%;
- border-radius: 0px;
- background: linear-gradient(gray,5%, @ColorTranslator.ToHtml(WebReport.Toolbar.Exports.Color) );
- cursor: pointer;
- -webkit-appearance: none;
- box-shadow: -100vw 0vw 0vw 100vw @ColorTranslator.ToHtml(WebReport.Toolbar.Exports.Color);
- margin-top: 0px;
- }
- label{
- margin-bottom: 5px;
- margin-top: 5px;
- }
- button{
- text-align: left;
- }
- .fr-webreport-popup-content-export-parameters-col input[type="text"] {
- background-color: white;
- color: #000000;
- border: 2px solid @ColorTranslator.ToHtml(WebReport.Toolbar.Exports.Color);
- max-height: 11px;
- }
- .fr-webreport-popup-content-export-parameters-button {
- border: none;
- padding: 5px;
- margin-left: 5px;
- margin-right: 5px;
- min-width: inherit;
- border-radius: 3px;
- font: @WebReport.Toolbar.Exports.UserFontSettingsStyle 11px @WebReport.Toolbar.Exports.UserFontSettingsFamily;
- color: black;
- background: url(_content/FastReport.Web/Resources/button.svg) no-repeat;
- background-position: 0px center;
- padding-left: 20px;
- vertical-align: middle;
- cursor: pointer;
- }
- .fr-webreport-popup-content-buttons {
- display: flex;
- padding-top: 1rem;
- margin-bottom: -2.3rem;
- width: 100%;
- flex-wrap: nowrap;
- align-content: center;
- justify-content: space-between;
- align-items: center;
- flex-direction: row;
- }
- .fr-webreport-popup-content-btn-submit {
- outline: none;
- border: none;
- background-color: #DD4433;
- border-radius: 3px;
- padding: 3px;
- font-weight: normal;
- color: @ColorTranslator.ToHtml(WebReport.Toolbar.Exports.FontColor);
- font: @WebReport.Toolbar.Exports.UserFontSettingsStyle 14px @WebReport.Toolbar.Exports.UserFontSettingsFamily;
- width: 70px;
- height: 30px;
- cursor: pointer;
- text-align: center;
- }
- .fr-webreport-popup-content-btn-cancel{
- padding: 3px;
- background-color: #D9D9D9;
- font: @WebReport.Toolbar.Exports.UserFontSettingsStyle 14px @WebReport.Toolbar.Exports.UserFontSettingsFamily;
- width: 70px;
- height: 30px;
- border-radius: 3px;
- border: none;
- outline: none;
- color: black;
- text-align: center;
- }
- .fr-webreport-popup-content-btn-disabled{
- background-color: #D9D9D9;
- cursor: default;
- }
- .fr-@WebReport.ID-container .active-button {
- background: url(_content/FastReport.Web/Resources/button-active.svg) no-repeat;
- background-position: 0px center;
- vertical-align: middle;
- }
- .fr-webreport-popup-content-export-parameters-button:hover {
- cursor: pointer;
- }
- /************************
- TOOLBAR NAVIGATION
- *************************/
- .fr-@WebReport.ID-toolbar-slash > img {
- margin-left: 0px;
- margin-right: 0px;
- height: calc(@ToolbarHeight * 0.35);
- padding-left: 0;
- padding-right: 0;
- }
- .fr-@WebReport.ID-toolbar-item > input {
- font-family: Arial,sans-serif;
- font-size: @CalculateToolBarHeight(0.35f);
- text-align: center;
- border: 0;
- background: #fbfbfb;
- border-radius: 5px;
- height: @CalculateToolBarHeight(0.4f);
- width: 3em;
- display: block;
- }
- .fr-@WebReport.ID-toolbar-item > input:hover:not([readonly]) {
- background: #fff;
- }
- .fr-@WebReport.ID-toolbar-item > input[readonly] {
- cursor: default;
- }
- /***********
- TABS
- ***********/
- .fr-webreport-tabs {
- flex-shrink: 0;
- font-family: Verdana,Arial,sans-serif;
- background-color: #f1f1f1;
- display: table;
- width: @WebReport.Toolbar.TabsPositionSettings;
- max-width: @(WebReport.ReportMaxWidth)px;
- box-shadow: 0px 3px 4px -2px rgba(0, 0, 0, 0.2);
- position: relative;
- border-radius: 10px;
- z-index: 1;
- @WebReport.Toolbar.TabsPositionSettings
- @WebReport.Toolbar.StickyToolbarTabsTags
- }
- /***********
- MISC
- ***********/
- input[type="date"]::-webkit-calendar-picker-indicator{
- opacity: 0;
- }
- .datetimepicker > input[type="date"]{
- background: url(_content/FastReport.Web/Resources/date-picker.svg) no-repeat;
- background-size: 10px;
- background-position: right 5px center;
- background-origin: content-box, content-box;
- }
- .datetimepicker > input[type="date"]:disabled {
- background: url("") no-repeat;
- }
- /*****************
- EMAIL EXPORT
- ******************/
- .popup-notification {
- position: fixed;
- bottom: 20px;
- right: 20px;
- display: flex;
- align-items: center;
- padding: 10px 20px;
- border-radius: 4px;
- font-size: 14px;
- color: white;
- opacity: 1;
- transition: opacity 0.5s;
- z-index: 9999;
- }
- .popup-notification.positive {
- background-color: #44cc44;
- color: white;
- }
- .popup-notification.negative {
- background-color: #cc4444;
- color: white;
- }
- .popup-notification.hide {
- opacity: 0;
- pointer-events: none;
- }
- .popup-notification img {
- margin-right: 10px;
- }
- .fr-email-export-form {
- display: flex;
- flex-direction: column;
- padding: 5px;
- box-sizing: border-box;
- width: 100%;
- }
- .fr-email-export-field {
- display: flex;
- margin-bottom: 5px;
- justify-content: space-between;
- width: 100%;
- font-size: 12px;
- }
- .fr-email-export-input{
- width: 244px;
- padding: 8px;
- border: none;
- border-radius: 4px;
- background: #FFF;
- display: flex;
- margin-left: 30px;
- font-size: 12px;
- }
- .fr-email-export-textarea{
- margin-left: 10px;
- width: 244px;
- height: 146px;
- padding: 8px;
- border: none;
- border-radius: 5px;
- resize: none;
- font-size: 12px;
- }
- .fr-email-export-select{
- margin-left: 10px;
- width: 244px;
- padding: 8px;
- border-radius: 5px;
- border: none;
- font-size: 12px;
- }
- .fr-required-star {
- color: red;
- }
- </style>
- @code {
- [Parameter]
- public WebReport WebReport { get; set; }
- protected override void OnParametersSet()
- {
- ToolbarHeight = WebReport.Toolbar.Height.ToString() + "px";
- }
- //protected override bool ShouldRender() => false;
- private string Width
- {
- get
- {
- if (!WebReport.Width.IsNullOrWhiteSpace())
- return WebReport.Width + "px";
- return string.Empty;
- }
- }
- private string Height
- {
- get
- {
- if (!WebReport.Height.IsNullOrWhiteSpace())
- return WebReport.Height + "px";
- return string.Empty;
- }
- }
- private string ToolbarHeight
- {
- get;
- set;
- }
- private string CalculateToolBarHeight(float variable)
- {
- var calculatedHeight = WebReport.Toolbar.Height * variable;
- return $"{calculatedHeight.ToString("0.##", CultureInfo.InvariantCulture)}px";
- }
- }
|