Partial flag varieties, stable envelopes and weight functions